...

Text file src/github.com/go-openapi/analysis/fixtures/oaigen/test3-ter-swagger-flat.json

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

     1{
     2  "consumes": [
     3    "application/json"
     4  ],
     5  "produces": [
     6    "application/json"
     7  ],
     8  "schemes": [
     9    "http"
    10  ],
    11  "swagger": "2.0",
    12  "info": {
    13    "description": "recursively following JSON references",
    14    "title": "test 1",
    15    "contact": {
    16      "name": "Fred"
    17    },
    18    "version": "0.1.1"
    19  },
    20  "paths": {
    21    "/getAll": {
    22      "get": {
    23        "operationId": "getAll",
    24        "parameters": [
    25          {
    26            "description": "max number of results",
    27            "name": "a",
    28            "in": "body",
    29            "schema": {
    30              "$ref": "#/definitions/a"
    31            }
    32          }
    33        ],
    34        "responses": {
    35          "200": {
    36            "description": "Success",
    37            "schema": {
    38              "$ref": "#/definitions/b1"
    39            }
    40          },
    41          "201": {
    42            "description": "Success",
    43            "schema": {
    44              "$ref": "#/definitions/b2"
    45            }
    46          },
    47          "203": {
    48            "description": "Success",
    49            "schema": {
    50              "$ref": "#/definitions/b3"
    51            }
    52          }
    53        }
    54      }
    55    }
    56  },
    57  "definitions": {
    58    "a": {
    59      "type": "string"
    60    },
    61    "b1": {
    62      "$ref": "#/definitions/b1OAIGen"
    63    },
    64    "b1OAIGen": {
    65      "type": "array",
    66      "items": {
    67        "type": "string"
    68      }
    69    },
    70    "b2": {
    71      "$ref": "#/definitions/b2OAIGen"
    72    },
    73    "b2OAIGen": {
    74      "type": "object",
    75      "properties": {
    76        "x2": {
    77          "type": "string"
    78        }
    79      }
    80    },
    81    "b3": {
    82      "$ref": "#/definitions/b3OAIGen"
    83    },
    84    "b3OAIGen": {
    85      "type": "object",
    86      "additionalProperties": {
    87        "type": "string"
    88      }
    89    }
    90  }
    91}

View as plain text