Inheritance and Polymorphism - Swagger
swagger.io › docs › specificationOne possible example are code generation tools: they can use discriminator to generate program statements that typecast request data to appropriate object type based on the discriminator property value. Mapping Type Names It is implied, that the property to which discriminator refers, contains the name of the target schema.