swagger-api / swagger-api/swagger-ui
Displaying value for Double numbers with dot even number is whole
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
Content & configuration
Necessity to view request execution result with dot, even number is whole.
Is your feature request related to a problem?
Hello. I have a micro-servise and result of request execution is value from 0 to 3 (like 0.6, 1.75, 2.943 etc.) and very important to see value with dot even when value is whole (like 1.0, 2.0, 3.0)
Thanks.
Describe the solution you'd like
Probably it would be a good solution with some feature-flag or setup-tag to enable/disable opportunity let values after dot/comma even value equals to zero.
Describe alternatives you've considered
Sometimes I have to use Postman, but I will be very happy to have possibility to make everything in one tool :)
Additional context
nothing more
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 file, entry point, or test. Start by reproducing the behavior in Swagger UI with a response containing whole double values such as 1.0, then trace where the response value is rendered. Done should mean that a user-selectable option preserves the decimal point for whole values without changing other numeric display behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100