Alex on Nostr: They should do this: import { NSchema as n } from '@nostrify/nostrify'; const ...
Published at
2024-07-14 19:20:45Event JSON
{
"id": "21b98e43dbb421dceaaa8320c364d1c66588329314c22491c8c004945d689e25",
"pubkey": "0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd",
"created_at": 1720984845,
"kind": 1,
"tags": [
[
"e",
"93960ed429c9cdca034f71c211af0dd790d2a25bff6d9edb8350205ba26e7411",
"wss://gleasonator.dev/relay",
"root"
],
[
"e",
"93960ed429c9cdca034f71c211af0dd790d2a25bff6d9edb8350205ba26e7411",
"wss://gleasonator.dev/relay",
"reply"
],
[
"p",
"3f770d65d3a764a9c5cb503ae123e62ec7598ad035d836e2a810f3877a745b24"
],
[
"r",
"https://nostrify.dev/schema/#kind-0-metadata"
]
],
"content": "They should do this:\n\nimport { NSchema as n } from '@nostrify/nostrify';\n\nconst metadata = n.json().pipe(n.metadata()).parse(event.content);\n\nhttps://nostrify.dev/schema/#kind-0-metadata",
"sig": "2c18bba1d48a7de92f8c9c37f04c810b4db59640e4eaba531d4225b7cd1d7eb84b9f9411ede3cff301492c45006504554197756456d95bd56c9196fcee14b05a"
}