Skip to content

Commit

Permalink
rebase to the eventstream generator interface change
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Jul 21, 2022
1 parent 213ed19 commit 1ff2d42
Showing 1 changed file with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,8 @@ public void generateSharedComponents(GenerationContext context) {
context,
service,
getDocumentContentType(),
(datasouce, member) -> {
// TODO: runtime validating is not supported in RPC protocols.
// TODO: event headers marshalling for RPC protocols is not yet defined.
return datasouce;
},
(datasource, member) -> {
return datasource;
},
(ctxt) -> {
TypeScriptWriter writer = ctxt.getWriter();
() -> {
TypeScriptWriter writer = context.getWriter();
writer.write("body = context.utf8Decoder(body);");
},
serializingDocumentShapes
Expand All @@ -125,10 +117,7 @@ public void generateSharedComponents(GenerationContext context) {
service,
errorEventShapes,
deserializingDocumentShapes,
isErrorCodeInBody,
(dataSource, member) -> {
return dataSource;
}
isErrorCodeInBody
);
errorEventShapes.removeIf(deserializingErrorShapes::contains);
errorEventShapes.forEach(error -> generateErrorDeserializer(context, error));
Expand Down

0 comments on commit 1ff2d42

Please sign in to comment.