-
Notifications
You must be signed in to change notification settings - Fork 84
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 #256 from vishwas0906/master
Circular reference cause stackoverflow error when generating example from schema
- Loading branch information
Showing
4 changed files
with
124 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
swagger: '2.0' | ||
tags: | ||
- name: candidate | ||
# - http | ||
paths: | ||
/candidates: | ||
post: | ||
tags: | ||
- candidate | ||
summary: Add a new candidate to the database | ||
operationId: addCandidate | ||
consumes: | ||
- application/json | ||
produces: | ||
- application/json | ||
parameters: | ||
- in: body | ||
name: body | ||
description: Candiadate object that needs to be added to the database | ||
required: true | ||
schema: | ||
$ref: '#/definitions/Candidate' | ||
responses: | ||
405: | ||
description: Invalid input | ||
security: | ||
- petstore_auth: | ||
- write:pets | ||
- read:pet | ||
/sources: | ||
post: | ||
tags: | ||
- source | ||
summary: Add a new source to the database | ||
operationId: addSource | ||
consumes: | ||
- application/json | ||
produces: | ||
- application/json | ||
parameters: | ||
- in: body | ||
name: body | ||
description: Source object that needs to be added to the database | ||
required: true | ||
schema: | ||
$ref: '#/definitions/Source' | ||
responses: | ||
405: | ||
description: Invalid input | ||
security: | ||
- petstore_auth: | ||
- write:pets | ||
- read:pets | ||
definitions: | ||
Candidate: | ||
type: object | ||
required: | ||
- firstName | ||
- lastName | ||
properties: | ||
id: | ||
type: integer | ||
format: int64 | ||
firstName: | ||
type: string | ||
example: Jean | ||
lastName: | ||
type: string | ||
example: Dupont | ||
source: | ||
$ref: '#/definitions/Source' | ||
Source: | ||
type: object | ||
required: | ||
- name | ||
properties: | ||
id: | ||
type: integer | ||
format: int64 | ||
name: | ||
type: string | ||
example: CDR | ||
candidates: | ||
$ref: '#/definitions/Candidate' | ||
externalDocs: | ||
description: Find out more about Swagger | ||
url: http://swagger.io | ||
# Added by API Auto Mocking Plugin | ||
# host: miami.swaggerhub.com | ||
basePath: /mia87/MiamiAPI/1.0.1 | ||
schemes: | ||
- https | ||
- http | ||
# Added by API Auto Mocking Plugin | ||
host: virtserver.swaggerhub.com |