ricardozanini opened a new issue, #4124:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/4124

   ### Describe the bug
   
   When a SonataFlow workflow does not define an outputSchema, the generated 
OpenAPI for the POST endpoint leaves the response schema null/unspecified. It 
should default to `JsonNodeModelOutput`, which matches the runtime’s default 
payload shape:
   
   ```json
   {
     "workflowdata": {},
     "id": "string"
   }
   ```
   
   ### Expected behavior
   
   POST response schema defaults to JsonNodeModelOutput with:
   
   - id: string (process instance id)
   - workflowdata: object (arbitrary map)
   
   ### Actual behavior
   
   Response schema is missing (null), causing client codegen to produce 
Void/null types.
   
   ### How to Reproduce?
   
   1. Define a workflow without extensions.workflow-output-schema.
   2. Generate OpenAPI (Quarkus OpenAPI/Swagger).
   3. Inspect `POST /{workflow}` response schema → it’s missing/null.
   
   ### Output of `uname -a` or `ver`
   
   _No response_
   
   ### Output of `java -version`
   
   _No response_
   
   ### GraalVM version (if different from Java)
   
   _No response_
   
   ### Kogito version or git rev (or at least Quarkus version if you are using 
Kogito via Quarkus platform BOM)
   
   _No response_
   
   ### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
   
   _No response_
   
   ### Additional information
   
   In the OpenAPI generator, when no outputSchema is present, set the POST 
response schema to `#/components/schemas/JsonNodeModelOutput` (or inline 
equivalent).
   
   Ensure `JsonNodeModelOutput` is always present in `components.schemas`.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to