const properties are not supported with type field
Opened this issue · 0 comments
Woodz commented
-
I'm submitting a ...
[X] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project -
Summary
https://json-schema.org/understanding-json-schema/reference/generic.html#constant-values gives an example for how a const property can be defined
{
"properties": {
"country": {
"const": "United States of America"
}
}
}
However, this fails due to The type undefined on property country is unknown
- Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)