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 »

Linux Tutorial: Logs to CSV to JSON

Setup Directory bash mkdir -p tutorial cd tutorial Generate Sample Logs bash Generate logs inside the tutorial folder echo '2026-01-18 05:42:09 | INFO | system...

A Linux Tutorial: Log to CSV to JSON

Overview This tutorial walks through the process of converting raw application logs into structured JSON data. The workflow is useful for generating test data...

How I built a Movie Suggestion CLI

Introduction I have always had a knack for movies, especially great ones that fit the mood I am in at the moment or how I'd like to feel afterward, and dependi...