DEV Community

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

Posted on

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 of you 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.

My roadmap consists of the following steps:

  1. Read the specs
  2. Take a look at existing implementations
  3. Write the code for testing using the JSON-Schema-Test-Suite
  4. Implement the validator using Draft 2020-12
  5. Support another draft like Draft-07 in the implementation (optional)

I plan on supporting multiple drafts in my implementation to focus on architectural decisions, though I might skip this step if I find that the scope of this project is getting out of hand

I’ll be building this project using Typescript. I am 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

Top comments (0)