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.

➡️ Stable 0.7x Web Development
3,133
Comments
18
Years Active
5
Top Authors
#7634
Topic ID

Activity Over Time

2009
4
2010
21
2011
22
2012
29
2013
47
2014
101
2015
104
2016
103
2017
127
2018
160
2019
158
2020
285
2021
327
2022
233
2023
541
2024
359
2025
485
2026
27

Keywords

HA BaseModel JSON TypeScript URI lang.org pypi.org langserver.org Serializable.html github.com schema json schemas libraries validation typescript type fields unions languages

Sample Comments

MrBuddyCasino Apr 7, 2025 View on HN

Did you provide a JSON schema? I've had good experience with that.

ZenPsycho Apr 15, 2016 View on HN

have you seen http://json-schema.org ?

octo_t Dec 24, 2013 View on HN

Come back to me when there's a standard for JSON schemas so my data can be actually strongly-typed + verified.

silverwind May 19, 2025 View on HN

JSON Schema is the way for cross-language validation. Wrap it in OpenAPI and you also get nice API docs for free.

jimktrains2 Jul 31, 2013 View on HN

There are Json schema implementations out there.

incrudible Jan 27, 2024 View on HN

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.

VHRanger May 10, 2024 View on HN

JSON with a good schema if you're doing it across languages?

nikolay Jul 5, 2019 View on HN

True. But isn't this also accomplished when pairing JSON with JSON Schema?

creatonez Oct 24, 2024 View on HN

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).

tracker1 Jul 24, 2016 View on HN

That's one of my bigger niggles as well... You can use json schema for your schema checking though.