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

FIX: "required" list for references fixed.

parent ef8c5998
Branches
Tags
3 merge requests!100WIP: Filling XLSX: Seems to be working.,!94ENH: add framework for converting json schema into table templates,!93Filling XLSX: Everything except multiple choice.
Pipeline #44757 passed
......@@ -137,8 +137,6 @@ class JsonSchemaExporter:
if rt.get_importance(prop.name) != db.OBLIGATORY:
continue
prop_name = prop.name
if isinstance(prop.datatype, db.Entity):
prop_name = prop.datatype.name
required_list.append(prop_name)
return required_list
......
......@@ -613,7 +613,7 @@ RT2:
assert json.dumps(schema, indent=2) == """{
"type": "object",
"required": [
"RT1"
"prop1"
],
"additionalProperties": true,
"title": "RT2",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment