Skip to content

Commit 5365571

Browse files
committed
Use better name for document body shape serde gen
1 parent a16b3a1 commit 5365571

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

smithy-typescript-codegen-test/model/main.smithy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ structure GetCityImageInput {
175175
}
176176

177177
structure GetCityImageOutput {
178+
@streaming
178179
@httpPayload
179180
image: CityImageData,
180181
}
181182

182-
@streaming
183183
blob CityImageData

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/DocumentShapeDeserVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* more complex deserialization strategies for those types.
4949
*
5050
* This class reduces the effort necessary to build protocol implementations, specifically when
51-
* implementing {@link HttpBindingProtocolGenerator#generateDocumentShapeDeserializers(GenerationContext, Set)}.
51+
* implementing {@link HttpBindingProtocolGenerator#generateDocumentBodyShapeDeserializers(GenerationContext, Set)}.
5252
*
5353
* Implementations of this class independent of protocol documents are also possible.
5454
*

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/DocumentShapeSerVisitor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
* complex serialization strategies for those types.
4949
*
5050
* This class reduces the effort necessary to build protocol implementations, specifically when
51-
* implementing {@link HttpBindingProtocolGenerator#generateDocumentShapeSerializers(GenerationContext, Set)}.
51+
* implementing {@link HttpBindingProtocolGenerator#generateDocumentBodyShapeSerializers(GenerationContext, Set)}.
5252
*
5353
* Implementations of this class independent of protocol documents are also possible.
5454
*

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpBindingProtocolGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public ApplicationProtocol getApplicationProtocol() {
9797
* @param context The generation context.
9898
* @param shapes The shapes to generate serialization for.
9999
*/
100-
protected abstract void generateDocumentShapeSerializers(GenerationContext context, Set<Shape> shapes);
100+
protected abstract void generateDocumentBodyShapeSerializers(GenerationContext context, Set<Shape> shapes);
101101

102102
/**
103103
* Generates deserialization functions for shapes in the passed set. These functions
@@ -108,13 +108,13 @@ public ApplicationProtocol getApplicationProtocol() {
108108
* @param context The generation context.
109109
* @param shapes The shapes to generate deserialization for.
110110
*/
111-
protected abstract void generateDocumentShapeDeserializers(GenerationContext context, Set<Shape> shapes);
111+
protected abstract void generateDocumentBodyShapeDeserializers(GenerationContext context, Set<Shape> shapes);
112112

113113
@Override
114114
public void generateSharedComponents(GenerationContext context) {
115115
deserializingErrorShapes.forEach(error -> generateErrorDeserializer(context, error));
116-
generateDocumentShapeSerializers(context, serializingDocumentShapes);
117-
generateDocumentShapeDeserializers(context, deserializingDocumentShapes);
116+
generateDocumentBodyShapeSerializers(context, serializingDocumentShapes);
117+
generateDocumentBodyShapeDeserializers(context, deserializingDocumentShapes);
118118
HttpProtocolGeneratorUtils.generateMetadataDeserializer(context, getApplicationProtocol().getResponseType());
119119
}
120120

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/integration/HttpRpcProtocolGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public ApplicationProtocol getApplicationProtocol() {
5959
* @param context The generation context.
6060
* @param shapes The shapes to generate serialization for.
6161
*/
62-
protected abstract void generateDocumentShapeSerializers(GenerationContext context, Set<Shape> shapes);
62+
protected abstract void generateDocumentBodyShapeSerializers(GenerationContext context, Set<Shape> shapes);
6363

6464
/**
6565
* Generates deserialization functions for shapes in the passed set. These functions
@@ -70,13 +70,13 @@ public ApplicationProtocol getApplicationProtocol() {
7070
* @param context The generation context.
7171
* @param shapes The shapes to generate deserialization for.
7272
*/
73-
protected abstract void generateDocumentShapeDeserializers(GenerationContext context, Set<Shape> shapes);
73+
protected abstract void generateDocumentBodyShapeDeserializers(GenerationContext context, Set<Shape> shapes);
7474

7575
@Override
7676
public void generateSharedComponents(GenerationContext context) {
7777
deserializingErrorShapes.forEach(error -> generateErrorDeserializer(context, error));
78-
generateDocumentShapeSerializers(context, serializingDocumentShapes);
79-
generateDocumentShapeDeserializers(context, deserializingDocumentShapes);
78+
generateDocumentBodyShapeSerializers(context, serializingDocumentShapes);
79+
generateDocumentBodyShapeDeserializers(context, deserializingDocumentShapes);
8080
HttpProtocolGeneratorUtils.generateMetadataDeserializer(context, getApplicationProtocol().getResponseType());
8181
}
8282

0 commit comments

Comments
 (0)