Hi,
I’m using a condition to hide a dropdown control depending on the value of other different dropdowns. This works as expected when the dropdown references data from an enum, but not when it’s sourced from a oneOf (i.e, the dropdown isn’t hidden). Is there something wrong with my syntax or is this not supported?
Refs (conditions works when this an enum, but not oneOf):
{
"fetched_types": {
"oneOf": [
{
"title": "placeholder",
"const": "placeholder"
}
]
}
}
JSON Schema
{
"properties": {
"type": {
"$ref": "#/definitions/fetched_types",
"type": "string"
}
}
}
UI Schema
{
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"label": "Type",
"scope": "#/properties/type",
"rule": {
"effect": "SHOW",
"condition": {
"scope": "#",
"schema": {
"anyOf": [
{
"properties": {
"options1": {
"enum": [
"Target Val"
]
}
}
},
{
"properties": {
"options2": {
"enum": [
"Target Val"
]
}
}
},
{
"properties": {
"options3": {
"enum": [
"Target Val"
]
}
}
}
]
}
}
}
}
]
}
