...

Text file src/github.com/go-openapi/analysis/fixtures/expected/external-references-2.json

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

     1{
     2  "swagger": "2.0",
     3  "info": {
     4   "title": "reference analysis",
     5   "version": "0.1.0"
     6  },
     7  "paths": {
     8   "/other/place": {
     9    "get": {
    10     "description": "Used to see if a codegen can render all the possible parameter variations for a header param",
    11     "tags": [
    12      "testcgen"
    13     ],
    14     "summary": "many model variations",
    15     "operationId": "modelOp",
    16     "responses": {
    17      "default": {
    18       "description": "Generic Out"
    19      }
    20     }
    21    }
    22   },
    23   "/some/where/{id}": {
    24    "get": {
    25     "parameters": [
    26      {
    27       "type": "integer",
    28       "format": "int32",
    29       "name": "limit",
    30       "in": "query"
    31      },
    32      {
    33       "type": "array",
    34       "items": {
    35        "type": "string"
    36       },
    37       "name": "other",
    38       "in": "query"
    39      },
    40      {
    41       "name": "body",
    42       "in": "body",
    43       "schema": {
    44        "$ref": "#/definitions/record"
    45       }
    46      }
    47     ],
    48     "responses": {
    49      "200": {
    50			  "description": "",
    51       "schema": {
    52        "$ref": "#/definitions/tag"
    53       }
    54      },
    55      "404": {
    56			  "description": "",
    57       "schema": {
    58        "$ref": "#/definitions/error"
    59       }
    60      },
    61      "default": {
    62			  "description": "",
    63       "schema": {
    64        "$ref": "#/definitions/record"
    65       }
    66      }
    67     }
    68    },
    69    "parameters": [
    70     {
    71      "type": "integer",
    72      "format": "int32",
    73      "name": "id",
    74      "in": "path"
    75     },
    76     {
    77      "name": "bodyId",
    78      "in": "body",
    79      "schema": {
    80       "$ref": "#/definitions/record"
    81      }
    82     }
    83    ]
    84   }
    85  },
    86  "definitions": {
    87   "error": {
    88    "type": "object",
    89    "required": [
    90     "id",
    91     "message"
    92    ],
    93    "properties": {
    94     "id": {
    95      "type": "integer",
    96      "format": "int64",
    97      "readOnly": true
    98     },
    99     "message": {
   100      "type": "string",
   101      "readOnly": true
   102     }
   103    }
   104   },
   105   "record": {
   106    "type": "object",
   107    "properties": {
   108     "createdAt": {
   109      "type": "string",
   110      "format": "date-time"
   111     }
   112    }
   113   },
   114   "tag": {
   115    "type": "object",
   116    "properties": {
   117     "audit": {
   118      "$ref": "#/definitions/record"
   119     },
   120     "id": {
   121      "type": "integer",
   122      "format": "int64"
   123     },
   124     "value": {
   125      "type": "string"
   126     }
   127    }
   128   }
   129  }
   130}

View as plain text