Skip to content

Commit d435e1a

Browse files
committed
petstore seems to be unavailable
1 parent 118c735 commit d435e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/swagger-parser/src/test/java/io/swagger/parser/OpenAPIParserTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,13 @@ public void testIssue768() {
124124

125125
@Test
126126
public void test30Url() {
127-
String location = "http://petstore.swagger.io/v2/swagger.json";
127+
String location = "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml";
128128

129129
SwaggerParseResult result = new OpenAPIParser().readLocation(location, null, null);
130130

131131
assertNotNull(result);
132132
assertNotNull(result.getOpenAPI());
133-
assertEquals(result.getOpenAPI().getOpenapi(), "3.0.1");
133+
assertEquals(result.getOpenAPI().getOpenapi(), "3.0.0");
134134
}
135135

136136
@Test

0 commit comments

Comments
 (0)