openapi: 3.0.0 info: title: Swagger Petstore license: name: MIT version: 1.0.0 x-hash: abc123 servers: - url: http://petstore.swagger.io/v1 paths: {} components: schemas: Cat: description: A representation of a cat allOf: - $ref: '#/components/schemas/Pet' - type: object properties: huntingSkill: description: The measured skill for hunting type: string enum: - clueless - lazy - adventurous - aggressive required: - huntingSkill Dog: description: A representation of a dog allOf: - $ref: '#/components/schemas/Pet' - type: object properties: packSize: description: the size of the pack the dog is from type: integer format: int32 minimum: 0 required: - packSize Pet: discriminator: propertyName: petType type: object properties: name: type: string petType: type: string required: - name - petType