swagger-api / swagger-api/swagger-codegen
@ApiParam defaultValue = "0" not work
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I use v2.6.1, @ApiParam defaultValue = "0" not work, other value is working.
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 at the @ApiParam annotation handling in swagger-codegen v2.6.1 and compare how defaultValue="0" is processed with other default values. Confirm the generated API documentation or stubs preserve the zero value, using the project’s existing generation tests if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100