JSON Schema Validation
The cluster centers on discussions about JSON Schema for data validation, typing, cross-language use, and comparisons to alternative schema formats or tools.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Did you provide a JSON schema? I've had good experience with that.
have you seen http://json-schema.org ?
Come back to me when there's a standard for JSON schemas so my data can be actually strongly-typed + verified.
JSON Schema is the way for cross-language validation. Wrap it in OpenAPI and you also get nice API docs for free.
There are Json schema implementations out there.
If it can't be expressed as a JSON schema, it's a bad idea. If it can be expressed by a JSON schema, it may be a good idea.
JSON with a good schema if you're doing it across languages?
True. But isn't this also accomplished when pairing JSON with JSON Schema?
This tool can convert to JSON Schema, so it can be used with validator libraries. Either way, validation and static duck typing based on schema are two separate concerns, and the latter is impossible without something like a Typescript compiler (or checker if using jsdoc-style Typescript).
That's one of my bigger niggles as well... You can use json schema for your schema checking though.