You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"data": {
"createTodo": null
},
"errors": [
{
"path": [
"createTodo"
],
"data": null,
"errorType": "DynamoDB:DynamoDbException",
"errorInfo": null,
"locations": [
{
"line": 2,
"column": 3,
"sourceName": null
}
],
"message": "Supplied AttributeValue is empty, must contain exactly one of the supported datatypes (Service: DynamoDb, Status Code: 400, Request ID: HQVD25FPEVRHJQMBCCSTO6TFFVVV4KQNSO5AEMVJF66Q9ASUAAJG)"
}
]
}
Expected behavior
When there is an empty array, we should just remove it from the variables. this may be a regression for this change? #519
The text was updated successfully, but these errors were encountered:
lawmicha
changed the title
Support for Optional Embedded Collection of Strings
Support for not passing in value for Optional Embedded Collection of Strings
Jun 12, 2020
codegen changes were released in 4.21.4 but deprecated, to reproduce for now, use npm install -g @aws-amplify/cli@iosCodegenWorkshop
or use latest master branch of CLI
This is how todo object (without stickies) got created based on the schema from above link let todo = Todo(id: "1234", name: "name", description: "description", categories: [Category(name: "Category", color: Color(name: "red", red: 255, green: 0, blue: 0))], section: Section(name: "section", number: 1.0))
Describe the bug
API request is failing when not specifying a value for an optional embedded collection of strings
To Reproduce
Steps to reproduce the behavior:
[]
.Expected behavior
When there is an empty array, we should just remove it from the variables. this may be a regression for this change? #519
The text was updated successfully, but these errors were encountered: