-
Notifications
You must be signed in to change notification settings - Fork 243
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
chore(smithy): Codegen improvements #3439
Conversation
- Adds further override capabilities for shapes - Aligns `@default` and `@required` behavior more closely to the spec - Only generates `_init` if necessary
Since this tests very specific V2 features, the V1 transformation doesn't provide any value and prevents certain usages.
@@ -1033,20 +1033,6 @@ updates: | |||
- dependency-name: "amplify_lints" | |||
- dependency-name: "smithy_aws" | |||
- dependency-name: "aws_signature_v4" | |||
- package-ecosystem: "pub" | |||
directory: "packages/smithy/goldens/lib/custom" |
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.
Q: why removing the packages/smithy/goldens/lib/custom
and not others in packages/smithy/goldens/lib
e.g. packages/smithy/goldens/lib/awsQuery
or packages/smithy/goldens/lib/awsJson1_1
?
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.
custom
has smithy tests I wrote by hand. The v1
/ v2
split is meant to track differences in Smithy IDL versions since the AWS-vended Smithy models were (in the past) not fully migrated to V2. I think they've all been migrated at this point, so we can probably remove all v1 soon.
However, for the handwritten tests, it's not necessary to test V1 since many of the tests are specifically testing V2 features.
* chore(smithy): Codegen improvements - Adds further override capabilities for shapes - Aligns `@default` and `@required` behavior more closely to the spec - Only generates `_init` if necessary * chore(aft): Don't generate V1 models for `custom` service Since this tests very specific V2 features, the V1 transformation doesn't provide any value and prevents certain usages. * test(goldens): Add default value tests * fix(aft): SDK models are V2 * chore(repo): Regenerate SDK * chore(repo): Clean up
* chore(smithy): Codegen improvements - Adds further override capabilities for shapes - Aligns `@default` and `@required` behavior more closely to the spec - Only generates `_init` if necessary * chore(aft): Don't generate V1 models for `custom` service Since this tests very specific V2 features, the V1 transformation doesn't provide any value and prevents certain usages. * test(goldens): Add default value tests * fix(aft): SDK models are V2 * chore(repo): Regenerate SDK * chore(repo): Clean up
@default
and@required
behavior more closely to the spec_init
if necessary