You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
See #15483. The PR fixing this issue marks the configuration option with @InputFile which does not work for a directory. This causes the following exception to be thrown:
A problem was found with the configuration of task ':openApiGenerate' (type 'GenerateTask').
- In plugin 'org.openapi.generator' type 'org.openapitools.generator.gradle.plugin.tasks.GenerateTask' property 'inputSpecRootDirectory' file 'C:\xx\xx\xx\contracts' is not a file.
openapi-generator version
7.0.0 and 6.6.0, haven't tried other versions.
OpenAPI declaration file content or url
N/A
Generation Details
Steps to reproduce
Use the plugin to generate two yamls that are in a directory.
Bug Report Checklist
Description
See #15483. The PR fixing this issue marks the configuration option with
@InputFilewhich does not work for a directory. This causes the following exception to be thrown:openapi-generator version
7.0.0and6.6.0, haven't tried other versions.OpenAPI declaration file content or url
N/A
Generation Details
Steps to reproduce
Use the plugin to generate two yamls that are in a directory.
see https://github.com/Luckl/openapi-gradle-with-root-directory
Related issues/PRs
#15483
Suggest a fix
Change
@get:InputFileto@get:InputDirectoryThe text was updated successfully, but these errors were encountered: