Invalid AWSPhone on AppSync

0

We are creating a record on AppSync with the following valid phone number: +65 8051 2187 but are returned with an invalid 'AWSPhone' value. Wouldn't the AWSPhone validation needs an update?

已提問 2 年前檢視次數 439 次
1 個回答
1

I’m having the same issue. AppSync is returning an error when a field is of type AWSPhone and has correct payload.

Here is the error message returned: "Variable 'phone' has an invalid value. Unable to parse +13451112222 as a valid phone number."

The phone number +13451112222 is valid (I put 1112222 here to hide real one), and passes validation on many other phone validation libraries. Is just that the area code 345 is from Cayman Islands.

已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南