By default, this extension generates the methods according to their returning models based on the OpenAPI specification Schema Object. If no response model is defined, jakarta.ws.rs.core.Response is returned.

If you want to return jakarta.ws.rs.core.Response in all cases instead, you can set the return-response property to true.

Example

Given you want to return jakarta.ws.rs.core.Response for the my-openapi.yaml file, you must add the following to your application.properties file:

quarkus.openapi-generator.codegen.spec.my_openapi_yaml.return-response=true