From fc1e8900560a10e6d3ae2bf44a9bedaf1d0788a6 Mon Sep 17 00:00:00 2001 From: JordonPhillips Date: Fri, 25 Feb 2022 17:44:36 +0100 Subject: [PATCH] Add non-optional method for malformed request test uri Resolves #1102 --- .../protocoltests/traits/HttpMalformedRequestDefinition.java | 5 +++++ 1 file changed, 5 insertions(+) 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();