Skip to content
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

Use Record type in place of Object in HttpBindingProtocolGenerator #562

Merged

Conversation

trivikr
Copy link
Contributor

@trivikr trivikr commented Jun 13, 2022

Issue #, if available:
Internal JS-3299

Description of changes:
Uses Record type in place of Object in HttpBindingProtocolGenerator. This was missed in #557, as the regular expression didn't search for space after square bracket ends.

This PR searches for regular expression \{ \[key: string\] : ([^ ]*) \} and replacing it with Record<string, $1>
It also searched for regular expressions string[ ?]*\], and verified there are none in Java code

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@trivikr trivikr marked this pull request as ready for review June 13, 2022 14:28
@trivikr trivikr requested a review from a team as a code owner June 13, 2022 14:28
@trivikr trivikr merged commit 062ebfa into smithy-lang:main Jun 13, 2022
@trivikr trivikr deleted the record-http-binding-protocol-generator branch June 13, 2022 15:52
srchase pushed a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
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