Menu

1 / 3

Tired of validating data with JSON Schema? We built an alternative

DEV Community·Pierre-Michel Bret·6 months ago
#b9OksX0j
#json#java#tutorial#type#schema
Reading 0:00
15s threshold

We've been there. JSON Schema gets hard to write as soon as your payload is non-trivial. Conditional logic, cross-field rules, business invariants, and at some point we stop writing contracts at all. We go code-first, generate the schema from annotations, and end up with 200 lines very few understand, and error messages referencing paths like #/properties/items/allOf/0/then/Then that map to nothing in our mental model.

So we built Okyline. A contract is just an annotated JSON example: you describe your data the way you'd explain it to a colleague. The engine derives all validation automatically.

Here's what progressive adoption looks like in practice, using an e-commerce order as a running example.

Step 1 - Your JSON is already a contract

No syntax to learn.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.