-
Notifications
You must be signed in to change notification settings - Fork 304
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When defining a default value of 0 in a swagger doc, it is not rendered in the generated documentation.
Expected behavior
It should be displayed.
Current behavior
It's not
Possible solution
This is probably because of this line :
docusaurus-openapi-docs/packages/docusaurus-theme-openapi-docs/src/markdown/utils.ts
Line 27 in a3b467c
| if (!!value) { |
if (!!0) is false.
I am willing to help, so I will probably throw a quick PR for this if it's OK for you.
Screenshots
Your Environment
- Version used: 2.0.4
- Environment name and version (e.g. Chrome 59, node.js 5.4, python 3.7.3): Firefox 122.0.1
- Operating System and version (desktop or mobile): Desktop
Thanks for the project 🙏
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working