Skip to content

Commit

Permalink
test for issue swagger-api#1509
Browse files Browse the repository at this point in the history
  • Loading branch information
gracekarina committed Jan 21, 2021
1 parent 4b20645 commit 6a6544b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ 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 6a6544b

Please sign in to comment.