Annotation Type PatternProperty
-
@Target({FIELD,METHOD,PARAMETER,TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) @Inherited @Repeatable(PatternProperties.class) public @interface PatternProperty
The annotation may be used in OpenAPI 3.1 schemas / JSON Schema.- Since:
- 2.1.8
- See Also:
- JSON Schema section 10.3.2.2,
Schema
-
-
Element Detail
-
regex
String regex
The regex.- Returns:
- the regex
- Default:
- ""
-
-
-
schema
Schema schema
The schema to validate against for properties matching the regex.- Returns:
- the schema
- Default:
- @io.swagger.v3.oas.annotations.media.Schema
-
-
-
array
ArraySchema array
The schema of the array to validate against for properties matching the regex.- Returns:
- the schema of the array
- Default:
- @io.swagger.v3.oas.annotations.media.ArraySchema
-
-