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
> Task :app:openApiGenerate FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':app:openApiGenerate' (type 'GenerateTask').
- Type 'org.openapitools.generator.gradle.plugin.tasks.GenerateTask' property 'input' annotated with @Internal should not be also annotated with @Input.
Reason: A property is ignored but also has input annotations.
Possible solutions:
1. Remove the input annotations.
2. Remove the @Internal annotation.
Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#ignored_property_must_not_be_annotated for more details about this problem.
@toby-murray-snow-software yeah the same issue, sorry I was mixing 5.1.1 and 5.1.0, after I upgrade all to 5.1.1 the issue was gone. Will mark this as resolved.
Bug Report Checklist
Description
I init a gradle project and follow the tutorial here https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator-gradle-plugin and try to generate server stub code.
run
./gradlew openApiGenerate
got this error:openapi-generator version
5.1.1
OpenAPI declaration file content or url
The repo to reproduce this error : https://github.com/liuzqt/openapi-gradle
Generation Details
gradle version: 7.0.2
Steps to reproduce
clone repo https://github.com/liuzqt/openapi-gradle and run
Related issues/PRs
Suggest a fix
The text was updated successfully, but these errors were encountered: