Last active
April 21, 2017 06:53
-
-
Save lekoder/f5b36b40bc042bb102e081f3b1513789 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
swagger: '2.0' | |
info: | |
title: Composing Error Demo | |
description: demo of composing error | |
version: 0.1.0 | |
schemes: | |
- http | |
paths: | |
/: | |
get: | |
responses: | |
'200': | |
description: Dummy description | |
schema: | |
$ref: '#/definitions/Composed' | |
definitions: | |
Simple1: | |
title: SimpleTitle1 | |
type: object | |
properties: | |
id1: | |
type: integer | |
format: int64 | |
Simple2: | |
title: SimpleTitle2 | |
type: object | |
properties: | |
id2: | |
type: integer | |
format: int64 | |
Composed: | |
title: TestComposedTitle | |
allOf: | |
- $ref: '#/definitions/Simple1' | |
- $ref: '#/definitions/Simple2' | |
ReferenctedS1: | |
$ref: '#/definitions/Simple1' | |
ReferenctedComposed: | |
$ref: '#/definitions/Composed' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment