diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/config/CodegenConfigurator.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/config/CodegenConfigurator.java index 898a8034ace..ee0008ad3c0 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/config/CodegenConfigurator.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/v3/config/CodegenConfigurator.java @@ -680,6 +680,7 @@ private ParseOptions buildParseOptions() { options.setFlatten(true); options.setFlattenComposedSchemas(flattenInlineSchema); options.setSkipMatches(this.skipInlineModelMatches); + options.setResolveResponses(true); if (Objects.equals(System.getenv("SAFELY_RESOLVE_URL"), "true")) { setSafelyResolveURLParseOptions(options);