fix NPE in V3 Parser
@@ -178,9 +178,11 @@ public class OpenAPIV3Parser implements SwaggerParserExtension {
final InlineModelResolver inlineModelResolver =
new InlineModelResolver(options.isFlattenComposedSchemas(),
options.isCamelCaseFlattenNaming(), options.isSkipMatches());
+ if (result.getOpenAPI()!= null) {
inlineModelResolver.flatten(result.getOpenAPI());
}
}
+ }
} catch (Exception e) {
LOGGER.warn("Exception while resolving:", e);
result.setMessages(Collections.singletonList(e.getMessage()));
