Skip to main content

One post tagged with "validation"

View All Tags

The Problem With JSON Schema (And What We Did Differently)

CJ Cummings
Creator and maintainer of Stof, co-founder & CEO of Limitr

JSON Schema's real limitation isn't its syntax. It's that a schema is always a second document describing a first one, and nothing keeps the two in agreement. Add a field to your data, forget the schema, and nothing tells you.

Stof takes a different approach: #[schema(...)] puts the rule on the field it protects, in the same document. There's no second file to fall out of sync.