Skip to content

Instantly share code, notes, and snippets.

@podhmo
Created February 25, 2017 16:55
Show Gist options
  • Save podhmo/4df73990ac9f3794a8cc396bec2c948c to your computer and use it in GitHub Desktop.
Save podhmo/4df73990ac9f3794a8cc396bec2c948c to your computer and use it in GitHub Desktop.
definitions:
person:
description: original (no. 1)
properties:
name:
type: string
mix:
required: ["name"]
description: no. 2
properties:
age:
type: integer
person2:
allOf:
- $ref: "#/definitions/person"
- $ref: "#/definitions/mix"
person3:
allOf:
- $ref: "#/definitions/person"
- required: ["name"]
- description: no. 3
- properties:
age:
type: integer
person4:
allOf:
- $ref: "#/definitions/person"
description: no. 4
required: ["name"]
properties:
age:
type: integer
person5:
description: no. 5
properties:
name:
type: string
age:
type: integer
required: ["name"]
@podhmo
Copy link
Author

podhmo commented Feb 25, 2017

go-swagger person5以外ダメ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment