Skip to content

Commit

Permalink
Extensions on methods don't cascade to responses
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Azquelt committed Aug 10, 2023
1 parent b6a0778 commit 346acd8
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down

0 comments on commit 346acd8

Please sign in to comment.