Feature Request (and design proposal): swagger-parser-cli
to implement conversion of v2 to v3
#2145
Labels
swagger-parser-cli
to implement conversion of v2 to v3
#2145
Unless there is a better or already existing home for a ready-to-use out-of-the-box cli for converting v2 to v3 openapi specs, I think changing the logic in
io.swagger.v3.parser.SwaggerParser#readFromLocation
inmodules/swagger-parser-cli/src/main/java/io/swagger/v3/parser/SwaggerParser.java
, which currently uses this pattern:to use the pattern from
io.swagger.parser.OpenAPIParser#readLocation
(inmodules/swagger-parser/src/main/java/io/swagger/parser/OpenAPIParser.java
):should do the trick.
it would also require adding the v2-converter module as a dependency which includes this class:
preview of implementation:
The text was updated successfully, but these errors were encountered: