Skip to main content

One post tagged with "json-schema"

View All Tags

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

CJ Cummings
Co-founder & CEO, Limitr

JSON Schema's core limitation isn't its syntax — it's that a schema is always a second, separate document describing the shape of a first one, and nothing forces the two to stay in agreement. Add a field to your data and forget the schema, and nothing tells you. Stof takes a different approach: #[schema(...)] attaches a validation rule directly to the field it protects, in the same document, so there's no second file that can quietly fall out of sync.