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
No related branches found
No related tags found
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: ...@@ -137,8 +137,6 @@ class JsonSchemaExporter:
if rt.get_importance(prop.name) != db.OBLIGATORY: if rt.get_importance(prop.name) != db.OBLIGATORY:
continue continue
prop_name = prop.name prop_name = prop.name
if isinstance(prop.datatype, db.Entity):
prop_name = prop.datatype.name
required_list.append(prop_name) required_list.append(prop_name)
return required_list return required_list
......
...@@ -613,7 +613,7 @@ RT2: ...@@ -613,7 +613,7 @@ RT2:
assert json.dumps(schema, indent=2) == """{ assert json.dumps(schema, indent=2) == """{
"type": "object", "type": "object",
"required": [ "required": [
"RT1" "prop1"
], ],
"additionalProperties": true, "additionalProperties": true,
"title": "RT2", "title": "RT2",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment