Hi there,
i’ve been experimenting with JSONFORMS and i must admit it is interesting so far; great stuff.
However, during an experiment i 've faced an issue that i don’t quite can get it resolved:
the issue is basically no Default/automatic rendering of conditional schema inside the allOf clause, more formally:
the following valid schema:
{
"type": "object",
"properties": {
"2dArray": {
"type": "array",
"items": {
"type": "object",
"properties": {
"1DArray": {
"type": "array",
"items": {
"type": "object",
"properties": {
"elem1": {
"type": "object",
"properties": {
"elem01": {
"type": "string",
"enum": [
"a",
"b"
]
},
"elem02": {
"type": "string",
"enum": [
"1",
"2"
]
}
},
"allOf": [{
"if": {
"properties": {
"elem02": {
"const": "1"
}
}
},
"then": {
"required": ["elem01", "elem02"]
}
}]
}
}
}
}
}
}
}
}
}
Fails to render as per the attached image:
[original thread by Mina Reda Albert]