[jira] [Created] (GERONIMO-6760) There is no way to generate a response with no return value

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (GERONIMO-6760) There is no way to generate a response with no return value

Romain Manni-Bucau (Jira)
Antoni Reus created GERONIMO-6760:
-------------------------------------

             Summary: There is no way to generate a response with no return value
                 Key: GERONIMO-6760
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6760
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
    Affects Versions: OpenAPI_1.0.11, OpenAPI_1.0.12
         Environment: Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T17:06:16+02:00)
Maven home: C:\dev\tools\apache-maven-3.6.2\bin\..
Java version: 11.0.6, vendor: AdoptOpenJDK, runtime: C:\dev\java\jdk-11
Default locale: ca_ES, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Tested with geronimo-openapi-maven-plugin 1.0.11 and 1.0.12

 
            Reporter: Antoni Reus


If a response has no return value it must ommit the content information.

See [https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#response-object]

Response with no return value:
{quote}{
"description": "object created"
}{quote}
 
For example, in case of a response with a 204 code.
 
Currently there is no way to achieve this, there is always a "content" element with an empty "schema" in every response.
 
 
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)