openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[BUG][GRADLE PLUGIN] Generate API from a remote URL

Open hdani9307 opened this issue 2 years ago • 0 comments

Bug Report Checklist

  • [x] Have you provided a full/minimal spec to reproduce the issue?
  • [x] Have you validated the input using an OpenAPI validator (example)?
  • [x] Have you tested with the latest master to confirm the issue still exists?
  • [x] Have you searched for related issues/PRs?
  • [x] What's the actual output vs expected output?
  • [ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

If you specify an url for the inputspec parameter, the gradle plugin will fail because it is annotated with @get:InputFile

openapi-generator version

6.2.1

OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix

Remove the @get:InputFile and @PathSensitive(PathSensitivity.RELATIVE annotation use a simple @Input instead

hdani9307 avatar Oct 18 '22 10:10 hdani9307