OpenApiLoader.java uses wrong Import io.swagger.parser.OpenAPIParser
Issue #288
new
The correct Class is io.swagger.v3.parser.OpenAPIV3Parser
swagger-request-validator / swagger-request-validator-core / src / main / java / com / atlassian / oai / validator / util / OpenApiLoader.java
Curious - is there a specific reason you’ve raised this?
The
OpenAPIParser
internally delegates to theOpenAPIV3Parser
for OpenAPI v3 specs, but has the benefit of transparently supporting conversion of Swagger v2 specs (via theOpenAPIV3Parser.getExtensions()
mechanism).If there is a specific reason not to use the
OpenAPIParser
Id be happy to look at refactoring.