Created by: allen-ball
This is a PR in response to https://github.com/OpenAPITools/openapi-generator/issues/10016. It changes <inputSpec/>
processing to:
- Search a classpath of Maven compilation dependencies for resources.
- Allow URLs of the form jar:jar-file-specific-url!/spec.yaml
In the case that a compilation classpath resource is specified, the resource URL is passed to the swagger-parser OpenAPIV3Parser instead of the <inputSpec/>
string since the OpenAPIV3Parser does not have access to the Maven compilation classpath. This requires https://github.com/swagger-api/swagger-parser/issues/1592 and https://github.com/swagger-api/swagger-parser/pull/1593.
modules/openapi-generator-maven-plugin/src/test/java/org/openapitools/codegen/plugin/CodeGenMojoTest.java has been expanded to include tests for resource and URL input specs.