No need to roll your own nostr JSON validation schemas any longer.
Nostrability/schemata now supports several additional languages, in addition to the base nostrability/schemata + nostr.watch javascript validator.
You can add these to your CI, to catch malformed events/kinds before they hit production, and relays:
1. rust: https://github.com/nostrability/schemata-rs + https://github.com/nostrability/schemata-validator-rs
2. go: https://github.com/nostrability/schemata-go + https://github.com/nostrability/schemata-validator-go
3. dart: https://github.com/nostrability/schemata-dart + https://github.com/nostrability/schemata-validator-dart
4. swift: https://github.com/nostrability/schemata-swift + https://github.com/nostrability/schemata-validator-swift
5. python: https://github.com/nostrability/schemata-py + https://github.com/nostrability/schemata-validator-py
JS: https://www.npmjs.com/package/@nostrability/schemata + https://github.com/sandwichfarm/nostr-watch/tree/next/lib…
cc npub1uac67zc9er54l…
Nostrability/schemata now supports several additional languages, in addition to the base nostrability/schemata + nostr.watch javascript validator.
You can add these to your CI, to catch malformed events/kinds before they hit production, and relays:
1. rust: https://github.com/nostrability/schemata-rs + https://github.com/nostrability/schemata-validator-rs
2. go: https://github.com/nostrability/schemata-go + https://github.com/nostrability/schemata-validator-go
3. dart: https://github.com/nostrability/schemata-dart + https://github.com/nostrability/schemata-validator-dart
4. swift: https://github.com/nostrability/schemata-swift + https://github.com/nostrability/schemata-validator-swift
5. python: https://github.com/nostrability/schemata-py + https://github.com/nostrability/schemata-validator-py
JS: https://www.npmjs.com/package/@nostrability/schemata + https://github.com/sandwichfarm/nostr-watch/tree/next/lib…
cc npub1uac67zc9er54l…