No commit activity in last 3 years
No release in over 3 years
A JSON schema validation tool.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

SchemaValidator

A simple CLI wrapper around Rx for all your schema validation needs.

Usage

Usage: runner [options]
    -s, --schema SCHEMA              The schema to validate against
    -f, --file FILE                  The file to validate
    -m META_SCHEMATA,                A file containing meta schema definitions
        --meta-schemata

Example: validate validatable.json against the schema defined in schema.json, using the meta schemas from meta_schemata.json:

./schema-validator -s schema.json -f validatable.json -m meta_schemata.json

Installation

Clone this repository and run:

gem build schema-validator.gemspec
gem install schema-validator-{version}.gem

Or add the following to your Gemfile:

gem 'schema-validator', :git => 'https://github.com/larslockefeer/schema-validator.git', :submodules => true

Acknowledgements

Under the hood, this gem uses Rx as the actual schema validation implementation.

Author