-
Notifications
You must be signed in to change notification settings - Fork 614
chore(codegen): pin smithy to 1.9.x #2529
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
* @returns The value as a number, undefined if it's null/undefined, | ||
* otherwise an error is thrown. | ||
*/ | ||
export const handleFloat = (value: string | number): number | undefined => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parseFloat
, like parseBoolean
above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parseFloat
is a built in function
474892c
to
a440491
Compare
Codecov Report
@@ Coverage Diff @@
## main #2529 +/- ##
=======================================
Coverage ? 60.24%
=======================================
Files ? 513
Lines ? 27359
Branches ? 6421
=======================================
Hits ? 16482
Misses ? 10877
Partials ? 0 Continue to review full report at Codecov.
|
Just an FYI: the java bits will fail until smithy-lang/smithy-typescript#367 is merged because it includes a fix to the test generators. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
Issue
Follow-up to #2499
Smithy 1.9.0 release https://github.com/awslabs/smithy/releases/tag/1.9.0
Description
This updates the generators to 1.9.x and adds support for non-numeric float values. I also noticed that tests for AWS JSON 1.0 weren't being generated, so I added those in.
Testing
Protocol tests were generated and run.
Additional context
This relies on smithy-lang/smithy-typescript#367
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.