We are currently migrating some old rest interfaces from RAML to OpenAPI 3. In the RAML file an HTTP delete operation has the response defined with empty body as follows:
delete:
responses:
204:
This generates java-code with a delete method with response type ResponseEntity<?>
.
Generating with OpenAPI the same method with response type ResponseEntity<Void>
is generated.
We don't want to change the implementation of the interface, so is there a way to generate a ResponseEntity
with wildcard generic type from OpenAPI(3)?