Skip to content
Snippets Groups Projects

jsex / yaml parser

Merged Daniel Hornung requested to merge f-more-jsonschema-export into dev
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