hernanDatgDev commented on PR #5948:
URL: https://github.com/apache/camel-k/pull/5948#issuecomment-2484649795

   @squakez I pulled your fork and built the project locally. For some reason 
I'm getting a rest dsl plugin failure when my integration is building.
   I've been struggling with the root cause. Is there some difference between 
v2.4 and 2.5 RE how the project is built or the api spec that's required for 
this to work? I feel like I must be missing something obvious.
   ```
   
{"level":"error","ts":"2024-11-19T03:31:47Z","logger":"camel-k.maven.build","msg":"Failed
 to execute goal 
org.apache.camel.k:camel-k-maven-plugin:3.15.0:generate-rest-xml (default) on 
project camel-k-rest-d │
   │ sl-generator: Exception while generating rest xml: Cannot invoke 
\"io.swagger.v3.oas.models.media.Content.entrySet()\" because the return value 
of \"io.swagger.v3.oas.models.responses.ApiResponse.getContent()\" is null -> 
[Help 1]","stac │
   │ 
ktrace":"github.com/apache/camel-k/v2/pkg/util/log.Logger.Error\n\tgithub.com/apache/camel-k/v2/pkg/util/log/log.go:80\ngithub.com/apache/camel-k/v2/pkg/util/maven.normalizeLog\n\tgithub.com/apache/camel-k/v2/pkg/util/maven/maven_log.go:
 │
   │ 
87\ngithub.com/apache/camel-k/v2/pkg/util/maven.LogHandler\n\tgithub.com/apache/camel-k/v2/pkg/util/maven/maven_log.go:53\ngithub.com/apache/camel-k/v2/pkg/util.scan\n\tgithub.com/apache/camel-k/v2/pkg/util/command.go:76\ngithub.com/apac
 │
   │ 
he/camel-k/v2/pkg/util.RunAndLog.func1\n\tgithub.com/apache/camel-k/v2/pkg/util/command.go:55\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\tgolang.org/x/[email protected]/errgroup/errgroup.go:78"}
   ```
   
   For reference here's the api spec I'm including in my referenced configmap:
   ```
       openapi: 3.0.3
       info:
         title: Basic API
         version: "1.0"
       paths:
         /test:
           post:
             operationId: test
             responses:
               200:
                 description: Default response
         /user/{userId}:
           get:
             operationId: getUser
             parameters:
               - name: userId
                 in: path
                 required: true
                 schema:
                   type: string
             responses:
               200:
                 description: Default response
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to