Last active
April 21, 2017 05:13
-
-
Save lekoder/4bd0131c4d1eff7e6ff264a2da3afda6 to your computer and use it in GitHub Desktop.
Revisions
-
lekoder revised this gist
Apr 21, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -10,6 +10,7 @@ paths: get: responses: '200': description: Dummy description schema: $ref: '#/definitions/Composed' definitions: -
lekoder created this gist
Apr 21, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ swagger: '2.0' info: title: Composing Error Demo description: demo of composing error version: 0.1.0 schemes: - http paths: /: get: responses: '200': schema: $ref: '#/definitions/Composed' definitions: Simple1: type: object properties: id1: type: integer format: int64 Simple2: type: object properties: id2: type: integer format: int64 Composed: allOf: - $ref: '#/definitions/Simple1' - $ref: '#/definitions/Simple2'