...

Text file src/github.com/go-openapi/validate/fixtures/bugs/61/unresolved-ref-for-name.json

Documentation: github.com/go-openapi/validate/fixtures/bugs/61

     1{
     2  "swagger": "2.0",
     3  "info": {
     4    "version": "0.0.1",
     5    "title": "test of Swagger global parameters"
     6  },
     7  "parameters": {
     8    "userId": {
     9      "name": "userId",
    10      "in": "path",
    11      "type": "string",
    12      "required": true
    13    }
    14  },
    15  "paths": {
    16    "/foo": {
    17      "get": {
    18        "responses": {
    19          "200": {
    20            "description": "Successful"
    21          }
    22        }
    23      }
    24    },
    25    "/bar": {
    26      "get": {
    27        "responses": {
    28          "200": {
    29            "description": "Successful"
    30          }
    31        }
    32      }
    33    },
    34    "/users/{userId}": {
    35      "parameters": [{
    36        "$ref": "#/parameters/userId"
    37      }],
    38      "get": {
    39        "responses": {
    40          "200": {
    41            "description": "Successful"
    42          }
    43        }
    44      }
    45    }
    46  }
    47}

View as plain text