-
Bug
-
Resolution: Duplicate
-
Undefined
-
None
-
1.8.0
-
None
-
False
-
-
False
-
-
The dependencies + oneOf pattern is not extracting ui:* properties (like ui:widget, ui:placeholder, etc.), which is why custom widgets don't render.
Description of problem:
We are currently seeing an issue regarding the UI layout for the Service Details section when creating a namespace (switching between General, Tekton, Dedicated, etc.).
We must use oneOf: We cannot use the standard dependencies or conditionals approach because it currently fails to load the widgets (e.g., ActiveTextInput, ActiveMultiSelect). oneOf is the only structure that renders these widgets correctly.
Here is a minimal schema that shows the issue. Attaching the screenshot.
{
"title": "Nested Header",
"type": "object",
"properties": {
"caasNamespace": {
"title": "CaaS Namespace Configuration",
"type": "object",
"properties": {
"serviceDetails": {
"title": "Service Details",
"type": "object",
"description": "Select a service below. Notice the Title is used for both the Dropdown AND the Section Header.",
"oneOf": [
{
"title": "General Service",
"properties": {
"namespaceName":
}
},
{
"title": "Dedicated Cluster",
"properties": {
"clusterName":
}
}
]
}
}
}
}
}