...

Text file src/github.com/go-openapi/spec/fixtures/bugs/102/fixture-102.json

Documentation: github.com/go-openapi/spec/fixtures/bugs/102

     1{
     2  "swagger": "2.0",
     3  "info": {
     4    "description": "My API",
     5    "version": "1.0.0",
     6    "title": "my api",
     7    "contact": {
     8      "email": "me@myorg.com"
     9    },
    10    "license": {
    11      "name": "my org"
    12    }
    13  },
    14  "host": "127.0.0.1",
    15  "basePath": "/",
    16  "tags": [],
    17  "schemes": [
    18    "https"
    19  ],
    20  "paths": {
    21    "/api/v1/endpoint": {
    22      "post": {
    23        "summary": "my endpoint",
    24        "description": "Accessible to . ",
    25        "operationId": "ep1",
    26        "consumes": [
    27          "application/json"
    28        ],
    29        "produces": [
    30          "application/json"
    31        ],
    32        "parameters": [
    33
    34        ],
    35        "responses": {
    36          "200": {
    37            "description": "Operation successful",
    38            "schema": {
    39              "$ref": "#/definitions/Error"
    40            }
    41          }
    42        },
    43        "security": []
    44      }
    45    }
    46  },
    47  "definitions": {
    48    "Error": {
    49      "type": "object",
    50      "properties": {
    51        "errorCode": {
    52          "type": "string",
    53          "format": "string"
    54        },
    55        "errorMessage": {
    56          "type": "string",
    57          "format": "string"
    58        },
    59        "warning": {
    60          "type": "string"
    61        },
    62        "child-errors": {
    63          "type": "array",
    64          "items": {
    65            "$ref": "#/definitions/Error"
    66          }
    67        }
    68      }
    69    }
    70  }
    71}

View as plain text