Skip to content

Commit

Permalink
test for issue #1509
Browse files Browse the repository at this point in the history
  • Loading branch information
gracekarina committed Jan 21, 2021
1 parent 8b9d8e0 commit 1f364b5
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ public class OpenAPIV3ParserTest {
protected int serverPort = getDynamicPort();
protected WireMockServer wireMockServer;

@Test
public void testServerRelativeUrl(){
String url = "https://petstore3.swagger.io/api/v3/openapi.json";
ParseOptions options = new ParseOptions();
options.setResolve(true);
SwaggerParseResult result = new OpenAPIV3Parser().readLocation(url,new ArrayList<>(),options);
assertTrue(result.getMessages().isEmpty());
}


@Test
public void testIssue1398() {
ParseOptions options = new ParseOptions();
Expand Down

0 comments on commit 1f364b5

Please sign in to comment.