Open arthurtemple opened 3 months ago
As a side note, it is possible to work around gradle validation (and caching) using remoteInputSpec
instead of inputSpec
.
This is only supported in openApiGenerate
task, however, and not in openApiValidate
.
If you consider this good enough (which is my case), please delete this issue :pray: .
Description
This recent Pull Request enabled inputSpec resolution from a
jar:
URI in maven projects (thanks a lot, by the way!).We hoped to use this new feature in gradle projects, unfortunately gradle tries to resolve the inputSpec as a file and fails to do so when a
jar:
URI is provided.openapi-generator version
Gradle plugin version 7.7.0.
Steps to reproduce
A simple project is available as attachment here: open-api-uri-issue.zip
In order to reproduce, simply run
./gradlew openApiValidate
Expected output
Actual output
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/pull/18576
Suggest a fix
A fix seems to remove the constraint in
GenerateTask.kt
andValidateTask.kt
: