amplify-category-api
amplify-category-api copied to clipboard
chore: allow adding underscore (_), colon (:), comma (,), and dot(.) for the path part and underscore (_) for path parameters in addition to a-z A-Z -
Description of changes
Updated the regex for REST API path validation to conform with the specifications from the AWS API Gateway important notes. This change ensures that the API paths properly handle colons, commas, underscores, and dots in static segments without interpreting them as parameters.
CDK / CloudFormation Parameters Changed
N/A
Issue #, if available
N/A
Description of how you validated changes
- Unit tests
- Regex101 with Unit tests
- Manually tested in AWS API Gateway via AWS Console
Checklist
- [x] PR description included
- [x]
yarn testpasses
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.