github.com/josephspurrier/go-swagger@v0.2.1-0.20221129144919-1f672a142a00/fixtures/diff/param.v1.json (about)

     1  {
     2    "swagger": "2.0",
     3    "info": {
     4      "title": "Swagger Fixture",
     5      "version": "1.0"
     6    },
     7    "paths": {
     8      "/a/": {
     9        "get": {
    10          "parameters": [
    11            {
    12              "name": "limit",
    13              "in": "query",
    14              "required": false,
    15              "type": "integer"
    16            }
    17          ],
    18          "responses": {
    19            "200": {
    20              "description": "200 response",
    21              "schema": {
    22                "type": "array",
    23                "items": { "$ref": "#/definitions/A1" }
    24              }
    25            }
    26          }
    27        },
    28        "post": {
    29          "parameters": [
    30            {
    31              "name": "",
    32              "in": "body",
    33              "schema": { "$ref": "#/definitions/A2" }
    34            }
    35          ],
    36          "responses": {
    37            "200": {
    38              "description": "200 response",
    39              "schema": { "$ref": "#/definitions/A3" }
    40            }
    41          }
    42        }
    43      },
    44      "/a/{id}": {
    45        "get": {
    46          "parameters": [
    47            {
    48              "name": "flavour",
    49              "required": false,
    50              "in": "query",
    51              "type": "string"
    52            },
    53            {
    54              "name": "widenedParam",
    55              "in": "query",
    56              "type": "integer",
    57              "format":"int32"
    58            },
    59            {
    60              "name": "id",
    61              "in": "path",
    62              "type": "string"
    63            }
    64          ],
    65          "responses": {
    66            "200": {
    67              "description": "200 response",
    68              "schema": {
    69                "type": "array",
    70                "items": { "$ref": "#/definitions/A1" }
    71              },
    72              "headers":{
    73                "optResponseHeader":{
    74                  "schema":{ "type":"integer"}
    75                }
    76              }
    77  
    78            }
    79          }
    80        },
    81        "post": {
    82          "parameters": [
    83            {
    84              "name": "reqdboris",
    85              "in": "header",
    86              "type":"string",
    87              "required":true
    88            },
    89            {
    90              "name": "optboris",
    91              "in": "header",
    92              "type":"string",
    93              "required":false
    94            },
    95            {
    96              "name": "changedboris",
    97              "in": "header",
    98              "type":"string",
    99              "required":true
   100            },
   101            {
   102              "name": "",
   103              "in": "body",
   104              "schema": { "$ref": "#/definitions/A2" }
   105            }
   106          ],
   107          "responses": {
   108            "200": {
   109              "description": "200 response",
   110              "schema": { "$ref": "#/definitions/A3" }
   111            }
   112          }
   113        }
   114      },
   115      "/b/": {
   116        "get": {
   117          "parameters": [
   118            {
   119              "name": "limit",
   120              "in": "query",
   121              "required": false,
   122              "type": "integer"
   123            }
   124          ],
   125          "responses": {
   126            "200": {
   127              "description": "200 response",
   128              "schema": {
   129                "type": "array",
   130                "items": { "$ref": "#/definitions/A1" }
   131              }
   132            }
   133          }
   134        },
   135        "post": {
   136          "parameters": [
   137            {
   138              "name": "",
   139              "in": "body",
   140              "schema": { "$ref": "#/definitions/A2" }
   141            }
   142          ],
   143          "responses": {
   144            "200": {
   145              "description": "200 response",
   146              "schema": { "$ref": "#/definitions/A3" }
   147            }
   148          }
   149        }
   150      }
   151    },
   152    "definitions": {
   153      "A1": {
   154        "type": "object",
   155        "properties": {
   156          "id": { "type": "integer" },
   157          "name": { "type": "string" }
   158        }
   159      },
   160      "A2": {
   161        "type": "object",
   162        "required": [ "name", "description" ],
   163        "properties": {
   164          "name": { "type": "string" },
   165          "description": { "type": "string" }
   166        }
   167      },
   168      "A3": {
   169        "type": "object",
   170        "properties": {
   171          "id": { "type": "integer" },
   172          "name": { "type": "string" },
   173          "otherDeletedName":{"type":"string","deprecated":true},
   174          "description": { "type": "string" },
   175          "letters": {
   176            "type": "array",
   177            "items": { "type": "string" }
   178          },
   179          "attributes": {
   180            "type": "object",
   181            "additionalProperties": { "type": "string" }
   182          }
   183        }
   184      }
   185    }
   186  }