Skip to content

Commit

Permalink
Merge pull request #416 from RepreZen/task/OAS3_examples
Browse files Browse the repository at this point in the history
Update OAS3 examples in our tests
  • Loading branch information
tfesenko authored Oct 16, 2017
2 parents c398b9f + 870cfc3 commit 4fab9c5
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ paths:
operationId: listVersionsv2
summary: List API versions
responses:
200:
'200':
description: |-
200 response
content:
Expand Down Expand Up @@ -41,7 +41,7 @@ paths:
}
]
}
300:
'300':
description: |-
300 response
content:
Expand Down Expand Up @@ -80,7 +80,7 @@ paths:
operationId: getVersionDetailsv2
summary: Show API version details
responses:
200:
'200':
description: |-
200 response
content:
Expand Down Expand Up @@ -125,7 +125,7 @@ paths:
]
}
}
203:
'203':
description: |-
203 response
content:
Expand Down Expand Up @@ -164,4 +164,4 @@ paths:
}
]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ paths:
type: string
format: date-time
userData:
$ref: '#/components/schemas/UserLogData'
type: string
responses:
'202':
description: |
Expand All @@ -57,4 +57,4 @@ paths:
'204':
description: |
Your server should return this HTTP status code if no longer interested
in further updates
in further updates
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ components:
repository:
$ref: '#/components/schemas/repository'
author:
$ref: '#/components/schemas/user'
$ref: '#/components/schemas/user'
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: "3.0.0"
info:
version: 1.0.0
title: Swagger Petstore
description: A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification
description: A sample API that uses a petstore as an example to demonstrate features in the OpenAPI 3.0 specification
termsOfService: http://swagger.io/terms/
contact:
name: Swagger API Team
Expand Down Expand Up @@ -40,7 +40,7 @@ paths:
type: integer
format: int32
responses:
200:
'200':
description: pet response
content:
application/json:
Expand All @@ -65,7 +65,7 @@ paths:
schema:
$ref: '#/components/schemas/NewPet'
responses:
200:
'200':
description: pet response
content:
application/json:
Expand All @@ -90,7 +90,7 @@ paths:
type: integer
format: int64
responses:
200:
'200':
description: pet response
content:
application/json:
Expand All @@ -114,7 +114,7 @@ paths:
type: integer
format: int64
responses:
204:
'204':
description: pet deleted
default:
description: unexpected error
Expand Down Expand Up @@ -152,4 +152,4 @@ components:
type: integer
format: int32
message:
type: string
type: string
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ paths:
type: integer
format: int32
responses:
200:
'200':
description: An paged array of pets
headers:
x-next:
Expand All @@ -45,7 +45,7 @@ paths:
tags:
- pets
responses:
201:
'201':
description: Null response
default:
description: unexpected error
Expand All @@ -67,7 +67,7 @@ paths:
schema:
type: string
responses:
200:
'200':
description: Expected response to a valid request
content:
application/json:
Expand Down Expand Up @@ -106,4 +106,4 @@ components:
type: integer
format: int32
message:
type: string
type: string
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ paths:
tags:
- Products
responses:
200:
'200':
description: An array of products
content:
application/json:
Expand Down Expand Up @@ -80,7 +80,7 @@ paths:
tags:
- Estimates
responses:
200:
'200':
description: An array of price estimates by product
content:
application/json:
Expand Down Expand Up @@ -127,7 +127,7 @@ paths:
tags:
- Estimates
responses:
200:
'200':
description: An array of products
content:
application/json:
Expand All @@ -148,7 +148,7 @@ paths:
tags:
- User
responses:
200:
'200':
description: Profile information for a user
content:
application/json:
Expand Down Expand Up @@ -180,7 +180,7 @@ paths:
tags:
- User
responses:
200:
'200':
description: History information for the given user
content:
application/json:
Expand Down Expand Up @@ -294,4 +294,4 @@ components:
type: string
fields:
type: string


0 comments on commit 4fab9c5

Please sign in to comment.