...

Text file src/github.com/go-openapi/analysis/fixtures/expected/issue-2113.json

Documentation: github.com/go-openapi/analysis/fixtures/expected

     1{
     2  "swagger": "2.0",
     3  "info": {
     4   "title": "nested $ref fixture",
     5   "version": "1"
     6  },
     7  "paths": {
     8   "/dummy": {
     9    "get": {
    10     "responses": {
    11      "200": {
    12       "description": "OK",
    13       "schema": {
    14        "$ref": "#/definitions/dummy"
    15       }
    16      }
    17     }
    18    }
    19   },
    20   "/example": {
    21    "get": {
    22     "responses": {
    23      "200": {
    24       "description": "OK",
    25       "schema": {
    26        "$ref": "#/definitions/example"
    27       }
    28      }
    29     }
    30    }
    31   }
    32  },
    33  "definitions": {
    34   "dummy": {
    35    "required": [
    36     "dummyPayload"
    37    ],
    38    "properties": {
    39     "dummyPayload": {
    40      "type": "string"
    41     }
    42    }
    43   },
    44   "example": {
    45    "required": [
    46     "payload"
    47    ],
    48    "properties": {
    49     "payload": {
    50      "type": "string"
    51     }
    52    },
    53    "$schema": "http://json-schema.org/draft-07/schema"
    54   }
    55  }
    56}

View as plain text