diff options
| author | Alex Gleason <alex@alexgleason.me> | 2024-04-25 06:38:36 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-25 08:38:36 -0300 |
| commit | 6071f3489eabe50eea748a2585a73c02a23d96cf (patch) | |
| tree | 8d4135ce53a5d9b5a1bb7595f5340c16fefef4f8 | |
| parent | 7dfb11b435a903c703bc38216eca805cefa494d4 (diff) | |
NIP-46: "error" property of response is optional (#1195)
* NIP-46: clarify "error" property of response
* NIP-46: It's -> Its
* optionally
Co-authored-by: Asai Toshiya <to.asai.60@gmail.com>
---------
Co-authored-by: fiatjaf_ <fiatjaf@gmail.com>
Co-authored-by: Asai Toshiya <to.asai.60@gmail.com>
| -rw-r--r-- | 46.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -153,13 +153,13 @@ The `content` field is a JSON-RPC-like message that is [NIP-04](https://github.c | |||
| 153 | { | 153 | { |
| 154 | "id": <request_id>, | 154 | "id": <request_id>, |
| 155 | "result": <results_string>, | 155 | "result": <results_string>, |
| 156 | "error": <error_string> | 156 | "error": <optional_error_string> |
| 157 | } | 157 | } |
| 158 | ``` | 158 | ``` |
| 159 | 159 | ||
| 160 | - `id` is the request ID that this response is for. | 160 | - `id` is the request ID that this response is for. |
| 161 | - `results` is a string of the result of the call (this can be either a string or a JSON stringified object) | 161 | - `results` is a string of the result of the call (this can be either a string or a JSON stringified object) |
| 162 | - `error` is an error in string form. | 162 | - `error`, _optionally_, it is an error in string form, if any. Its presence indicates an error with the request. |
| 163 | 163 | ||
| 164 | ### Auth Challenges | 164 | ### Auth Challenges |
| 165 | 165 | ||