Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 12 additions & 16 deletions examples/v3.0/petstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,11 @@ paths:
schema:
type: string
content:
application/json:
application/json:
schema:
$ref: "#/components/schemas/Pets"
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
$ref: "#/components/responses/UnexpectedError"
post:
summary: Create a pet
operationId: createPets
Expand All @@ -48,11 +44,7 @@ paths:
'201':
description: Null response
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
$ref: "#/components/responses/UnexpectedError"
/pets/{petId}:
get:
summary: Info for a specific pet
Expand All @@ -74,12 +66,16 @@ paths:
schema:
$ref: "#/components/schemas/Pet"
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
$ref: "#/components/responses/UnexpectedError"
components:
responses:
UnexpectedError:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"

schemas:
Pet:
type: object
Expand Down
Loading