upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Dilger <mike@mikedilger.com>2023-01-14 09:59:19 +1300
committerfiatjaf <fiatjaf@gmail.com>2023-01-18 09:42:32 -0300
commit8b18e7818e0c2fcbd8bc82e0660f8b6ba23af50d (patch)
treece2c29ca90f41a581f6929529716c769e4ca43a8
parent1840c5cbdf37635fcada6434e91e9a47b0251d91 (diff)
Several NIP examples (3, 11) weren't quoting the field keys (JSON keys must be quoted)
-rw-r--r--03.md6
-rw-r--r--11.md14
2 files changed, 10 insertions, 10 deletions
diff --git a/03.md b/03.md
index 578c351..3c5d764 100644
--- a/03.md
+++ b/03.md
@@ -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
diff --git a/11.md b/11.md
index 2b26823..8cdb85e 100644
--- a/11.md
+++ b/11.md
@@ -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