API Reference
Package API
Catalog
- jschon.create_catalog(*versions, name='catalog', resolve_references=True)
Create and return a
Catalog
instance, initialized with a meta-schema and keyword support for each of the specified JSON Schema versions.- Parameters:
versions (str) – Any of
2019-09
,2020-12
,next
.name (str) – A unique name for the
Catalog
instance.resolve_references (bool) – Passed through to any calls made to the
JSONSchema
constructor; defaults toTrue
; if set toFalse
a separate call toresolve_references()
is required prior to evaluating any schemas.
- Raises:
ValueError – If any of versions is unrecognized.
- Return type: