Combining Schemas Using Keywords
You can use the oneOf
, allOf
, and anyOf
keywords to combine schemas.
oneOf
keyword: This keyword can be used to validate the given data against one of the specified schemas.allOf
keyword: This keyword helps the user ensure that the given data is valid against all the specific schemas.anyOf
keyword: This keyword is used to ensure that the given data is valid against any specific schema.
Using the oneOf Keyword
-
On the schema object in the activity/trigger input, click
.
For an object with a
oneOf
keyword, the Select OneOf Schema option is displayed. -
Click Select OneOf Schema.
The schema selector dialog displays all available schemas.
-
Select one schema from the schema selector dialog.
The mapping tree is rendered with the selected oneOf
schema nodes.
Using the anyOf Keyword
-
On the schema object in the activity/trigger input, click
.
For an object with a
anyOf
keyword, the Select AnyOf Schema option is displayed. -
Click Select AnyOf Schema.
The schema selector dialog displays all available schemas.
-
Choose any number of schema from the schema selector dialog.
The mapping tree is rendered with the selected anyOf
schema nodes.