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

ENH: Better error message.

parent b49696bf
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
......@@ -259,7 +259,8 @@ class JsonSchemaExporter:
A dict containing the json schema created from the given RecordType's properties.
"""
if rt is None:
raise ValueError("`rt` must not be None.")
raise ValueError(
"recordtype_to_json_schema(...) cannot be called with a `None` RecordType.")
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.
Finish editing this message first!
Please register or to comment