Skip to content

Commit

Permalink
fix: write undefined JSON RPC input body
Browse files Browse the repository at this point in the history
  • Loading branch information
kstich committed Feb 23, 2021
1 parent e694582 commit c2a73c4
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 c2a73c4

Please sign in to comment.