-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #646 from swagger-api/fix/issue_643_master
Avoid duplicating definitions when they have the same name
- Loading branch information
Showing
7 changed files
with
85 additions
and
20 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
swagger: '2.0' | ||
info: | ||
version: 1.0.0 | ||
title: Sample Issue | ||
description: API | ||
termsOfService: TBD | ||
contact: | ||
name: API Team | ||
license: | ||
name: MIT | ||
host: xyz.com | ||
basePath: '' | ||
schemes: | ||
- https | ||
consumes: | ||
- application/json | ||
produces: | ||
- application/json | ||
paths: | ||
"/xyz": | ||
"$ref": "./xyz.yaml#/do_xyz" | ||
definitions: | ||
XYZResponse: | ||
"$ref": "./xyz.yaml#/definitions/XYZResponse" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
do_xyz: | ||
get: | ||
description: do xyz stuff | ||
operationId: doXyz | ||
produces: | ||
- application/json | ||
parameters: [] | ||
responses: | ||
'200': {} | ||
default: {} | ||
definitions: | ||
XYZResponse: | ||
properties: | ||
foo: | ||
type: string |