File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
modules/swagger-codegen/src/main/java/io/swagger/codegen/config Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 13
13
import io .swagger .v3 .oas .models .OpenAPI ;
14
14
import io .swagger .v3 .core .util .Json ;
15
15
import io .swagger .v3 .parser .core .models .AuthorizationValue ;
16
+ import io .swagger .v3 .parser .core .models .ParseOptions ;
16
17
import io .swagger .v3 .parser .core .models .SwaggerParseResult ;
17
18
import io .swagger .v3 .parser .OpenAPIV3Parser ;
18
19
import org .apache .commons .lang3 .Validate ;
@@ -430,7 +431,10 @@ public ClientOptInput toClientOptInput() {
430
431
431
432
final List <AuthorizationValue > authorizationValues = AuthParser .parse (auth );
432
433
433
- SwaggerParseResult result = new OpenAPIParser ().readLocation (inputSpec , authorizationValues , null );
434
+ ParseOptions options = new ParseOptions ();
435
+ options .setResolve (true );
436
+ options .setFlatten (true );
437
+ SwaggerParseResult result = new OpenAPIParser ().readLocation (inputSpec , authorizationValues , options );
434
438
OpenAPI openAPI = result .getOpenAPI ();
435
439
436
440
input .opts (new ClientOpts ())
You can’t perform that action at this time.
0 commit comments