diff --git a/smithy-protocol-test-traits/src/main/java/software/amazon/smithy/protocoltests/traits/HttpMalformedRequestDefinition.java b/smithy-protocol-test-traits/src/main/java/software/amazon/smithy/protocoltests/traits/HttpMalformedRequestDefinition.java index ed04d018e76..9bace721d23 100644 --- a/smithy-protocol-test-traits/src/main/java/software/amazon/smithy/protocoltests/traits/HttpMalformedRequestDefinition.java +++ b/smithy-protocol-test-traits/src/main/java/software/amazon/smithy/protocoltests/traits/HttpMalformedRequestDefinition.java @@ -84,6 +84,11 @@ public Optional 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();