You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allOf could be encoded in general case via "tupling" type with each other in new type:
components:
schemas:
Pet:
type: objectrequired:
- pet_typeproperties:
pet_type:
type: stringdiscriminator:
propertyName: pet_typeDog: # "Dog" is a value for the pet_type property (the discriminator value)allOf: # Combines the main `Pet` schema with `Dog`-specific properties
- $ref: '#/components/schemas/Pet'
- type: object# all other properties specific to a `Dog`properties:
bark:
type: booleanbreed:
type: stringCat: # "Cat" is a value for the pet_type property (the discriminator value)allOf: # Combines the main `Pet` schema with `Cat`-specific properties
- $ref: '#/components/schemas/Pet'
- type: object# all other properties specific to a `Cat`properties:
hunts:
type: booleanage:
type: integer
allOf
could be encoded in general case via "tupling" type with each other in new type:could be encoded like
The text was updated successfully, but these errors were encountered: