Created
December 16, 2019 14:24
-
-
Save thiagoarrais/e91909b7b00b995b419d7d86cacb426e to your computer and use it in GitHub Desktop.
Input files for openapi-diff #105
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
openapi: 3.0.0 | |
servers: | |
- url: 'http://petstore.swagger.io/v2' | |
info: | |
description: >- | |
This is a sample server Petstore server. You can find out more about | |
Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, | |
#swagger](http://swagger.io/irc/). For this sample, you can use the api key | |
`special-key` to test the authorization filters. | |
version: 1.0.0 | |
title: Swagger Petstore | |
termsOfService: 'http://swagger.io/terms/' | |
contact: | |
email: apiteam@swagger.io | |
license: | |
name: Apache 2.0 | |
url: 'http://www.apache.org/licenses/LICENSE-2.0.html' | |
tags: | |
- name: pet | |
description: Everything about your Pets | |
externalDocs: | |
description: Find out more | |
url: 'http://swagger.io' | |
- name: store | |
description: Access to Petstore orders | |
- name: user | |
description: Operations about user | |
externalDocs: | |
description: Find out more about our store | |
url: 'http://swagger.io' | |
paths: | |
/pet/findByStatus: | |
get: | |
tags: | |
- pet | |
summary: Finds Pets by status | |
description: Multiple status values can be provided with comma separated strings | |
operationId: findPetsByStatus | |
parameters: | |
- name: status | |
in: query | |
description: Status values that need to be considered for filter | |
required: true | |
explode: true | |
schema: | |
type: array | |
items: | |
type: string | |
enum: | |
- available | |
- pending | |
- sold | |
default: available | |
responses: | |
'200': | |
description: successful operation | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
pets: | |
type: array | |
items: | |
$ref: '#/components/schemas/Dog' | |
'400': | |
description: Invalid status value | |
security: | |
- petstore_auth: | |
- 'write:pets' | |
- 'read:pets' | |
externalDocs: | |
description: Find out more about Swagger | |
url: 'http://swagger.io' | |
components: | |
requestBodies: | |
Pet: | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Pet' | |
description: Pet object that needs to be added to the store | |
required: true | |
securitySchemes: | |
petstore_auth: | |
type: oauth2 | |
flows: | |
implicit: | |
authorizationUrl: 'http://petstore.swagger.io/oauth/dialog' | |
scopes: | |
'write:pets': modify pets in your account | |
'read:pets': read your pets | |
api_key: | |
type: apiKey | |
name: api_key | |
in: header | |
schemas: | |
Pet: | |
type: object | |
required: | |
- pet_type | |
properties: | |
pet_type: | |
type: string | |
discriminator: | |
propertyName: pet_type | |
mapping: | |
cachorro: Dog | |
Cat: | |
type: object | |
properties: | |
name: | |
type: string | |
Dog: | |
type: object | |
properties: | |
bark: | |
type: string | |
aaaa: | |
type: integer | |
tttt: | |
type: object | |
properties: | |
missing: | |
type: string | |
puppies: | |
type: array | |
items: | |
type: object | |
properties: | |
name: | |
type: string | |
nick: | |
type: string | |
Lizard: | |
type: object | |
properties: | |
lovesRocks: | |
type: boolean | |
MyResponseType: | |
oneOf: | |
- $ref: '#/components/schemas/Cat' | |
- $ref: '#/components/schemas/Dog' | |
- $ref: '#/components/schemas/Lizard' | |
discriminator: | |
propertyName: pet_type | |
mapping: | |
dog: '#/components/schemas/Dog' |
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
openapi: 3.0.0 | |
servers: | |
- url: 'http://petstore.swagger.io/v2' | |
info: | |
description: >- | |
This is a sample server Petstore server. You can find out more about | |
Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, | |
#swagger](http://swagger.io/irc/). For this sample, you can use the api key | |
`special-key` to test the authorization filters. | |
version: 1.0.0 | |
title: Swagger Petstore | |
termsOfService: 'http://swagger.io/terms/' | |
contact: | |
email: apiteam@swagger.io | |
license: | |
name: Apache 2.0 | |
url: 'http://www.apache.org/licenses/LICENSE-2.0.html' | |
tags: | |
- name: pet | |
description: Everything about your Pets | |
externalDocs: | |
description: Find out more | |
url: 'http://swagger.io' | |
- name: store | |
description: Access to Petstore orders | |
- name: user | |
description: Operations about user | |
externalDocs: | |
description: Find out more about our store | |
url: 'http://swagger.io' | |
paths: | |
/pet/findByStatus: | |
get: | |
tags: | |
- pet | |
summary: Finds Pets by status | |
description: Multiple status values can be provided with comma separated strings | |
operationId: findPetsByStatus | |
parameters: | |
- name: status | |
in: query | |
description: Status values that need to be considered for filter | |
required: true | |
explode: true | |
schema: | |
type: array | |
items: | |
type: string | |
enum: | |
- available | |
- pending | |
- sold | |
default: available | |
responses: | |
'200': | |
description: successful operation | |
content: | |
application/json: | |
schema: | |
type: object | |
properties: | |
pets: | |
type: array | |
items: | |
$ref: '#/components/schemas/Dog' | |
'400': | |
description: Invalid status value | |
security: | |
- petstore_auth: | |
- 'write:pets' | |
- 'read:pets' | |
externalDocs: | |
description: Find out more about Swagger | |
url: 'http://swagger.io' | |
components: | |
requestBodies: | |
Pet: | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Pet' | |
description: Pet object that needs to be added to the store | |
required: true | |
securitySchemes: | |
petstore_auth: | |
type: oauth2 | |
flows: | |
implicit: | |
authorizationUrl: 'http://petstore.swagger.io/oauth/dialog' | |
scopes: | |
'write:pets': modify pets in your account | |
'read:pets': read your pets | |
api_key: | |
type: apiKey | |
name: api_key | |
in: header | |
schemas: | |
Pet: | |
type: object | |
required: | |
- pet_type | |
properties: | |
pet_type: | |
type: string | |
discriminator: | |
propertyName: pet_type | |
mapping: | |
cachorro: Dog | |
Cat: | |
type: object | |
properties: | |
name: | |
type: string | |
Dog: | |
type: object | |
properties: | |
barking: | |
type: string | |
aaaa: | |
type: string | |
tttt: | |
type: string | |
puppies: | |
type: array | |
items: | |
type: object | |
properties: | |
naming: | |
type: string | |
Lizard: | |
type: object | |
properties: | |
lovesRocks: | |
type: boolean | |
MyResponseType: | |
oneOf: | |
- $ref: '#/components/schemas/Cat' | |
- $ref: '#/components/schemas/Dog' | |
- $ref: '#/components/schemas/Lizard' | |
discriminator: | |
propertyName: pet_type | |
mapping: | |
dog: '#/components/schemas/Dog' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment