Skip to content

Commit

Permalink
fix endpoint prefix middleware input check
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed Oct 23, 2020
1 parent 5964f22 commit 804fb91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private static void writeMiddleware(
writer.addUseImports(SmithyGoDependency.STRINGS);
writer.addUseImports(SmithyGoDependency.SMITHY);
StructureShape input = ProtocolUtils.expectInput(model, operation);
writer.write("input, ok := in.Parameters.($T)", symbolProvider.toSymbol(input));
writer.write("input, ok := in.Parameters.($P)", symbolProvider.toSymbol(input));
w.openBlock("if !ok {", "}", () -> {
writer.write("return out, metadata, fmt.Errorf(\"unknown input type %T\", in.Parameters)");
}).write("");
Expand Down

0 comments on commit 804fb91

Please sign in to comment.