mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-09-01 05:50:47 -04:00
format(all): json formatting
This commit is contained in:
26
32.md
26
32.md
@@ -57,7 +57,7 @@ Example events
|
||||
|
||||
A suggestion that multiple pubkeys be associated with the `permies` topic.
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 1985,
|
||||
"tags": [
|
||||
@@ -66,13 +66,13 @@ A suggestion that multiple pubkeys be associated with the `permies` topic.
|
||||
["p", <pubkey1>, <relay_url>],
|
||||
["p", <pubkey2>, <relay_url>]
|
||||
],
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
A report flagging violence toward a human being as defined by ontology.example.com.
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 1985,
|
||||
"tags": [
|
||||
@@ -81,13 +81,13 @@ A report flagging violence toward a human being as defined by ontology.example.c
|
||||
["p", <pubkey1>, <relay_url>],
|
||||
["p", <pubkey2>, <relay_url>]
|
||||
],
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
A moderation suggestion for a chat event.
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 1985,
|
||||
"tags": [
|
||||
@@ -95,13 +95,13 @@ A moderation suggestion for a chat event.
|
||||
["l", "approve", "nip28.moderation"],
|
||||
["e", <kind40_event_id>, <relay_url>]
|
||||
],
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
Assignment of a license to an event.
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 1985,
|
||||
"tags": [
|
||||
@@ -109,14 +109,14 @@ Assignment of a license to an event.
|
||||
["l", "MIT", "license"],
|
||||
["e", <event_id>, <relay_url>]
|
||||
],
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
Publishers can self-label by adding `l` tags to their own non-1985 events. In this case, the kind 1 event's author
|
||||
is labeling their note as being related to Milan, Italy using ISO 3166-2.
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 1,
|
||||
"tags": [
|
||||
@@ -124,13 +124,13 @@ is labeling their note as being related to Milan, Italy using ISO 3166-2.
|
||||
["l", "IT-MI", "ISO-3166-2"]
|
||||
],
|
||||
"content": "It's beautiful here in Milan!",
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
Author is labeling their note language as English using ISO-639-1.
|
||||
|
||||
```json
|
||||
```jsonc
|
||||
{
|
||||
"kind": 1,
|
||||
"tags": [
|
||||
@@ -138,7 +138,7 @@ Author is labeling their note language as English using ISO-639-1.
|
||||
["l", "en", "ISO-639-1"]
|
||||
],
|
||||
"content": "English text",
|
||||
...
|
||||
// other fields...
|
||||
}
|
||||
```
|
||||
|
||||
@@ -169,7 +169,7 @@ be handled in some other way.
|
||||
|
||||
|
||||
Appendix: Known Ontologies
|
||||
-------------------------
|
||||
--------------------------
|
||||
|
||||
Below is a non-exhaustive list of ontologies currently in widespread use.
|
||||
|
||||
|
Reference in New Issue
Block a user