Since we mix validations & annotations, they undergo pretty much the same process.
While avoiding true or false makes perfect sense in the case of validation keywords, it ruins the experience in the case of annotations.
To Reproduce
Given a schema containing some annotation with booleanish value
Describe the bug
Since we mix validations & annotations, they undergo pretty much the same process. While avoiding
true
orfalse
makes perfect sense in the case of validation keywords, it ruins the experience in the case of annotations.To Reproduce
Expected behavior
The values are displayed
Additional context
This is caused by https://github.com/stoplightio/json-schema-viewer/blob/master/src/components/shared/Validations.tsx#L112
We should filter out annotations The correct code could look so
Screenshots