diff options
| author | Mike Dilger <mike@mikedilger.com> | 2023-01-14 09:59:19 +1300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2023-01-18 09:42:32 -0300 |
| commit | 8b18e7818e0c2fcbd8bc82e0660f8b6ba23af50d (patch) | |
| tree | ce2c29ca90f41a581f6929529716c769e4ca43a8 | |
| parent | 1840c5cbdf37635fcada6434e91e9a47b0251d91 (diff) | |
Several NIP examples (3, 11) weren't quoting the field keys (JSON keys must be quoted)
| -rw-r--r-- | 03.md | 6 | ||||
| -rw-r--r-- | 11.md | 14 |
2 files changed, 10 insertions, 10 deletions
| @@ -10,11 +10,11 @@ When there is an OTS available it MAY be included in the existing event body und | |||
| 10 | 10 | ||
| 11 | ``` | 11 | ``` |
| 12 | { | 12 | { |
| 13 | id: ..., | 13 | "id": ..., |
| 14 | kind: ..., | 14 | "kind": ..., |
| 15 | ..., | 15 | ..., |
| 16 | ..., | 16 | ..., |
| 17 | ots: <base64-encoded OTS file data> | 17 | "ots": <base64-encoded OTS file data> |
| 18 | } | 18 | } |
| 19 | ``` | 19 | ``` |
| 20 | 20 | ||
| @@ -12,13 +12,13 @@ When a relay receives an HTTP(s) request with an `Accept` header of `application | |||
| 12 | 12 | ||
| 13 | ```json | 13 | ```json |
| 14 | { | 14 | { |
| 15 | name: <string identifying relay>, | 15 | "name": <string identifying relay>, |
| 16 | description: <string with detailed information>, | 16 | "description": <string with detailed information>, |
| 17 | pubkey: <administrative contact pubkey>, | 17 | "pubkey": <administrative contact pubkey>, |
| 18 | contact: <administrative alternate contact>, | 18 | "contact": <administrative alternate contact>, |
| 19 | supported_nips: <a list of NIP numbers supported by the relay>, | 19 | "supported_nips": <a list of NIP numbers supported by the relay>, |
| 20 | software: <string identifying relay software URL>, | 20 | "software": <string identifying relay software URL>, |
| 21 | version: <string version identifier> | 21 | "version": <string version identifier> |
| 22 | } | 22 | } |
| 23 | ``` | 23 | ``` |
| 24 | 24 | ||