Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
definitions:
Pet:
type: object
properties:
name:
type: string
owner:
type: string
CreatePetRequest:
allOf:
- $ref: '#/definitions/Pet'
required:
- name
- owner
UpdatePetRequest:
allOf:
- $ref: '#/definitions/Pet'
###
# also doesn't work:
CreatePetRequest:
allOf:
- $ref: '#/definitions/Pet'
required:
- $ref: '#/definitions/Pet/properties/name'
- $ref: '#/definitions/Pet/properties/owner'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.