Skip to content

Commit

Permalink
chore: add hints about supported alteration types
Browse files Browse the repository at this point in the history
  • Loading branch information
djs0109 committed Jul 18, 2024
1 parent c1d6f06 commit 50c990d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion filip/models/ngsi_v2/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ def check_alteration_types(cls, v):
elif isinstance(v, list):
for item in v:
if item not in allowed_types:
raise ValueError(f'{item} is not a valid alterationType')
raise ValueError(f'{item} is not a valid alterationType'
f' allowed values are {allowed_types}')
return v
else:
raise ValueError('alterationTypes must be a list of strings')
Expand Down

0 comments on commit 50c990d

Please sign in to comment.