swagger-inflector icon indicating copy to clipboard operation
swagger-inflector copied to clipboard

Validate the discriminator property

Open mgold opened this issue 8 years ago • 0 comments

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.

mgold avatar Feb 03 '17 21:02 mgold