Skip to content

Default value of 0 is not rendered #724

@ImFlog

Description

@ImFlog

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 :

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

image image

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 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions