Using the OpenAPI discriminator - Redocly
redoc.ly › docs › resourcesThe discriminator must apply to the same level of the schema it is declared in (common mistake when using nested objects). Also, it must be used in combination with anyOf , oneOf , or allOf . We represent the discriminator like a pull down menu on the discriminated property.
Redoc
https://redoc.ly/redocSupports OpenAPI (OAS2 and OAS3) Use the latest OpenAPI standard in your API specification, or stay with OAS2 if needed. Redoc supports advanced OpenAPI v3 declarations like nested objects, the discriminator, “one of”, “any of”, “all of”, or nullable, and callbacks which aren’t supported properly in competitor tools.
x-extendedDiscriminator - redoc.ly
redoc.ly › x-extended-discriminatorUse x-extendedDiscriminator in your OpenAPI 2.0 documents to solve name-clash issues with the standard discriminator property. Add it to the schema OpenAPI object. The value of this field specifies which field will be used as a extended discriminator. In the documentation, Redocly displays a picker menu where users can select the value of the x ...