Skip to content

Commit

Permalink
connector_importer: take full control of what are the required_keys
Browse files Browse the repository at this point in the history
Not forcing required default value if required_keys is defined in options.mapper
  • Loading branch information
Ricardoalso committed Sep 10, 2024
1 parent c3aad0e commit 0e5d562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connector_importer/components/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def required_keys(self, create=False):
The recordset will use this to show required fields to users.
"""
req = dict(self.required)
req.update(self.work.options.mapper.get("required_keys", {}))
return req

return self.work.options.mapper.get("required_keys", {}) or req

translatable = []

Expand Down

0 comments on commit 0e5d562

Please sign in to comment.