swagger-api / swagger-api/swagger-ui
Rendering of double as 0 instead of 0.0 under example tab
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
This should no longer be an issue with 3.X. Please reopen otherwise.
Originally posted by @webron in https://github.com/swagger-api/swagger-ui/issues/2088#issuecomment-288948198
I still see this issue of double not rendered correctly under "example" tab
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
Reproduce the issue in Swagger UI's example tab using a schema with a double value of 0, and review the original discussion linked from issue 2088 for context. Trace the example rendering entry point and compare the displayed value with the expected 0.0; done means double values retain the decimal representation in the example tab.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, openapi
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100