swagger-api / swagger-api/swagger-codegen

@ApiParam defaultValue = "0" not work

Open
#4,564 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.