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

     1  {
     2    "swagger": "2.0",
     3    "info": {
     4      "title": "Swagger Fixture",
     5      "version": "1.0"
     6    },
     7    "host": "petstore.swaggery.wordnik.com",
     8    "basePath": "/apibaby",
     9    "schemes": [
    10      "https"
    11    ],
    12    "consumes": [
    13      "bob"
    14    ],
    15    "produces": [
    16      "bob"
    17    ],
    18    "paths": {
    19      "/a/": {
    20        "get": {
    21          "parameters": [
    22            {
    23              "name": "limit",
    24              "in": "query",
    25              "required": false,
    26              "type": "integer"
    27            },
    28            {
    29              "name": "headerParam",
    30              "in": "header",
    31              "schema": {
    32                "type": "string"
    33              }
    34            },
    35            {
    36              "name": "addedHeaderParam",
    37              "in": "header",
    38              "schema": {
    39                "type": "string",
    40                "format": "password"
    41              }
    42            },
    43            {
    44              "name": "changeMaxInt",
    45              "in": "query",
    46              "required": false,
    47              "type": "integer",
    48              "maximum": 300,
    49              "exclusiveMaximum": true
    50            },
    51            {
    52              "name": "removeMaxInt",
    53              "in": "query",
    54              "required": false,
    55              "type": "integer",
    56              "maximum": 200,
    57              "exclusiveMaximum": false
    58            },
    59            {
    60              "name": "changeMinInt",
    61              "in": "query",
    62              "required": false,
    63              "type": "integer",
    64              "minimum": 300,
    65              "exclusiveMinimum": true
    66            },
    67            {
    68              "name": "wideryString",
    69              "in": "query",
    70              "required": false,
    71              "type": "string"
    72            },
    73            {
    74              "name": "personality",
    75              "in": "query",
    76              "required": false,
    77              "type": "string",
    78              "enum": [
    79                "crazy",
    80                "empathic",
    81                "saucy"
    82              ]
    83            },
    84            {
    85              "name": "changeyPattern",
    86              "in": "query",
    87              "required": false,
    88              "type": "string",
    89              "pattern": "anewpattern"
    90            },
    91            {
    92              "name": "primToObj",
    93              "in": "query",
    94              "required": false,
    95              "schema": {
    96                "$ref": "#/definitions/A2"
    97              }
    98            },
    99            {
   100              "name": "ObjToPrim",
   101              "in": "query",
   102              "required": false,
   103              "type": "integer"
   104            }
   105          ],
   106          "responses": {
   107            "200": {
   108              "description": "200 response",
   109              "schema": {
   110                "type": "array",
   111                "items": {
   112                  "$ref": "#/definitions/A1"
   113                }
   114              }
   115            }
   116          }
   117        },
   118        "post": {
   119          "parameters": [
   120            {
   121              "name": "",
   122              "in": "body",
   123              "schema": {
   124                "$ref": "#/definitions/A2"
   125              }
   126            }
   127          ],
   128          "responses": {
   129            "200": {
   130              "description": "200 response",
   131              "schema": {
   132                "$ref": "#/definitions/A3"
   133              }
   134            }
   135          }
   136        }
   137      },
   138      "/a/{id}": {
   139        "get": {
   140          "parameters": [
   141            {
   142              "name": "flavour",
   143              "required": false,
   144              "in": "query",
   145              "type": "string"
   146            },
   147            {
   148              "name": "id",
   149              "in": "path",
   150              "type": "string"
   151            }
   152          ],
   153          "responses": {
   154            "200": {
   155              "description": "200 response",
   156              "schema": {
   157                "type": "array",
   158                "items": {
   159                  "$ref": "#/definitions/A1"
   160                }
   161              }
   162            }
   163          }
   164        },
   165        "post": {
   166          "parameters": [
   167            {
   168              "name": "",
   169              "in": "body",
   170              "schema": {
   171                "$ref": "#/definitions/A2"
   172              }
   173            }
   174          ],
   175          "responses": {
   176            "200": {
   177              "description": "200 response",
   178              "schema": {
   179                "$ref": "#/definitions/A3"
   180              }
   181            }
   182          }
   183        }
   184      },
   185      "/b/": {
   186        "get": {
   187          "parameters": [
   188            {
   189              "name": "limit",
   190              "in": "query",
   191              "required": false,
   192              "type": "integer"
   193            }
   194          ],
   195          "responses": {
   196            "200": {
   197              "description": "200 response",
   198              "schema": {
   199                "type": "array",
   200                "items": {
   201                  "$ref": "#/definitions/A1"
   202                }
   203              }
   204            }
   205          }
   206        },
   207        "post": {
   208          "parameters": [
   209            {
   210              "name": "",
   211              "in": "body",
   212              "schema": {
   213                "$ref": "#/definitions/A2"
   214              }
   215            }
   216          ],
   217          "responses": {
   218            "200": {
   219              "description": "200 response",
   220              "schema": {
   221                "$ref": "#/definitions/A3"
   222              }
   223            }
   224          }
   225        }
   226      },
   227      "/c/": {
   228        "get": {
   229          "responses": {
   230            "200": {
   231              "description": "200 response",
   232              "schema": {
   233                "type": "array",
   234                "maxItems": 1,
   235                "items": {
   236                  "type": "object",
   237                  "properties":{
   238                    "id": {"type": "integer"}
   239                  }
   240                }
   241              }
   242            }
   243          }
   244        }
   245      }
   246    },
   247    "definitions": {
   248      "A1": {
   249        "type": "object",
   250        "required": ["busby"],
   251        "properties": {
   252          "id": {
   253            "type": "integer"
   254          },
   255          "name": {
   256            "type": "string"
   257          },
   258          "personality": {
   259            "type": "string",
   260            "enum": [
   261              "crazy",
   262              "empathic",
   263              "saucy"
   264            ]
   265          },
   266          "busby": {
   267            "type": "string"
   268          },
   269          "newProp": {
   270            "type": "string"
   271          },
   272          "onceWasArray": {
   273            "type": "string"
   274          },
   275          "sameWideness": {
   276            "type": "number",
   277            "format":"float"
   278          }
   279        }
   280      },
   281      "A2": {
   282        "type": "object",
   283        "required": [
   284          "name"
   285        ],
   286        "properties": {
   287          "name": {
   288            "type": "string"
   289          },
   290          "description": {
   291            "type": "string"
   292          }
   293        }
   294      },
   295      "ThisWasAdded": {
   296        "type": "object",
   297        "required": [
   298          "name"
   299        ],
   300        "properties": {
   301          "name": {
   302            "type": "string"
   303          },
   304          "description": {
   305            "type": "string"
   306          }
   307        }
   308      },
   309      "A3": {
   310        "type": "object",
   311        "properties": {
   312          "id": {
   313            "type": "integer"
   314          },
   315          "name": {
   316            "type": "string"
   317          },
   318          "description": {
   319            "type": "string"
   320          },
   321          "letters": {
   322            "type": "array",
   323            "items": {
   324              "type": "string"
   325            }
   326          },
   327          "attributes": {
   328            "type": "object",
   329            "additionalProperties": {
   330              "type": "string"
   331            }
   332          }
   333        }
   334      }
   335    }
   336  }