Skip to content

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

Merged
merged 6 commits into from
Jul 1, 2021

Conversation

JordonPhillips
Copy link
Member

@JordonPhillips JordonPhillips commented Jun 28, 2021

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.

@JordonPhillips JordonPhillips changed the title Update smithy 1 9 chore: update to use Smithy 1.9.x Jun 28, 2021
* @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 => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parseFloat, like parseBoolean above?

Copy link
Member Author

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

@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@dc57732). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc57732...3745bcd. Read the comment docs.

@JordonPhillips
Copy link
Member Author

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-sdk-js-automation
Copy link

AWS CodeBuild CI Report

  • CodeBuild project: sdk-staging-test
  • Commit ID: 3745bcd
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@trivikr trivikr changed the title chore: update to use Smithy 1.9.x chore(codegen): pin smithy to 1.9.x Jul 1, 2021
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants