We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Falsy default values aren't currently displayed and are entirely ignored.
{ "type": "number", "default": 0 }
They are displayed in the same as any other value.
Caused by https://github.com/stoplightio/json-schema-viewer/blob/master/src/components/shared/Validations.tsx#L229 This correct code should look more or less as follows
...('default' in schemaNode.annotations ? { default: JSON.stringify(schemaNode.annotations.default) } : null),
Screenshots
The text was updated successfully, but these errors were encountered:
add medium label
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Falsy default values aren't currently displayed and are entirely ignored.
To Reproduce
Expected behavior
They are displayed in the same as any other value.
Additional context
Caused by https://github.com/stoplightio/json-schema-viewer/blob/master/src/components/shared/Validations.tsx#L229
This correct code should look more or less as follows
Screenshots
The text was updated successfully, but these errors were encountered: