Alex Gleason on Nostr: Only with zod is it easy to validate something like maxSendable >= minSendable right ...
Only with zod is it easy to validate something like maxSendable >= minSendable right in the parser itself. Praise zod!
Published at
2024-01-22 19:04:55Event JSON
{
"id": "bacb7fa5caa572f235f094a67890ff1b4904295b8d89b23c28b83c60467a0713",
"pubkey": "79c2cae114ea28a981e7559b4fe7854a473521a8d22a66bbab9fa248eb820ff6",
"created_at": 1705950295,
"kind": 1,
"tags": [
[
"proxy",
"https://gleasonator.com/objects/2f1c122c-0f66-4fa5-9245-e9a379db5852",
"activitypub"
]
],
"content": "Only with zod is it easy to validate something like maxSendable \u003e= minSendable right in the parser itself. Praise zod!\n\nhttps://media.gleasonator.com/b519d40c5bb468f375314e733220c12a70b59daa3edd7bf962a64ba114abc3db.png\n\nhttps://media.gleasonator.com/9662121a740a89a26ea55863e9284d8489a76d6c0bdd0ddaf0128e94b362683b.png",
"sig": "289cbc0062b58b03a3c94c47e9ebbe335e614fd99f9a91841661adcf94241efd6feb27195445861be6e7ec7ad793fb433d3b288311415d18e6c8d0de596787b5"
}