github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2962/old.json (about)

     1  {
     2    "swagger": "2.0",
     3    "info": {
     4      "title": "Swagger Fixture",
     5      "version": "1.0"
     6    },
     7    "paths": {
     8      "/a/{id}": {
     9        "post": {
    10          "parameters": [
    11            {
    12              "name": "",
    13              "in": "body",
    14              "schema": { "$ref": "#/definitions/A2" }
    15            }
    16          ],
    17          "responses": {
    18            "200": {
    19              "description": "200 response",
    20              "schema": { "$ref": "#/definitions/A3" }
    21            }
    22          }
    23        }
    24      }
    25    },
    26    "definitions": {
    27      "A2": {
    28        "type": "object",
    29        "required": [ "name", "description" ],
    30        "properties": {
    31          "name": { "type": "string" },
    32          "description": { "type": "string" }
    33        }
    34      },
    35      "A3": {
    36        "type": "object",
    37        "properties": {
    38          "id": { "type": "integer" },
    39          "name": { "type": "string" },
    40          "otherDeletedName":{"type":"string","deprecated":true},
    41          "description": { "type": "string" },
    42          "letters": {
    43            "type": "array",
    44            "items": { "type": "string" }
    45          },
    46          "attributes": {
    47            "type": "object",
    48            "additionalProperties": { "type": "string" }
    49          }
    50        }
    51      }
    52    }
    53  }