-
Notifications
You must be signed in to change notification settings - Fork 619
Update HTTP binding protocol generation #465
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 |
Codecov Report
@@ Coverage Diff @@
## add-smithy-generator #465 +/- ##
=======================================================
+ Coverage 95.15% 96.5% +1.35%
=======================================================
Files 80 72 -8
Lines 1526 1231 -295
Branches 301 224 -77
=======================================================
- Hits 1452 1188 -264
+ Misses 74 43 -31 Continue to review full report at Codecov.
|
} | ||
|
||
private String serializeToNumber() { | ||
return "Number(" + getDataSource() + ")"; |
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.
Can Number actually contain an entire BigDecimal?
...c/main/java/software/amazon/smithy/aws/typescript/codegen/RestJsonDocumentBodyGenerator.java
Outdated
Show resolved
Hide resolved
This commit updates the support for aws.rest-json-1.1 to build atop the refactor of protocol generation done in smithy-typescript. It also introduces support for the aws.rest-json-1.0 protocol. In doing so, general components were built atop the abstractions provided. The aws.rest-json-1.* set of protocols serialize BigInteger and BigDecimal shapes as JSON numbers on the wire, so an implementation of the DocumentMemberSerVisitor was created to fail generation. Implementations of the [DocumentShape[Deser|Ser]Visitor classes are also included to support serde of shapes in request and response bodies. A rest-json implementation of the HttpBindingProtocolGenerator has been created to combine the above aspects and handling of document bodies.
882df42
to
75ba8cb
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
This commit updates the support for aws.rest-json-1.1 to build atop the refactor of protocol generation done in smithy-typescript. It also introduces support for the aws.rest-json-1.0 protocol. In doing so, general components were built atop the abstractions provided. The aws.rest-json-1.* set of protocols serialize BigInteger and BigDecimal shapes as JSON numbers on the wire, so an implementation of the DocumentMemberSerVisitor was created to fail generation. Implementations of the [DocumentShape[Deser|Ser]Visitor classes are also included to support serde of shapes in request and response bodies. A rest-json implementation of the HttpBindingProtocolGenerator has been created to combine the above aspects and handling of document bodies.
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. |
This commit updates the support for
aws.rest-json-1.1
to build atopthe refactor of protocol generation done in smithy-typescript. It
also introduces support for the
aws.rest-json-1.0
protocol.In doing so, general components were built atop the abstractions
provided. The aws.rest-json-1.* set of protocols serialize BigInteger
and BigDecimal shapes as JSON numbers on the wire, so an implementation
of the DocumentMember[Deser|Ser]Visitor was created to fail generation.
Implementations of the DocumentShape[Deser|Ser]Visitor classes are
also included to support serde of shapes in request and response
bodies.
A rest-json implementation of the
HttpBindingProtocolGenerator
has beencreated to combine the above aspects and handling of document bodies.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.