I’m afraid there’s no way to describe that.

 

If you want to see support for this in the future, try filing a ticket at 
https://github.com/OAI/OpenAPI-Specification.

 

 

 

From: <[email protected]> on behalf of Ergya Russty 
<[email protected]>
Reply-To: "[email protected]" 
<[email protected]>
Date: Tuesday, October 3, 2017 at 03:41
To: Swagger <[email protected]>
Subject: Swagger (2.0) spec - response is zip with 1 JSON file inside - how to 
add JSON structure spec

 

Hi Everyone,  

 

I am writing 2.0 spec for our services. We have 1 use case where the response 
is ZIP, inside the ZIP there is a JSON file. In general it is clear how to 
specify that the response is ZIP but I am curious whether it is possible to 
specify in 2.0 the "underlying" JSON structure even if the response itself is 
ZIP. Right now this is what I have:

 

...
  "/v2/super/secret/api": {

    "get": {

        "summary": "super secret api spec",

        "produces": [

          "application/zip",

        ],

...

        "responses": {

          "200": {

            "description": "OK",

            "schema": {

              "type": "file"

            }

          },
...

 

In "normal" circumstances I have these if I want to specify the response JSON 
structure:

 

"200": {

            "description": "OK",

            "schema": {

              "$ref": "#/definitions/JsonRootSomething"

            }

          },


Is it possible to somehow mix the two?

 

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to