Skip to main content

2 posts tagged with "schemas"

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.

We Deserve Better Than JSON as a DSL

CJ Cummings
Co-founder & CEO, Limitr

It always starts innocently. You're creating a new config or endpoint with some dynamic behavior, thinking "keep it stupidly simple." What's simpler than JSON or TOML? Some key-value pairs, maybe some nesting — we'll actually keep it clean this time.

Any experienced programmer knows what comes next.