...

Text file src/github.com/go-openapi/spec/fixtures/remote/pet/pet.json

Documentation: github.com/go-openapi/spec/fixtures/remote/pet

     1{
     2  "responses": {
     3    "petResponse": {
     4      "description": "pet response",
     5      "schema": {
     6        "$ref": "#/definitions/pet"
     7      }
     8    },
     9    "stringResponse": {
    10      "descripion": "string response",
    11      "schema": {
    12        "type": "string"
    13      }
    14    },
    15    "circularB": {
    16      "$ref": "#/responses/circularC"
    17    },
    18    "circularC": {
    19      "$ref": "../all-the-things.json#/responses/circularA"
    20    },
    21    "backRef": {
    22      "$ref": "../all-the-things.json#/responses/petResponse"
    23    },
    24    "anotherPet": {
    25      "$ref": "#/responses/petResponse"
    26    }
    27  },
    28  "definitions": {
    29    "pet": {
    30      "required": ["id", "name"],
    31      "properties": {
    32        "id": {
    33          "type": "integer",
    34          "format": "int64"
    35        },
    36        "name": {
    37          "type": "string"
    38        },
    39        "tag": {
    40          "type": "string"
    41        }
    42      }
    43    }
    44  }
    45}

View as plain text