-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
We have json schema containing allOf and if keywords. Currently if we generate README we get empty object for config. Can we add support for these keywords as well.
{
"type": "object",
"properties": {
"key": {
"type": "object",
"properties": {
"prop1": {
"type": "string",
"enum": [
"v1",
"v2"
]
},
"config": {
"type": "object"
}
},
"allOf": [
{
"if": {
"properties": {
"prop1": {
"const": "v1"
}
},
},
"then": {
"properties": {
"config": {
"properties": {
"prop2": {
"type": "boolean"
}
}
,
"additionalProperties": false}
}
}
},
{
"if": {
"properties": {
"prop1": {
"const": "v2"
}
},
},
"then": {
"properties": {
"config": {
"properties": {
"prop3": {
"type": "boolean"
}
},
"additionalProperties": false
}
}
}
}
]
}
},
"additionalProperties": false
}
Metadata
Metadata
Assignees
Labels
No labels