HttpPartSchemaBuilder items(Items value) { if (! AnnotationUtils.empty(value)) items = HttpPartSchema.create().apply(value); return this; }
HttpPartSchemaBuilder items(SubItems value) { if (! AnnotationUtils.empty(value)) items = HttpPartSchema.create().apply(value); return this; }
HttpPartSchemaBuilder items(Items value) { if (! AnnotationUtils.empty(value)) items = HttpPartSchema.create().apply(value); return this; }
HttpPartSchemaBuilder items(SubItems value) { if (! AnnotationUtils.empty(value)) items = HttpPartSchema.create().apply(value); return this; }
HttpPartSchemaBuilder items(SubItems value) { if (! AnnotationUtils.empty(value)) items = HttpPartSchema.create().apply(value); return this; }
HttpPartSchemaBuilder items(Items value) { if (! AnnotationUtils.empty(value)) items = HttpPartSchema.create().apply(value); return this; }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Response a) { if (a == null) return true; return allEmpty(a.description(), a.example(), a.examples(), a.api()) && a.headers().length == 0 && empty(a.schema()) ; }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Response a) { if (a == null) return true; return allEmpty(a.description(), a.example(), a.examples(), a.api()) && a.headers().length == 0 && empty(a.schema()) ; }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Response a) { if (a == null) return true; return allEmpty(a.description(), a.example(), a.examples(), a.api()) && a.headers().length == 0 && empty(a.schema()) ; }
private static ObjectMap merge(ObjectMap om, ExternalDocs a) throws ParseException { if (empty(a)) return om; if (a.value().length > 0) om.putAll(parseMap(a.value())); return om .appendSkipEmpty("description", joinnl(a.description())) .appendSkipEmpty("url", a.url()) ; } }
private static ObjectMap merge(ObjectMap om, ExternalDocs a) throws ParseException { if (empty(a)) return om; if (a.value().length > 0) om.putAll(parseMap(a.value())); return om .appendSkipEmpty("description", joinnl(a.description())) .appendSkipEmpty("url", a.url()) ; } }
private static ObjectMap merge(ObjectMap om, ExternalDocs a) throws ParseException { if (empty(a)) return om; if (a.value().length > 0) om.putAll(parseMap(a.value())); return om .appendSkipEmpty("description", joinnl(a.description())) .appendSkipEmpty("url", a.url()) ; } }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Body a) { if (a == null) return true; return allEmpty(a.description(), a.example(), a.examples(), a.api(), a.value()) && allFalse(a.required()) && empty(a.schema()); }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Body a) { if (a == null) return true; return allEmpty(a.description(), a.example(), a.examples(), a.api(), a.value()) && allFalse(a.required()) && empty(a.schema()); }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Body a) { if (a == null) return true; return allEmpty(a.description(), a.example(), a.examples(), a.api(), a.value()) && allFalse(a.required()) && empty(a.schema()); }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(org.apache.juneau.jsonschema.annotation.Items a) { if (a == null) return true; return allEmpty(a.value(), a._default(), a._enum()) && allEmpty(a.type(), a.format(), a.collectionFormat(), a.pattern(), a.$ref(), a.maximum(), a.minimum(), a.multipleOf()) && allFalse(a.exclusiveMaximum(), a.exclusiveMinimum(), a.uniqueItems()) && allMinusOne(a.maxLength(), a.minLength(), a.maxItems(), a.minItems()) && empty(a.items()); }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Path a) { if (a == null) return true; return allEmpty(a.description(), a._enum(), a.example(), a.api()) && allEmpty(a.name(), a.value(), a.type(), a.format(), a.pattern(), a.maximum(), a.minimum(), a.multipleOf()) && allFalse(a.exclusiveMaximum(), a.exclusiveMinimum(), a.uniqueItems()) && allMinusOne(a.maxLength(), a.minLength(), a.maxItems(), a.minItems()) && empty(a.items()); }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Query a) { if (a == null) return true; return allEmpty(a.description(), a._default(), a.example(), a.api()) && allEmpty(a.name(), a.value(), a.type(), a.format(), a.pattern(), a.collectionFormat(), a.maximum(), a.minimum(), a.multipleOf()) && allFalse(a.allowEmptyValue(), a.exclusiveMaximum(), a.exclusiveMinimum(), a.required(), a.uniqueItems()) && allMinusOne(a.maxLength(), a.minLength(), a.maxItems(), a.minItems()) && empty(a.items()); }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(Query a) { if (a == null) return true; return allEmpty(a.description(), a._default(), a.example(), a.api()) && allEmpty(a.name(), a.value(), a.type(), a.format(), a.pattern(), a.collectionFormat(), a.maximum(), a.minimum(), a.multipleOf()) && allFalse(a.allowEmptyValue(), a.exclusiveMaximum(), a.exclusiveMinimum(), a.required(), a.uniqueItems()) && allMinusOne(a.maxLength(), a.minLength(), a.maxItems(), a.minItems()) && empty(a.items()); }
/** * Returns <jk>true</jk> if the specified annotation contains all default values. * * @param a The annotation to check. * @return <jk>true</jk> if the specified annotation contains all default values. */ public static boolean empty(FormData a) { if (a == null) return true; return allEmpty(a.description(), a._default(), a._enum(), a.example(), a.api()) && allEmpty(a.name(), a.value(), a.type(), a.format(), a.pattern(), a.collectionFormat(), a.maximum(), a.minimum(), a.multipleOf()) && allFalse(a.allowEmptyValue(), a.exclusiveMaximum(), a.exclusiveMinimum(), a.required(), a.uniqueItems()) && allMinusOne(a.maxLength(), a.minLength(), a.maxItems(), a.minItems()) && empty(a.items()); }