Created
February 25, 2017 16:55
-
-
Save podhmo/4df73990ac9f3794a8cc396bec2c948c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
go-swagger person5以外ダメ