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

Why use JSON Schema instead of XYZ (Other) Schema Validator? #8

Open
nelsonic opened this issue Oct 31, 2016 · 0 comments
Open

Why use JSON Schema instead of XYZ (Other) Schema Validator? #8

nelsonic opened this issue Oct 31, 2016 · 0 comments

Comments

@nelsonic
Copy link
Member

Why Not XYZ (Alternative) Schema...?

We attempted to use several "alternatives":

  • schema.org - uses micro-formats or HTML "hypermedia"
    instead of a more "efficient" data format.
  • GraphQL Schema - GraphQL
    is really promising. We used GraphQL
    for our "Inspirational Search" project and felt the pros & cons.
    It was good for succinctness, however the schema validation and error debugging (when something is wrong) was tedious.
    We would often spend hours trying to debug a complex schema without any luck,
    and then someone would spot a missing character
    (which was not reported in the error message) and it would "magically" work.
  • Joi - superb for backend (node.js)
    validation, concise syntax, however not easy to modularize or extend.
  • XSD (XML Schema Definition) - powerful but way more than what we need and
    xml is not ideal for "full-stack" where JSON can be loaded as a
    static file in Clients and easily used for client-side validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant