-
Notifications
You must be signed in to change notification settings - Fork 695
Open
Description
When using if inside a object, the title of the object is not visible.
Take this schema for example:
{
"$schema": "http://json-schema.org/2020-12/schema#",
"type": "object",
"properties": {
"user": {
"properties": {
"type": {
"type": "string",
"enum": [
"admin",
"user"
]
},
"adminLevel": {
"type": "string"
}
},
"required": [
"type"
],
"if": {
"properties": {
"type": {
"const": "admin"
}
}
},
"then": {
"required": [
"adminLevel"
]
}
}
}
}
It results in
as you can see, the title user
is not visible.
If we remove the if
and then
from the schema the title is visible as expected:
Metadata
Metadata
Assignees
Labels
No labels