#2674 - ListAppend should also work when adding maps to a list

This commit is contained in:
Bert Blommers 2020-01-06 08:16:09 +00:00
commit 5f59cb7fb0
2 changed files with 53 additions and 1 deletions

View file

@ -457,7 +457,7 @@ class Item(BaseModel):
)
if not old_list.is_list():
raise ParamValidationError
old_list.value.extend(new_value["L"])
old_list.value.extend([DynamoType(v) for v in new_value["L"]])
value = old_list
return value