We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for OpenAPI 3.0/3.1 type validation (see here) as annotations rather than custom properties.
Something like this (Java):
@OpenApiNumberValidation(minimum = 1, maximum = 9999) int count @OpenApiStringValidation(maxLength = 32, pattern = "[\\w\\s]+") String name
Would produce this:
"count" : { "type" : "integer", "format" : "int32", "minimum": 1, "maximum": 9999 }, "username" : { "type" : "string", "maxLength": 32, "pattern": "[\\w\\s]+" }
The text was updated successfully, but these errors were encountered:
I guess it makes sense. Keep in mind that you can still do that with @Custom:
@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 )
Sorry, something went wrong.
2ea601b
No branches or pull requests
Support for OpenAPI 3.0/3.1 type validation (see here) as annotations rather than custom properties.
Something like this (Java):
Would produce this:
The text was updated successfully, but these errors were encountered: