- All Implemented Interfaces:
- Comparable<CodegenDiscriminator.MappedModel>
- Enclosing class:
- CodegenDiscriminator
public static class CodegenDiscriminator.MappedModel
extends Object
implements Comparable<CodegenDiscriminator.MappedModel>
An object to hold discriminator mappings between payload values and schema names or
references.
In the OpenAPI document, the discriminator "mapping" attribute is optional.
In scenarios where the value of the discriminator field does not match the schema name
or implicit mapping is not possible, an optional mapping definition MAY be used.
In OpenAPITools codegen, the MappedModel is the union of all the discriminator mappings,
both explicitly defined in the OpenAPI document and inherited from oneOf/allOf/anyOf.