API Reference

The following classes may be imported directly from the top-level jschon package:

The package additionally defines the catalog initialization function:

jschon.create_catalog(*vocabularies, name='catalog')

Create and return a Catalog instance, configured with support for the specified JSON Schema vocabularies.

Parameters
  • vocabularies (str) – any of 2019-09, 2020-12, translation

  • name (str) – a unique name for the Catalog instance

Raises

ValueError – if a supplied vocabulary parameter is not recognized

Return type

jschon.catalog.Catalog