swagger-codegen
swagger-codegen copied to clipboard
[JAVA] how can I generate rest service impl class will Valid annotation
how can I generate REST API :
- add @javax.validation.Valid to rest class
- add @javax.validation.Valid to method param
I check code apiServiceImpl.mustache ,seems we can't add any other constraints annotations to rest impl class
Description
Swagger-codegen version
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
rest impl class can only have @javax.annotation.Generated annotation