[DataStore] Invalid AWSPhone values cause silent failure when saving model to DynamoDB #1462
Open
1 task done
Labels
api
bug
Something isn't working
datastore
DataStore category/plugins
GraphQL API
Related to the API (GraphQL) category/plugins
Before opening, please confirm:
Language and Async Model
Java, Kotlin
Amplify Categories
DataStore
Gradle script dependencies
Environment information
Please include any relevant guides or documentation you're referencing
No response
Describe the bug
While using schemas with
AWSPhone
typed fields, if invalid phone numbers are provided,save
API call succeeded, model saved into local DB, modal is not saved into DynamoDB due to DynamoDB value validation raised GraphQL error.Expected behavior:
save
API call should return error with clear error message. Invalid data should not persisted in local DB.Original issue: aws-amplify/amplify-flutter#822 (comment)
amplify-ios issue: aws-amplify/amplify-swift#1393
Schema example
Reproduction steps (if applicable)
Code Snippet
Java code example
Log output
amplifyconfiguration.json
No response
GraphQL Schema
Additional information and screenshots
GraphQL request
GraphQL response
The text was updated successfully, but these errors were encountered: