Skip to content

RockefellerArchiveCenter/rac_schemas

Repository files navigation

rac_schemas

Rockefeller Archive Center JSON Schemas.

Requirements

Installation

After installing pre-commit, install the git-hook scripts:

$ pre-commit install

Usage

These schemas are intended for use with the validators from rac-schema-validators but they are also valid JSONSchema files and can be used with other JSONSchema validators.

Available schemas

All schemas are located in the schemas/ directory.

Tests

rac_schemas comes with unit tests as well as linting. The easiest way to make sure all tests pass is to run tox from the root of the repository. This will execute all tests, and will also run autopep8 and flake8 linters against the codebase.

Documentation

Automatically generated HTML documentation in the docs/ directory based upon .json files in the schemas/ subdirectory of the rac_schemas/ directory.

A simplified overview of the data model is below:

Simplified data model overwiew

Requirements

Usage

Running generate_docs.py will iterate over the schemas/ subdirectory and write updated docs files to the docs/ directory.

License

Code is released under an MIT license. SeeLICENSE.md.