-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Is there a particular reason when giving JSF a schema with a const value it adds an enum of this const value to the schema?
It does not create any problems but looks weird.
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"test": {
"type": "number",
"const": 2
}
},
"required": [
"test"
]
}
resulting in after constructor call:
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"properties": {
"test": {
"type": "number",
"const": 2,
"enum": [
2
]
}
},
"required": [
"test"
]
}
Metadata
Metadata
Assignees
Labels
No labels