Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using JSON Schema for easy validation? #286

Open
Relequestual opened this issue Jan 25, 2019 · 2 comments
Open

Consider using JSON Schema for easy validation? #286

Relequestual opened this issue Jan 25, 2019 · 2 comments

Comments

@Relequestual
Copy link

Have you looked into using JSON Schema to define your JSON data structures?
It would mean you could auto validate JSON instances, and provide annotation of fields for those looking for understanding.

@Stwissel
Copy link

An Json schema would be helpful to validate compliance with the spec. Libraries that validate JSON payloads have matured quite a bit

@emersion
Copy link

emersion commented Feb 23, 2023

FWIW, I've started typing up a JMAP JSON schema (for code generation purposes): https://git.sr.ht/~emersion/jmap-schema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants