Skip to content

Commit

Permalink
Remove warning when PATCH is idempotent
Browse files Browse the repository at this point in the history
  • Loading branch information
kstich committed Jul 19, 2021
1 parent cf1ecbd commit ae3af5e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public final class HttpMethodSemanticsValidator extends AbstractValidator {
"POST", new HttpMethodSemantics(false, null, true),
"DELETE", new HttpMethodSemantics(false, true, false),
"PUT", new HttpMethodSemantics(false, true, true),
"PATCH", new HttpMethodSemantics(false, false, true));
"PATCH", new HttpMethodSemantics(false, null, true));

@Override
public List<ValidationEvent> validate(Model model) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@
"target": "smithy.api#String"
}
}
},
"ns.foo#N": {
"type": "operation",
"traits": {
"smithy.api#http": {
"method": "PATCH",
"uri": "/E"
},
"smithy.api#idempotent": {}
}
}
}
}

0 comments on commit ae3af5e

Please sign in to comment.