Skip to content
Snippets Groups Projects
Verified Commit 96a0ab9f authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: Adding earlier exception, which makes debugging easier.

parent 82e7b342
No related branches found
No related tags found
2 merge requests!89ENH: JsonSchemaExporter accepts do_not_create parameter.,!83ENH: JsonSchemaExporter can merge schemata and arrayize them
Pipeline #43194 passed
......@@ -258,7 +258,8 @@ class JsonSchemaExporter:
schema : dict
A dict containing the json schema created from the given RecordType's properties.
"""
if rt is None:
raise ValueError("`rt` must not be None.")
schema = self._make_segment_from_recordtype(rt)
schema["$schema"] = "https://json-schema.org/draft/2019-09/schema"
if rt.name:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment