Skip to content

Vindaar/JsonSchemaValidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JsonSchemaValidator

This library is provides a JSON Schema validator, based on the current draft 07: https://json-schema.org/latest/json-schema-validation.html.

It uses the official JSON Schema Test Suite. Currently almost all normal tests are passing, with the exception of one test of additionalProperties as well as one ref test case. The optional test cases have not been considered so far.

It is very much WIP!

Usage

The library provides a single exported procedure validate, which takes both a schema: JsonNode, and some data: JsonNode to validate against the schema. A bool is returned indicating whether data is valid under schema. Currently no errors as to what parts of the data are wrong are provided.

About

Just a JSON Schema validator written in Nim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages