-
Notifications
You must be signed in to change notification settings - Fork 633
chore: codegen to remove __type from Exception #827
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
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
CI failure: $ tsc
lerna ERR! yarn run pretest exited 2 in '@aws-sdk/client-apigatewaymanagementapi'
lerna ERR! yarn run pretest stdout:
$ tsc
protocols/Aws_restJson1_1.ts(326,9): error TS2741: Property '__type' is missing in type '{ name: "ForbiddenException"; $fault: "client"; $metadata: __ResponseMetadata; }' but required in type 'ForbiddenException'.
protocols/Aws_restJson1_1.ts(338,9): error TS2741: Property '__type' is missing in type '{ name: "GoneException"; $fault: "client"; $metadata: __ResponseMetadata; }' but required in type 'GoneException'.
protocols/Aws_restJson1_1.ts(350,9): error TS2741: Property '__type' is missing in type '{ name: "LimitExceededException"; $fault: "client"; $metadata: __ResponseMetadata; }' but required in type 'LimitExceededException'.
protocols/Aws_restJson1_1.ts(362,9): error TS2741: Property '__type' is missing in type '{ name: "PayloadTooLargeException"; $fault: "client"; $metadata: __ResponseMetadata; Message: undefined; }' but required in type 'PayloadTooLargeException'.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. |
This fails as __type is required in SmithyException interface aws-sdk-js-v3/packages/smithy-client/src/exception.ts Lines 6 to 9 in 6c3e098
|
__type is also parsed while deserialization aws-sdk-js-v3/clients/client-acm/protocols/Aws_json1_1.ts Lines 413 to 415 in 6c3e098
CodeGen: Lines 106 to 112 in 6c3e098
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Codecov Report
@@ Coverage Diff @@
## smithy-codegen #827 +/- ##
=================================================
Coverage ? 92.38%
=================================================
Files ? 147
Lines ? 2915
Branches ? 509
=================================================
Hits ? 2693
Misses ? 222
Partials ? 0 Continue to review full report at Codecov.
|
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 #, if available:
Refs: smithy-lang/smithy-typescript#112
Description of changes:
codegen to remove __type from Exception
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.