Skip to content

Commit

Permalink
fix: write undefined JSON RPC input body (#2075)
Browse files Browse the repository at this point in the history
  • Loading branch information
kstich committed Feb 24, 2021
1 parent 23e48de commit a84afb0
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ private DocumentMemberSerVisitor getMemberSerVisitor(GenerationContext context,
return new JsonMemberSerVisitor(context, dataSource, getDocumentTimestampFormat());
}

@Override
protected boolean writeUndefinedInputBody(GenerationContext context, OperationShape operation) {
TypeScriptWriter writer = context.getWriter();

writer.write("const body = '{}';");
return true;
}

@Override
protected void writeErrorCodeParser(GenerationContext context) {
TypeScriptWriter writer = context.getWriter();
Expand Down

0 comments on commit a84afb0

Please sign in to comment.