Skip to content

Commit

Permalink
test for swagger-api#360
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Tam committed Jan 6, 2020
1 parent b6a978f commit 159fbef
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,20 @@ public void verifySwaggerYaml() throws Exception {
verifySwaggerExtensions(openAPI);
}

@Test
public void verifyDebugJson() throws Exception {
ApiClient client = new ApiClient();
client.invokeAPI("/swagger/debug.json",
"GET",
new HashMap<String, String>(),
null,
new HashMap<String, String>(),
null,
"application/json",
null,
new String[0]);
}

private void verifySwaggerExtensions(OpenAPI openAPI) {
openAPI.getPaths().forEach((k, p) -> {
if (p.getPost() != null && p.getPost().getExtensions() != null) {
Expand Down

0 comments on commit 159fbef

Please sign in to comment.