Skip to main content Skip to complementary content

Using combinations

Create a data type based on a combination of other data types.

Procedure

  1. Click Create new in the top-right corner.
    Create new menu expanded.
  2. Click Data type.
  3. Enter a Name for your data type, Dog for example.
  4. To add your properties manually, click Edit next to your newly created data type.
  5. In Type, select one of the available combinations: allOf, oneOf, or anyOf.
    The not combination is not supported.
  6. In Data types, add as many data types as necessary.
  7. Optional: You can add examples and other properties.
  8. Click Save.
    In this example, the Dog data types contains all the properties contained in the Pet data type, as well as some properties specific to dogs.
    The Dog data type is of type allOf with the value Pet, and it also has the bark and breed properties that are specific to dogs.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!