Skip to content

Commit

Permalink
Merge pull request #61 from coinbase/patrick/error-description
Browse files Browse the repository at this point in the history
Error Descriptions
  • Loading branch information
patrick-ogrady authored Oct 19, 2020
2 parents 5d91fdf + 377d42f commit aa6665e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api.json
Original file line number Diff line number Diff line change
Expand Up @@ -2004,6 +2004,11 @@
"type":"string",
"example":"Invalid account format"
},
"description": {
"description":"Description allows the implementer to optionally provide additional information about an error. In many cases, the content of this field will be a copy-and-paste from existing developer documentation. Description can ONLY be populated with generic information about a particular type of error. It MUST NOT be populated with information about a particular instantiation of an error (use `details` for this). Whereas the content of Error.Message should stay stable across releases, the content of Error.Description will likely change across releases (as implementers improve error documentation). For this reason, the content in this field is not part of any type assertion (unlike Error.Message).",
"type":"string",
"example":"This error is returned when the requested AccountIdentifier is improperly formatted."
},
"retriable": {
"description":"An error is retriable if the same request may succeed if submitted again.",
"type":"boolean"
Expand Down
16 changes: 16 additions & 0 deletions models/Error.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,22 @@ properties:
the details field.
type: string
example: "Invalid account format"
description:
description: |
Description allows the implementer to optionally provide additional information
about an error. In many cases, the content of this field will be a copy-and-paste
from existing developer documentation.
Description can ONLY be populated with generic information about a particular
type of error. It MUST NOT be populated with information about a particular
instantiation of an error (use `details` for this).
Whereas the content of Error.Message should stay stable across releases, the
content of Error.Description will likely change across releases (as implementers
improve error documentation). For this reason, the content in this field
is not part of any type assertion (unlike Error.Message).
type: string
example: "This error is returned when the requested AccountIdentifier is improperly formatted."
retriable:
description: |
An error is retriable if the same request may succeed if submitted
Expand Down

0 comments on commit aa6665e

Please sign in to comment.