Skip to content

Commit

Permalink
Add a 'missing fields' key to mapped dataset items
Browse files Browse the repository at this point in the history
  • Loading branch information
stijn-uva committed Feb 4, 2025
1 parent 11457e0 commit 204ab8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/lib/item_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ def __init__(self, mapper, original, mapped_object, *args, **kwargs):
self._original = original
self._mapped_object = mapped_object

if hasattr(mapped_object, "get_missing_fields"):
self.missing_fields = mapped_object.get_missing_fields()
self["missing_fields"] = ", ".join(self.missing_fields)

@property
def original(self):
"""
Expand Down

0 comments on commit 204ab8a

Please sign in to comment.