Skip to content

Commit

Permalink
update reading of 'load_from' and 'data_key'
Browse files Browse the repository at this point in the history
  • Loading branch information
rekt-hard committed Mar 1, 2022
1 parent a205a66 commit 04826dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invenio_oaiserver/verbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ class ListSets(OAISchema, ResumptionTokenSchema):
def check_extra_params_in_request(verb):
"""Check for extra arguments in incomming request."""
extra = set(request.values.keys()) - set([
getattr(f, 'load_from', None) or getattr(
f, 'data_key', None) or f.name for f in verb.fields.values()
f.metadata.get('load_from', None) or f.metadata
.get('data_key', None) or f.name for f in verb.fields.values()
])
if extra:
raise ValidationError({'_schema': ['You have passed too many arguments.']})
Expand Down

0 comments on commit 04826dc

Please sign in to comment.