-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement support for webrpc errors (#5)
* Add webrpc error schema * Implement support for webrpc errors * CI: Update to webrpc@v0.11.2 * Regenerate using webrpc@v0.11.2
1 parent
4c31643
commit f4c9eac
Showing
5 changed files
with
287 additions
and
22 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
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,27 @@ | ||
{{- define "errorType" -}} | ||
{{- $error := . -}} | ||
|
||
Error{{$error.Name}}: | ||
type: object | ||
required: | ||
- error | ||
- code | ||
- msg | ||
- status | ||
properties: | ||
error: | ||
type: string | ||
example: {{printf "%q" $error.Name}} | ||
code: | ||
type: number | ||
example: {{$error.Code}} | ||
msg: | ||
type: string | ||
example: {{printf "%q" $error.Message}} | ||
cause: | ||
type: string | ||
status: | ||
type: number | ||
example: {{$error.HTTPStatus}} | ||
|
||
{{- end -}} |
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