Implementing a JSON Schema Validator from Scratch - Week 0
Source: Dev.to
Introduction

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.