Closed MathNerd28 closed 6 months ago
I guess it makes sense. Keep in mind that you can still do that with @Custom
:
@Custom("pattern", "[\\w\\s]+")
String name
or even custom annotation:
@Target(FUNCTION, PROPERTY_GETTER, PROPERTY_SETTER)
@Retention(RUNTIME)
@CustomAnnotation
annotation class OpenApiNumberValidation(
val minimum: Int,
val maximum: Int
)
Support for OpenAPI 3.0/3.1 type validation (see here) as annotations rather than custom properties.
Something like this (Java):
Would produce this: