ninjs documents can be validated using JSON Schema.
The IPTC maintains a schema for each release of the ninjs standard. IPTC ninjs schemas can be found here.
The most recent ninjs specification file is available at http://www.iptc.org/std/ninjs/ninjs-schema_1.2.json
validation/test_suite folder contains basic test documents that exercise
the capabilities of ninjs, and ensure that the schema correctly validates the
properties defined in ninjs.
Running the test suite
Install Python 3
From a command line, run
$ pip3 install jsonschema $ validation/python/runtests.py
This will run each of the files in the test suite against the ninjs-1.0 and ninjs-1.1 schemas.
Source code is published under the Creative Commons Attribution 4.0 license - see the full license agreement at http://creativecommons.org/licenses/by/4.0/.