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
+ 22
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -245,11 +245,11 @@ class JsonSchemaExporter:
prop_name = prop.datatype
if isinstance(prop.datatype, db.Entity):
prop_name = prop.datatype.name
if prop_name in self._do_not_retrieve:
if prop.name in self._do_not_retrieve:
values = []
else:
values = self._retrieve_enum_values(f"RECORD '{prop_name}'")
if prop_name in self._do_not_create:
if prop.name in self._do_not_create:
# Only a simple list of values
json_prop["enum"] = values
else:
Loading