Skip to content

Commit

Permalink
improve test for issue1637
Browse files Browse the repository at this point in the history
  • Loading branch information
gracekarina committed May 11, 2022
1 parent dc911f7 commit 97c1f8f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ public class OpenAPIV3ParserTest {
public void testIssue1637_StyleAndContent() throws IOException {
ParseOptions options = new ParseOptions();
SwaggerParseResult result = new OpenAPIV3Parser().readLocation("src/test/resources/issue1637.yaml", null, options);
Yaml.prettyPrint(result.getOpenAPI());

Assert.assertNull(result.getOpenAPI().getPaths().get("/test").getGet().getParameters().get(0).getStyle());
Assert.assertNull(result.getOpenAPI().getPaths().get("/test").getGet().getParameters().get(0).getExplode());
Assert.assertNotNull(result.getOpenAPI().getPaths().get("/test").getGet().getParameters().get(0).getContent());
}

@Test
Expand Down

0 comments on commit 97c1f8f

Please sign in to comment.