Skip to content

Fix invalid regex pattern for ClientRequestId in Chime SDK schema #4701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Shivam-Shrivastav
Copy link

Description

Fixes an invalid regex pattern for ClientRequestId in apis/chime-sdk-voice-2022-08-03.normal.json.

Previous (invalid):

^[-_a-zA-Z0-9]*${2,64}$

Updated (valid):

^[-_a-zA-Z0-9]{2,64}$

The original pattern used an invalid quantifier ${2,64} after a *, which is not valid regex syntax. The corrected pattern enforces 2–64 characters that are alphanumeric, underscores, or hyphens — as likely intended.


Checklist
  • npm run test passes
  • .d.ts file is updated
  • changelog is added, npm run add-change
  • run bundle exec rake docs:api and inspect doc/latest/index.html if documentation is changed
  • run npm run integration if integration test is changed
  • non-code related change (markdown/git settings etc)

@Shivam-Shrivastav Shivam-Shrivastav requested a review from a team as a code owner May 10, 2025 17:40
@aBurmeseDev
Copy link
Contributor

Thanks for the PR. However, the JavaScript SDK 2.x is in Maintenance Mode, will only be updated to address security concerns and major bugs. Please upgrade to https://github.com/aws/aws-sdk-js-v3, for the latest model update. Closing PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants