Schema submodule

Schema submodule#

JSON schema module.

class majis.schema.JsonSchema(fname: str | Path)[source]

JSON schema object.

property name: str

Schema file name.

property title: str

Schema title description.

validate(content: dict) None[source]

Validate content against the JSON schema.

property version: int

Schema version.

At the moment this value is extracted from the title property.