Implementing a JSON Schema Validator from Scratch - Week 0

Published: (January 16, 2026 at 02:37 PM EST)
1 min read
Source: Dev.to

Source: Dev.to

Introduction

Cover image for Implementing a JSON Schema Validator from Scratch - Week 0

In an attempt to deepen my understanding of JSON Schema and how it works, I’ve decided to implement a validator from scratch.

For those who don’t know what JSON Schema is, it’s a declarative language used to validate JSON documents, ensuring they follow a specific structure. You can find more details here.

Roadmap

  • Read the specs
  • Take a look at existing implementations
  • Write the code for testing using the JSON‑Schema‑Test‑Suite
  • Implement the validator using Draft 2020‑12 (spec link)
  • (Optional) Support another draft such as Draft‑07 (spec link)

I plan on supporting multiple drafts in my implementation to focus on architectural decisions, though I might skip this step if the scope becomes too large.

I’ll be building this project using TypeScript. I’m learning the language as I go, so this project will serve as a practical way to pick it up while I work through the specification.

I’ll be posting weekly updates on my journey here.

The code can be found on GitHub.

Back to Blog

Related posts

Read more »

Beating the Tutorial

Article URL: https://elliotmorris.net/blog-a-day-3-beating-the-tutorial Comments URL: https://news.ycombinator.com/item?id=46564323 Points: 4 Comments: 0...