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:
- 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
- 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)