Skip to content

Commit

Permalink
Add non-optional method for malformed request test uri
Browse files Browse the repository at this point in the history
Resolves #1102
  • Loading branch information
JordonPhillips committed Feb 25, 2022
1 parent 9815555 commit fc1e890
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public Optional<String> getUri() {
return Optional.ofNullable(uri);
}

public String expectUri() {
// This was always required, and is enforced in the smithy model
return uri;
}

public static HttpMalformedRequestDefinition fromNode(Node node) {
HttpMalformedRequestDefinition.Builder builder = builder();
ObjectNode o = node.expectObjectNode();
Expand Down

0 comments on commit fc1e890

Please sign in to comment.