feat(chalice): fixed try payload validation for old data
This commit is contained in:
parent
d6a4f42066
commit
738217d979
1 changed files with 2 additions and 0 deletions
|
|
@ -560,6 +560,8 @@ class _SessionSearchEventRaw(__MixedSearchFilter):
|
|||
assert len(values["source"]) > 0 and isinstance(values["source"][0], int), \
|
||||
f"source of type int if required for {PerformanceEventType.time_between_events}"
|
||||
else:
|
||||
assert "source" in values, f"source is required for {values.get('type')}"
|
||||
assert isinstance(values["source"], list), f"source of type list is required for {values.get('type')}"
|
||||
for c in values["source"]:
|
||||
assert isinstance(c, int), f"source value should be of type int for {values.get('type')}"
|
||||
elif values.get("type") == EventType.error and values.get("source") is None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue