swagger-api / swagger-api/swagger-codegen
[Java][Improvement] Add an option to skip required parameters check
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
In the specification, I have 2 parameters marked as 'required' for the particular api call. In fact, just on of them should be provided - either first one or second. It doesn't seem to be possible to make the appropriate changes to specification now (issue). Is it possible to add the config option, which would allow to skip block related to 'check if all required parameters provided or throw exception'?
Swagger-codegen version
2.2.2
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
The issue names no source file, test, or entry point; begin by locating the Java generated-client validation for required parameters in Swagger-codegen 2.2.2. Define the configuration path and regression coverage before changing behavior, with completion meaning the check can be skipped while the default behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100