mirror of
https://github.com/edufeed-org/nips.git
synced 2025-12-10 00:34:32 +00:00
format(all): json formatting
This commit is contained in:
parent
b4a2561df7
commit
e6552476aa
36 changed files with 206 additions and 194 deletions
12
58.md
12
58.md
|
|
@ -74,7 +74,7 @@ Clients SHOULD attempt to render the most appropriate badge thumbnail according
|
|||
|
||||
### Example of a Badge Definition event
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"pubkey": "alice",
|
||||
"kind": 30009,
|
||||
|
|
@ -85,13 +85,13 @@ Clients SHOULD attempt to render the most appropriate badge thumbnail according
|
|||
["image", "https://nostr.academy/awards/bravery.png", "1024x1024"],
|
||||
["thumb", "https://nostr.academy/awards/bravery_256x256.png", "256x256"]
|
||||
],
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
### Example of Badge Award event
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"id": "<badge award event id>",
|
||||
"kind": 8,
|
||||
|
|
@ -101,14 +101,14 @@ Clients SHOULD attempt to render the most appropriate badge thumbnail according
|
|||
["p", "bob", "wss://relay"],
|
||||
["p", "charlie", "wss://relay"]
|
||||
],
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
### Example of a Profile Badges event
|
||||
|
||||
Honorable Bob The Brave:
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 30008,
|
||||
"pubkey": "bob",
|
||||
|
|
@ -119,6 +119,6 @@ Honorable Bob The Brave:
|
|||
["a", "30009:alice:honor"],
|
||||
["e", "<honor badge award event id>", "wss://nostr.academy"]
|
||||
],
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue