github.com/go-swagger/go-swagger@v0.31.0/fixtures/diff/extensions.v2.json (about)

     1  {
     2    "swagger": "2.0",
     3    "info": {
     4      "title": "Swagger Fixture",
     5      "version": "1.0",
     6      "x-ext-info-1": "a",
     7      "x-ext-info-3": "c",
     8      "contact": {
     9        "name": "go-swagger",
    10        "x-ext-contact-1": "ext contact 1",
    11        "x-ext-contact-3": "ext contact 3",
    12        "x-ext-contact-4": [[[]]]
    13      },
    14      "license": {
    15        "name": "license",
    16        "x-ext-license-1": "ext license 1",
    17        "x-ext-license-3": "ext license 3",
    18        "x-ext-license-4": 1
    19      }
    20    },
    21    "paths": {
    22      "/a/": {
    23        "get": {
    24          "responses": {
    25            "200": {
    26              "description": "200 response",
    27              "schema": {
    28                "type": "array",
    29                "items": { "$ref": "#/definitions/A1" }
    30              }
    31            }
    32          }
    33        }
    34      },
    35      "/b/": {
    36        "parameters": [
    37          {
    38            "name": "a",
    39            "in": "query",
    40            "x-ext-param-a-2": false
    41          },
    42          {
    43            "name": "b",
    44            "in": "path",
    45            "x-ext-param-b": "ext param b"
    46          },
    47          {
    48            "name": "c",
    49            "in": "body"
    50          },
    51          {
    52            "name": "d",
    53            "in": "header"
    54          },
    55          {
    56            "name": "d",
    57            "in": "formData",
    58            "x-ext-param-d": "ext param d"
    59          }
    60        ],
    61        "post": {
    62          "responses": {
    63            "200": {
    64              "description": "200 response"
    65            }
    66          }
    67        },
    68        "get": {
    69          "parameters": [
    70            {
    71              "name": "limit",
    72              "in": "query"
    73            },
    74            {
    75              "name": "offset",
    76              "in": "query",
    77              "x-ext-param-offset": "ext param offset"
    78            }
    79          ],
    80          "responses": {
    81            "200": {
    82              "description": "200 response",
    83              "schema": {
    84                "type": "array",
    85                "items": {
    86                  "$ref": "#/definitions/A1",
    87                  "x-b-items-1": "b items 1",
    88                  "x-b-items-3": "b items 3"
    89                },
    90                "x-schema-2": "schema 2 ext",
    91                "x-schema-3": "schema 3 ext"
    92              },
    93              "headers": {
    94                "headerB-1": {
    95                  "type": "integer",
    96                  "x-header-ext-3": 2
    97                },
    98                "headerB-2": {
    99                  "type": "integer",
   100                  "x-header-ext-2": "header-ext-b-2"
   101                }
   102              }
   103            },
   104            "x-ext-resp-2": "response ext 2",
   105            "x-ext-resp-3": ""
   106          },
   107          "x-ext-1-operation": "ext b 1",
   108          "x-ext-3-operation": "ext b 3",
   109          "x-ext-4-operation": null
   110        },
   111        "x-ext-b-2": "ext b 2",
   112        "x-ext-b-4": ""
   113      }
   114    },
   115    "definitions": {
   116      "A1": {
   117        "type": "object",
   118        "properties": {
   119          "id": {
   120            "type": "integer"
   121          },
   122          "name": {
   123            "type": "string"
   124          },
   125          "personality": {
   126            "type": "string",
   127            "enum": [
   128              "crazy",
   129              "empathic",
   130              "saucy"
   131            ]
   132          },
   133          "busby": {
   134            "type": "string"
   135          },
   136          "onceWasArray": {
   137            "type": "array",
   138            "items":{"type": "object"}
   139          },
   140          "sameWideness": {
   141            "type": "number"
   142          }
   143        }
   144      }
   145    },
   146    "tags": [
   147      {
   148        "name": "tag1",
   149        "x-ext-tag1": "ext tag 1"
   150      },
   151      {
   152        "name": "tag2",
   153        "x-ext-tag3": {}
   154      }
   155    ],
   156    "securityDefinitions": {
   157      "auth2": {
   158        "x-security-def-1": "ext def 1",
   159        "x-security-def-3": "ext def 3",
   160        "x-security-def-4": {"type": "basic"},
   161        "type": "oauth2",
   162        "flow": "accessCode",
   163        "authorizationUrl": "",
   164        "tokenUrl": ""
   165      }
   166    },
   167    "x-root-ext-1": "ext root 1",
   168    "x-root-ext-3": "ext root 3",
   169    "x-root-ext-4": ["ext root 4 is now an array"]
   170  }