discriminator : Object
discriminator
ObjectHints at which of the schemas of an adjacent oneOf, anyOf, or allOf an object instance is expected to satisfy, without affecting the validation outcome.
| Value |
This keyword must be set to an object that declares a propertyName string and optionally a mapping object of string values
Hint: Use the jsonschema metaschema and jsonschema lint commands to catch keywords set to invalid values
|
|---|---|
| Kind | Other |
| Applies To | Object |
| Base Dialect | 2020-12 |
| Changed In | OpenAPI 3.2 |
| Introduced In | OpenAPI 3.1 |
| Vocabulary | OpenAPI 3.1 |
| Specification | https://spec.openapis.org/oas/v3.1.2.html#schema-discriminator |
| Metaschema | https://spec.openapis.org/oas/3.1/meta/base |
| Official Tests | None |
| Default | None |
| Annotation | None |
| Affected By |
|
| Affects | None |
| Also See |
|