Created
May 29, 2018 15:35
-
-
Save FauxFaux/986decc0ccaae39db2d6415515f93b98 to your computer and use it in GitHub Desktop.
diagnosing swagger allOf
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 characters
swagger: '2.0' | |
info: | |
version: 1.0.0 | |
title: Example API | |
description: | | |
blabla | |
termsOfService: Copyright TEST eG - 2015 | |
contact: | |
name: [email protected] | |
license: | |
name: Example | |
url: http://a.b/ | |
host: localhost:58454 | |
basePath: /test/api | |
schemes: | |
- http | |
consumes: | |
- application/json;charset=utf-8 | |
produces: | |
- application/json;charset=utf-8 | |
paths: | |
/core/v1/test/: | |
post: | |
summary: Test Summary | |
description: foo | |
parameters: | |
- name: body | |
in: body | |
schema: | |
allOf: | |
- $ref: "#/definitions/PrimaryConfig" | |
- type: "object" | |
properties: | |
tacked_on_later: | |
type: "string" | |
responses: | |
'200': | |
description: Success. | |
headers: | |
RequestId: | |
type: string | |
description: Request id | |
schema: | |
type: number | |
definitions: | |
PrimaryConfig: | |
type: object | |
properties: | |
first_main_property: | |
type: string | |
second_main_property: | |
type: number |
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 characters
swagger: '2.0' | |
info: | |
version: 1.0.0 | |
title: Example API | |
description: | | |
blabla | |
termsOfService: Copyright TEST eG - 2015 | |
contact: | |
name: [email protected] | |
license: | |
name: Example | |
url: http://a.b/ | |
host: localhost:58454 | |
basePath: /test/api | |
schemes: | |
- http | |
consumes: | |
- application/json;charset=utf-8 | |
produces: | |
- application/json;charset=utf-8 | |
paths: | |
/core/v1/test/: | |
post: | |
summary: Test Summary | |
description: foo | |
parameters: | |
- name: body | |
in: body | |
schema: | |
allOf: | |
- $ref: "#/definitions/PrimaryConfig" | |
- $ref: "#/definitions/ExtraConfig" | |
responses: | |
'200': | |
description: Success. | |
headers: | |
RequestId: | |
type: string | |
description: Request id | |
schema: | |
type: number | |
definitions: | |
PrimaryConfig: | |
type: object | |
properties: | |
first_main_property: | |
type: string | |
second_main_property: | |
type: number | |
ExtraConfig: | |
type: object | |
properties: | |
tacked_on_later: | |
type: "string" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment