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.

Reply via email to