Skip to content

Generating the Schema

Install the datamodl-codegen program which will convert a JSON schema into python code. Either follow the instructions here or run:

pip install datamodel-code-generator

Then in the iiif-prezi3 code directory run:

datamodel-codegen --input ../../iiif/presentation-validator/schema/iiif_3_0.json --input-file-type jsonschema --use-default --base-class base.Base  --output

Replacing the path to your iiif schema file with where ever you have downloaded the iiif_3_0.json file.