Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(petstore): Update petstore to conform with OpenAPI 3.0.3 spec #4637

Merged
merged 4 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
mkdir deploy-dir
unzip build.zip -d deploy-dir
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.4.3
uses: JamesIves/github-pages-deploy-action@v4.5.0
char0n marked this conversation as resolved.
Show resolved Hide resolved
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages # The branch the action should deploy to.
Expand Down
26 changes: 17 additions & 9 deletions src/plugins/default-definitions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ paths:
description: Invalid ID supplied
'404':
description: Pet not found
'405':
'422':
description: Validation exception
security:
- petstore_auth:
Expand Down Expand Up @@ -107,8 +107,10 @@ paths:
application/xml:
schema:
$ref: '#/components/schemas/Pet'
'405':
'400':
description: Invalid input
'422':
description: Validation exception
security:
- petstore_auth:
- write:pets
Expand Down Expand Up @@ -249,7 +251,7 @@ paths:
schema:
type: string
responses:
'405':
'400':
description: Invalid input
security:
- petstore_auth:
Expand Down Expand Up @@ -364,8 +366,10 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Order'
'405':
'400':
description: Invalid input
'422':
description: Validation exception
/store/order/{orderId}:
get:
tags:
Expand Down Expand Up @@ -855,8 +859,10 @@ paths:
schema:
$ref: "#/definitions/Pet"
responses:
"405":
description: "Invalid input"
"400":
description: Invalid input
"422":
description: Validation exception
security:
- petstore_auth:
- "write:pets"
Expand Down Expand Up @@ -885,7 +891,7 @@ paths:
description: "Invalid ID supplied"
"404":
description: "Pet not found"
"405":
"422":
description: "Validation exception"
security:
- petstore_auth:
Expand Down Expand Up @@ -1019,8 +1025,10 @@ paths:
required: false
type: "string"
responses:
"405":
description: "Invalid input"
"400":
description: Invalid input
"422":
description: Validation exception
security:
- petstore_auth:
- "write:pets"
Expand Down