-
-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(swr): error type is correct even when it's the same type as succe…
…ss type (#1276) Co-authored-by: Alfred Jonsson <[email protected]>
- Loading branch information
1 parent
5fe09c3
commit 6e521b5
Showing
4 changed files
with
53 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
openapi: '3.0.0' | ||
info: | ||
version: 1.0.0 | ||
title: Swagger Errors | ||
license: | ||
name: MIT | ||
paths: | ||
/error: | ||
get: | ||
summary: Get an Error Item | ||
operationId: createItems | ||
responses: | ||
'200': | ||
description: Success | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Item' | ||
'400': | ||
description: Error | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Item' | ||
default: | ||
description: Error | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/Item' | ||
components: | ||
schemas: | ||
Item: | ||
type: object | ||
properties: | ||
prop: | ||
type: string |