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

   ### Describe the bug
   
   For SonataFlow workflow REST endpoints, the generated OpenAPI spec documents 
POST operations with a 200 response. At runtime, the service correctly returns 
201 Created on successful resource creation. This mismatch breaks client 
codegen and contract tests that rely on the OpenAPI.
   
   ### Expected behavior
   
   _No response_
   
   ### Actual behavior
   
   _No response_
   
   ### How to Reproduce?
   
   1. Generate OpenAPI from a SonataFlow workflow exposing a POST /{workflow} 
endpoint.
   2. Inspect the spec: response for POST is 200.
   3. Run the app and curl -i -X POST ... the endpoint.
   4. Observe HTTP status is 201 Created.
   
   ### 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
   
   _No 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]


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

Reply via email to