Skip to content
Snippets Groups Projects

ENH: JsonSchemaExporter accepts do_not_create parameter.

Merged Florian Spreckelsen requested to merge release-v0.9.0 into main
2 files
+ 13
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -533,9 +533,13 @@ debug : bool, optional
if not isinstance(definition, dict):
return
if ("datatype" in definition
and definition["datatype"].startswith("LIST")):
# These definition items must be handled even for list props.
for prop_name, prop in definition.items():
if prop_name == "description":
self.model[name].description = prop
# For lists, everything else is not needed at this level.
if ("datatype" in definition and definition["datatype"].startswith("LIST")):
return
if name in self.treated:
@@ -553,7 +557,8 @@ debug : bool, optional
self.model[name].value = prop
elif prop_name == "description":
self.model[name].description = prop
# Handled above
continue
elif prop_name == "recommended_properties":
self._add_to_recordtype(
Loading