Skip to content

Commit 71c474d

Browse files
committed
enabled resolver
1 parent c50cf12 commit 71c474d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/swagger-parser/src/main/java/io/swagger/parser/SwaggerParser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
public class SwaggerParser {
1313
public Swagger read(String location) {
14-
return read(location, null);
14+
return read(location, null, true);
1515
}
1616

17-
public Swagger read(String location, List<AuthorizationValue> auths) {
17+
public Swagger read(String location, List<AuthorizationValue> auths, boolean resolve) {
1818
if(location == null)
1919
return null;
2020

@@ -24,7 +24,7 @@ public Swagger read(String location, List<AuthorizationValue> auths) {
2424
try{
2525
output = new Swagger20Parser().read(location, auths);
2626
if(output != null)
27-
return output;
27+
return new SwaggerResolver().resolve(output, auths);
2828
}
2929
catch (IOException e) {
3030
// continue;

0 commit comments

Comments
 (0)