Skip to content

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

Description

@allen-ball

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions