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>
This commit is contained in:
Alex Gleason 2024-04-25 06:38:36 -05:00 committed by GitHub
parent 7dfb11b435
commit 6071f3489e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
46.md
View File

@ -153,13 +153,13 @@ The `content` field is a JSON-RPC-like message that is [NIP-04](https://github.c
{
"id": <request_id>,
"result": <results_string>,
"error": <error_string>
"error": <optional_error_string>
}
```
- `id` is the request ID that this response is for.
- `results` is a string of the result of the call (this can be either a string or a JSON stringified object)
- `error` is an error in string form.
- `error`, _optionally_, it is an error in string form, if any. Its presence indicates an error with the request.
### Auth Challenges