swagger-api / swagger-api/swagger-codegen
Option to disable @Validated for generated classes from yaml
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
I am generating some Java class from a yaml, and there is an @Validated annotion (org.springframework.validation.annotation.Validated) which is generated by, that i would like to disable it as i don't need it.
Is that possible ? Thank you
Swagger-codegen version
<swagger-codegen-maven-plugin.version>2.4.6</swagger-codegen-maven-plugin.version>
Command line used for generation
mvn generate-sources -Pswagger
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the generation with the reported swagger-codegen Maven plugin version and mvn generate-sources -Pswagger. Inspect the generated Java classes and the generator configuration or templates that add org.springframework.validation.annotation.Validated; done means a documented option suppresses that annotation without affecting other generated output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, yaml
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100