Skip to content
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

[JAVA] how can I generate rest service impl class will Valid annotation #12349

Open
zhuyou1234 opened this issue Feb 29, 2024 · 1 comment
Open

Comments

@zhuyou1234
Copy link

how can I generate REST API :

  1. add @javax.validation.Valid to rest class
  2. add @javax.validation.Valid to method param

image

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
@zhuyou1234
Copy link
Author

rest impl class can only have @javax.annotation.Generated annotation

@zhuyou1234 zhuyou1234 changed the title how can I generate rest service will Valid annotation [JAVA] how can I generate rest service will Valid annotation Feb 29, 2024
@zhuyou1234 zhuyou1234 changed the title [JAVA] how can I generate rest service will Valid annotation [JAVA] how can I generate rest service impl class will Valid annotation Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant