Closed eloycoto closed 12 months ago
With Gitlab also failing:
Caused by: org.kie.memorycompiler.KieMemoryCompilerException: [org/kie/kogito/app/Gitlab_putApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImagesMetricImageId.java (9:155) : cannot find symbol
symbol: class AlertManagementApi$PutApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImagesMetricImageIdMultipartForm
location: package org.kie.kogito.openapi.gitlab.api, org/kie/kogito/app/Gitlab_postApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImages.java (9:143) : cannot find symbol
symbol: class AlertManagementApi$PostApiV4ProjectsIdAlertManagementAlertsAlertIidMetricImagesMultipartForm
location: package org.kie.kogito.openapi.gitlab.api, org/kie/kogito/app/Gitlab_putApiV4ApplicationAppearance.java (9:112) : cannot find symbol
symbol: class ApplicationApi$PutApiV4ApplicationAppearanceMultipartForm
location: package org.kie.kogito.openapi.gitlab.api, org/kie/kogito/app/Gitlab_postApiV4BulkImports.java (9:103) : cannot find symbol
symbol: class BulkImportsApi$PostApiV4BulkImportsMultipartForm
location: package org.kie.kogito.openapi.gitlab.api]
at org.kie.memorycompiler.KieMemoryCompiler.compileNoLoad(KieMemoryCompiler.java:137)
at org.kie.memorycompiler.KieMemoryCompiler.compileNoLoad(KieMemoryCompiler.java:105)
at org.drools.drl.quarkus.util.deployment.DroolsQuarkusResourceUtils.compileGeneratedSources(DroolsQuarkusResourceUtils.java:155)
at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.createGeneratedBeanBuildItemsFromJavaSources(KogitoAssetsProcessor.java:270)
at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateModel(KogitoAssetsProcessor.java:179)
at jdk.internal.reflect.GeneratedMethodAccessor861.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at java.base/java.lang.Thread.run(Thread.java:833)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
@eloycoto Can you attach the gitlab spec file for the latter stack trace?
@eloycoto I have opened https://github.com/OpenAPITools/openapi-generator/issues/16531 for one of the compilation issues.
@eloycoto Im closing this issue since all compilation issues for https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-3.10/ghes-3.10.json and https://github.com/konveyor/move2kube-api/blob/main/assets/openapi.jsonb are now solved. Im now investigating the Kogito part of the issue
Hi,
Checking some OpenAPI spec parser in https://github.com/kiegroup/kogito-runtimes, I was unable to use some Openapi schemas:
Move2Kube:
https://github.com/konveyor/move2kube-api/blob/main/assets/openapi.json
Errors:
Github API:
https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/ghes-3.10/ghes-3.10.json
And the error message:
The generated code looks like this: