Skip to content

Commit

Permalink
Merge pull request #31 from OpenEnergyPlatform/fix/validation_resources
Browse files Browse the repository at this point in the history
bugfix #30: make foreignKeys in resource.schema optional
  • Loading branch information
MGlauer authored Mar 5, 2020
2 parents 0e36ca3 + 2534e08 commit e55426b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/omi/dialects/oep/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def parse(self, json_old: dict, *args, **kwargs):
for field in old_fields
]
field_dict = {field.name: field for field in fields or []}
old_foreign_keys = old_schema.get("foreignKeys")
old_foreign_keys = old_schema.get("foreignKeys", [])
foreign_keys = []
for fk in old_foreign_keys:
old_reference = fk.get("reference")
Expand Down

0 comments on commit e55426b

Please sign in to comment.