aws / aws/aws-appsync-community
AWSPhone not performing correct validation
- Dominant language
- HTML
- Stars
- 507
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
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.
AppSync should allow this phone number.
Thank you.
Contributor guide
Research direction
Start by reproducing the AppSync validation error for an AWSPhone field using the reported Cayman Islands number +13451112222, then determine where AWSPhone validation is documented or configured. Done means AppSync accepts this valid phone number without returning the parse error; the issue does not name a repository file or test to change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, graphql
- Domain
- api
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100