From 346acd81548c945d5aee544ddf0cada29bd993dd Mon Sep 17 00:00:00 2001 From: Andrew Rouse Date: Thu, 10 Aug 2023 17:25:11 +0100 Subject: [PATCH] Extensions on methods don't cascade to responses There's nothing in the spec to specify that an @Extension annotation placed on a method should result in that extension key and value being added to the responses of the corresponding operation. Remove the test that was asserting this behaviour. --- .../org/eclipse/microprofile/openapi/tck/PetStoreAppTest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/tck/src/main/java/org/eclipse/microprofile/openapi/tck/PetStoreAppTest.java b/tck/src/main/java/org/eclipse/microprofile/openapi/tck/PetStoreAppTest.java index 9b56df70..23b3bd94 100644 --- a/tck/src/main/java/org/eclipse/microprofile/openapi/tck/PetStoreAppTest.java +++ b/tck/src/main/java/org/eclipse/microprofile/openapi/tck/PetStoreAppTest.java @@ -291,7 +291,6 @@ public void testExtensionPlacement(String type) { vr.body(opPath + ".responses.'200'", not(hasKey(X_OPERATION_EXT))); vr.body(opPath + ".responses.'200'", hasEntry(equalTo("x-response-ext"), equalTo("test-response-ext"))); vr.body(opPath + ".responses.'500'", not(hasKey(X_OPERATION_EXT))); - vr.body(opPath + ".responses.'503'", hasEntry(equalTo(X_OPERATION_EXT), equalTo(TEST_OPERATION_EXT))); vr.body(opPath + ".responses.'503'.content.'application/json'", hasEntry(equalTo("x-notavailable-ext"), equalTo("true"))); vr.body(opPath + ".responses.'503'.content.'application/xml'",