oneOf or anyOf to indicate that "the value of a specific field determines the concrete type of the object".| Property | Description |
|---|---|
| propertyName | Specifies the field name used to differentiate types. |
| mapping | Defines the mapping between field values and the corresponding schemas. |
oneOf, such as eBook and Paperback.discriminator configuration, for example:10331225 and 10331226 with the IDs of your actual schema. You can see these IDs when opening the JSON Schema configuration panel.type field. When you Publish Docs, the API documentation will correctly display the differentiated types.discriminator and correctly map types in schema and endpoint definitions. When you Publish Docs, the API documentation will correctly display the differentiated types.