Fix for issue 954
Inconsistent handling of resolveFully and flatten options from ParseOptions
@@ -180,9 +180,7 @@ public class OpenAPIV3Parser implements SwaggerParserExtension {
if (options.isResolveFully()) {
result.setOpenAPI(new OpenAPIResolver(result.getOpenAPI(), auth, null).resolve());
new ResolverFully(options.isResolveCombinators()).resolveFully(result.getOpenAPI());
-
- }
- if (options.isFlatten()) {
+ } else if (options.isFlatten()) {
new InlineModelResolver().flatten(result.getOpenAPI());
}
}else{
