Hacker News new | ask | show | jobs
by gunn 2252 days ago
Why are schemas strings?

It would seem much more natural to make them JSON structures since they're almost that anyway.

2 comments

Strings make it easy to define as configs and can be implemented uniformly across different languages. In world of microservices, a Python and a Go service can easily share the schema definitions via some config files. Also strings provided the best minimalist syntax.
then you might as well use jsonschema.
Indeed, there seems to be no reason to use this instead of JSON Schema.