-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
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
JSR 303 Validation for generated Models #5
Comments
It is implemented (without 'pattern'). Please try out. Use true in the pom. 0.4.9 |
Hi again! because of this probles and issue related to swagger-codegen (you may see swagger-api/swagger-codegen#443 (comment) ; guys advices to test their develop_2.0 branch to check if issue still exists; but even it not exists, it need to be released first and then i think version of codegen used by your plugin must also be updated as well...) 'contract validation' implemented as set of ugly |
Is there a way yet to generate bean validation annotations on the generated pojos? |
@jbellmann I ran that code sample and did not find it working. In the ApplicationDetails swagger definition, |
It would be nice to have some validation for defined Models (Schema Objects). Swagger uses the JSON Schema Validation as Validation Specification.
This codegen Plugin cloud map the defined validation into JSR 303: Bean Validation. For example:
The text was updated successfully, but these errors were encountered: