swagger-inflector
swagger-inflector copied to clipboard
Validate the discriminator property
The discriminator is defined by version 2.0 of the spec as a way to achieve polymorphism. Payload validation should ensure that when a discriminator property is specified, it examines that property on the JSON being validated for the name of a definition, finds that definition, and validates against it.