OpenApiLoader.java uses wrong Import io.swagger.parser.OpenAPIParser

Issue #288 new
Former user created an issue

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

Comments (1)

  1. James Navin

    Curious - is there a specific reason you’ve raised this?

    The OpenAPIParser internally delegates to the OpenAPIV3Parser for OpenAPI v3 specs, but has the benefit of transparently supporting conversion of Swagger v2 specs (via the OpenAPIV3Parser.getExtensions() mechanism).

    If there is a specific reason not to use the OpenAPIParser Id be happy to look at refactoring.

  2. Log in to comment