...

Text file src/github.com/go-openapi/validate/fixtures/bugs/123-validate/fixture-123.json

Documentation: github.com/go-openapi/validate/fixtures/bugs/123-validate

     1{
     2  "swagger": "2.0",
     3  "info": {
     4    "description": "TestSwagger",
     5    "version": "1.0",
     6    "title": "Test"
     7  },
     8  "host": "127.0.0.1:8443",
     9  "basePath": "/",
    10  "schemes": [
    11    "https"
    12  ],
    13  "paths": {
    14    "/api/v1/getx": {
    15      "post": {
    16        "operationId": "getx",
    17        "consumes": [
    18          "application/json"
    19        ],
    20        "produces": [
    21          "application/json"
    22        ],
    23        "responses": {
    24          "200": {
    25            "description": "Operation successful",
    26            "schema": {
    27              "$ref": "#/definitions/MyObj"
    28            }
    29          }
    30        },
    31        "security": []
    32      }
    33    }
    34  },
    35  "definitions": {
    36    "MyObj": {
    37      "type": "object",
    38      "properties": {
    39        "name": {
    40          "type": "string"
    41        },
    42        "child-objects": {
    43          "type": "array",
    44          "items": {
    45            "$ref": "#/definitions/MyObj"
    46          }
    47        }
    48      }
    49    }
    50  }
    51}

View as plain text