github.com/go-swagger/go-swagger@v0.31.0/fixtures/diff/same.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        "put": {
    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": "id",
    49              "in": "path",
    50              "required": true,
    51              "type": "integer"
    52            }
    53          ],
    54          "responses": {
    55            "200": {
    56              "description": "200 response",
    57              "schema": { "$ref": "#/definitions/A3" }
    58            }
    59          }
    60        },
    61        "patch" : {
    62          "parameters": [
    63            {
    64              "name": "id",
    65              "in": "path",
    66              "required": true,
    67              "type": "integer"
    68            },
    69            {
    70              "name": "",
    71              "in": "body",
    72              "schema": { "$ref": "#/definitions/A4" }
    73            }
    74          ],
    75          "responses": {
    76            "200": {
    77              "description": "200 response",
    78              "schema": { "$ref": "#/definitions/A6" }
    79            }
    80          }
    81        }
    82      },
    83      "/newpath/": {
    84        "post": {
    85          "parameters": [
    86            {
    87              "name": "",
    88              "in": "body",
    89              "schema": { "$ref": "#/definitions/B3" }
    90            }
    91          ],
    92          "responses": {
    93            "200": {
    94              "description": "200 response",
    95              "schema": { "$ref": "#/definitions/A1" }
    96            }
    97          }
    98        }
    99      },
   100      "/c/": {
   101        "get": {
   102          "responses": {
   103            "200": {
   104              "description": "200 response",
   105              "schema": {
   106                "type": "array",
   107                "items": { "$ref": "#/definitions/C1" }
   108              }
   109            },
   110            "201": {
   111              "description": "201 response",
   112              "schema": {
   113                "type": "array",
   114                "items": { "$ref": "#/definitions/C1" }
   115              }
   116            }
   117          }
   118        },
   119        "post": {
   120          "parameters": [
   121            {
   122              "name": "",
   123              "in": "body",
   124              "schema": { "$ref": "#/definitions/C2" }
   125            }
   126          ],
   127          "responses": {
   128            "204": {
   129              "description": "204 response"
   130            }
   131          }
   132        }
   133      }
   134    },
   135    "definitions": {
   136      "A1": {
   137        "type": "object",
   138        "properties": {
   139          "id": { "type": "integer" },
   140          "name": { "type": "string" }
   141        }
   142      },
   143      "A2": {
   144        "type": "object",
   145        "required": [ "name", "description" ],
   146        "properties": {
   147          "name": { "type": "string" },
   148          "description": { "type": "string" }
   149        }
   150      },
   151      "A3": {
   152        "type": "object",
   153        "properties": {
   154          "id": { "type": "integer" },
   155          "name": { "type": "string" },
   156          "description": { "type": "string" },
   157          "letters": {
   158            "type": "array",
   159            "items": { "type": "string" }
   160          },
   161          "attributes": {
   162            "type": "object",
   163            "additionalProperties": { "type": "string" }
   164          }
   165        }
   166      },
   167      "A4": {
   168        "type": "object",
   169        "properties": {
   170          "id": { "type": "integer" },
   171          "name": { "type": ["string", "null"] },
   172          "obj": { "$ref": "#/definitions/A5" },
   173          "str": { "type": "string" }
   174        }
   175      },
   176      "A5": {
   177        "type": "object",
   178        "properties": {
   179          "thing": { "type": "integer" },
   180          "name": { "type": "string" }
   181        }
   182      },
   183      "A6": {
   184        "type": "object",
   185        "properties": {
   186          "id": { "type": "integer" },
   187          "name": { "type": "string" },
   188          "obj": { "$ref": "#/definitions/A5" },
   189          "objs": { "type": "array",
   190                    "items": { "$ref": "#/definitions/A5" }
   191          },
   192          "str": { "type": "string" }
   193        }
   194      },
   195      "B1": {
   196        "type": "object",
   197        "allOf": [
   198          { "$ref": "#/definitions/A2" },
   199          {
   200            "required": ["req"],
   201            "properties": {
   202              "req": { "type": "string" },
   203              "opt": { "type": "string" }
   204            }
   205          }
   206        ]
   207      },
   208      "B2": {
   209        "type": "object",
   210        "allOf": [
   211          { "$ref": "#/definitions/A3" },
   212          {
   213            "properties": {
   214              "key1": { "type": "integer" },
   215              "key2": { "type": "string" }
   216            }
   217          }
   218        ]
   219      },
   220      "B3": {
   221        "type": "object",
   222        "properties": {
   223          "name": { "type": "string" }
   224        }
   225      },
   226      "C1": {
   227        "type": "object",
   228        "properties": {
   229          "id": { "type": "integer" },
   230          "name": { "type": "string" }
   231        }
   232      },
   233      "C2": {
   234        "type": "object",
   235        "properties": {
   236          "existing": { "$ref": "#/definitions/C3" }
   237        }
   238      },
   239      "C3": {
   240        "type": "object",
   241        "required": [ "a" ],
   242        "properties": {
   243          "a": { "type": "string" },
   244          "b": { "type": "string" }
   245        }
   246      },
   247      "C4": {
   248        "type": "object",
   249        "required": [ "a", "b" ],
   250        "properties": {
   251          "a": { "type": "string" },
   252          "b": { "type": "string" }
   253        }
   254      }
   255    }
   256  }