Commit cadfca09 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 23c55175
{
"title": "Array[oneOf] test",
"type": "object",
"required": [
"rrh_list"
],
"format": "categories",
"properties": {
"rrh_list": {
"title": "Radio Units",
"type": "array",
"format": "table",
"items": {
"oneOf": [
{
"title": "Loopcom RU",
"type": "object",
"required": [
"rrh_type",
"loop_property1",
"loop_property2"
],
"properties": {
"rrh_type": {
"const": "lopcomm_rrh",
"template": "lopcomm_rrh",
"options": {
"hidden": true
}
},
"loop_property1": {
"title": "Loopcom-specific property1",
"type": "string"
},
"loop_property2": {
"title": "Loopcom-specific property2",
"type": "number"
}
}
},
{
"title": "M2 RU",
"type": "object",
"required": [
"rrh_type",
"m2_property1",
"m2_property2",
"m2_property3"
],
"properties": {
"rrh_type": {
"const": "m2_rrh",
"template": "m2_rrh",
"options": {
"hidden": true
}
},
"m2_property1": {
"title": "M2-specific property1",
"type": "string"
},
"m2_property2": {
"title": "M2-specific property2",
"type": "number"
},
"m2_property3": {
"title": "M2-specific property2",
"type": "number"
}
}
}
]
}
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment