Go to file
2014-03-01 09:03:39 +11:00
doc Initial commit. 2013-10-30 07:51:11 +11:00
examples Cleanup whitespace. 2014-03-01 09:03:39 +11:00
include/valijson Cleanup whitespace. 2014-03-01 09:03:39 +11:00
tests Cleanup whitespace. 2014-03-01 09:03:39 +11:00
thirdparty Initial commit. 2013-10-30 07:51:11 +11:00
xcode/valijson.xcodeproj Initial commit. 2013-10-30 07:51:11 +11:00
.gitignore Initial commit. 2013-10-30 07:51:11 +11:00
Doxyfile Initial commit. 2013-10-30 07:51:11 +11:00
LICENSE Initial commit. 2013-10-30 07:51:11 +11:00
Makefile Initial commit. 2013-10-30 07:51:11 +11:00
README.md Update requirements in README file, add make wrapping more consistent. 2014-03-01 08:59:43 +11:00

Valijson

Overview

Valijson is a header-only JSON Schema Validation library for C++.

Valijson provides a simple validation API that allows you load JSON Schemas, and validate documents loaded by one of several supported parser libraries.

License

Valijson is licensed under the Simplified BSD License. See the LICENSE file for more information.

Dependencies

Required:

  • boost 1.54

Valijson supports JSON documents loaded using JsonCpp, RapidJson and Boost Property Tree. It has been tested against the following versions of these libraries:

Other versions of these libraries may work, but have not been tested.

JSON Schema Support

Valijson supports most of the constraints defined in Draft 3 and Draft 4 of the JSON Schema specification.

The exceptions for Draft 3 are:

  • disallow
  • divisibleBy
  • extends
  • format (optional)
  • readonly
  • ref
  • refRemote

The exceptions for Draft 4 are:

  • definitions
  • format (optional)
  • multipleOf
  • ref
  • refRemote

Support for JSON References is in development.

Build instructions

A rudimentary Makefile has been included. Running 'make examples' will build the example programs in the 'examples' directory. Running 'make check' will build and run the test suite. Executables will be placed in 'bin'.

An Xcode 5 project has also been provided, in the 'xcode' directory. Note that in order to run the test suite, you may need to configure the working directory for the 'test_suite' scheme.

The Xcode project has been configured so that /usr/local/include is in the include path, and /usr/local/lib is in the library path. These are the locations that homebrew installed Boost on my test system.

Doxygen documentation can be built by running 'doxygen' from the project root directory. Generated documentation will be placed in 'doc/html'. Other relevant documentation such as schemas and specifications have been included in the 'doc' directory.