Skip to content

Commit

Permalink
Clarify aws http payload binding error
Browse files Browse the repository at this point in the history
Resolves #1078
  • Loading branch information
JordonPhillips authored and kstich committed Mar 2, 2022
1 parent 489c410 commit fc68587
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ private List<ValidationEvent> validateService(
private Optional<ValidationEvent> validateBindings(Model model, Collection<HttpBinding> payloadBindings) {
for (HttpBinding binding : payloadBindings) {
if (!payloadBoundToValidType(model, binding.getMember().getTarget())) {
return Optional.of(error(binding.getMember(), "AWS Protocols do not support applying the httpPayload "
+ "trait to members that target sets, lists, or maps."));
return Optional.of(error(binding.getMember(), "AWS Protocols only support binding the "
+ "following shape types to the payload: string, blob, structure, union, and document"));
}
}
return Optional.empty();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[ERROR] smithy.example#InvalidBindingOperationInput$listBinding: AWS Protocols do not support applying the httpPayload trait to members that target sets, lists, or maps. | ProtocolHttpPayload
[ERROR] smithy.example#InvalidBindingOperationOutput$mapBinding: AWS Protocols do not support applying the httpPayload trait to members that target sets, lists, or maps. | ProtocolHttpPayload
[ERROR] smithy.example#InvalidBindingError$setBinding: AWS Protocols do not support applying the httpPayload trait to members that target sets, lists, or maps. | ProtocolHttpPayload
[ERROR] smithy.example#InvalidBindingOperationInput$listBinding: AWS Protocols only support binding the following shape types to the payload: string, blob, structure, union, and document | ProtocolHttpPayload
[ERROR] smithy.example#InvalidBindingOperationOutput$mapBinding: AWS Protocols only support binding the following shape types to the payload: string, blob, structure, union, and document | ProtocolHttpPayload
[ERROR] smithy.example#InvalidBindingError$setBinding: AWS Protocols only support binding the following shape types to the payload: string, blob, structure, union, and document | ProtocolHttpPayload

0 comments on commit fc68587

Please sign in to comment.