Package io.fabric8.generator.annotation
Annotation Type Size
-
@Target({ANNOTATION_TYPE,FIELD,METHOD,TYPE_USE}) @Retention(RUNTIME) public @interface Size
Decorates the resulting property with size limits.
The annotation can be used on strings, list/arrays and maps and will result in an appropriate JSON Schema constraint:minLengthand/ormaxLengthfor a StringminItemsand/ormaxItemsfor a list/arrayminPropertiesand/ormaxPropertiesfor a map