Skip to content
Branch: master
Find file History
bquinn dev schema unit tests (#42)
* Adding unit test code and tests for the ninjs dev schema,
currently handling publisher advice for "lifetime" and "importance".
Latest commit ebdd79e Dec 17, 2019
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Windows-dot.net
java/ninjsvalidator
python
test_suite
README.md

README.md

Validation

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

Test Suite

The 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.

License

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/.

You can’t perform that action at this time.