You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to define a dependency between two properties, so that certain values of a property are only displayed / can be choosen if another property is set to a certain value.
I know you can use visibleIf to show/hide a property completely, but what I would like to have is a visibleIf for a value.
I would like to define a dependency between two properties, so that certain values of a property are only displayed / can be choosen if another property is set to a certain value.
I know you can use visibleIf to show/hide a property completely, but what I would like to have is a visibleIf for a value.
Example:
properties:
food:
type: string
oneOf:
- description: Pizza
enum:
- pizza
- description: Pasta
enum:
- pasta
extras:
type: string
oneOf:
- description: extra cheese
enum:
- cheese
visibleIf:
food: pizza
- description: mushrooms
enum:
- mushrooms
In this example, I want to show both properties (food, extras), but the extras value "cheese" should only be visible, if "pizza" was selected as food.
How can you do that?
The text was updated successfully, but these errors were encountered: