-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rework error filtering to preserve sibling additionalProperties …
…errors
- Loading branch information
Mike Kistler
committed
Jan 7, 2021
1 parent
f1646f7
commit 98f0271
Showing
7 changed files
with
113 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"info": { | ||
"title": "Invalid status codes", | ||
"description": "Test for oas3-schema additionalProperties", | ||
"version": "1.0.0", | ||
"contact": { | ||
"email": "[email protected]" | ||
} | ||
}, | ||
"servers": [ | ||
{ | ||
"url": "http://petstore.swagger.io/v1" | ||
} | ||
], | ||
"tags": [ | ||
{ | ||
"name": "pets" | ||
} | ||
], | ||
"paths": { | ||
"/pets": { | ||
"post": { | ||
"description": "Add a new pet to the store", | ||
"summary": "Create pet", | ||
"operationId": "create_pet", | ||
"tags": [ | ||
"pets" | ||
], | ||
"requestBody": { | ||
"description": "Pet object that needs to be added to the store", | ||
"required": true, | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"type": "object" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"204": { | ||
"description": "Success" | ||
}, | ||
"400": { | ||
"description": "Bad request" | ||
}, | ||
"42": { | ||
"description": "The answer to life, the universe, and everything" | ||
}, | ||
"9999": { | ||
"description": "Four digits must be better than three" | ||
}, | ||
"5xx": { | ||
"description": "Sumpin bad happened" | ||
}, | ||
"default": { | ||
"description": "Error" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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