Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ] openapi-generator-maven-plugin inputSpec -- Allow jar: URLs #10016

Closed
allen-ball opened this issue Jul 22, 2021 · 0 comments
Closed

[REQ] openapi-generator-maven-plugin inputSpec -- Allow jar: URLs #10016

allen-ball opened this issue Jul 22, 2021 · 0 comments

Comments

@allen-ball
Copy link
Contributor

allen-ball commented Jul 22, 2021

The openapi-generator-maven-plugin inputSpec property requires a path or java.net.URI even though the underlying implementation uses java.net.URL to get "remote" resources which prevents referencing input specifications on the classpath.

I would prefer a solution that modifies putSpecRemoteUrl() in src/main/java/org/openapitools/codegen/plugin/CodeGenMojo.java to allow jar: URIs/URLs.

Currently, I need a maven-dependency-plugin:unpack-dependencies step to retrieve the inputSpec from the client JAR when compiling the server module.

@allen-ball allen-ball changed the title [REQ] openapi-generator-maven-plugin inputSpec -- Allow jar: and/or classpath: URLs [REQ] openapi-generator-maven-plugin inputSpec -- Allow jar: URLs Jul 24, 2021
@wing328 wing328 closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants