...

Text file src/github.com/go-openapi/validate/fixtures/bugs/18/headerItems.json

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

     1{
     2  "swagger": "2.0",
     3  "info": {
     4    "version": "0.0.1",
     5    "title": "test of Swagger invalid pattern in headers"
     6  },
     7  "paths": {
     8    "/foo": {
     9      "get": {
    10          "responses": {
    11              "default": {
    12                "headers": {
    13                  "X-Foo": {
    14                    "type": "array",
    15                    "items": {
    16                      "type": "string",
    17                      "pattern": ")<-- bad pattern"
    18                    }
    19                  }
    20                },
    21                "description": "Generic Error"
    22            }
    23        }
    24      }
    25    }
    26  }
    27}

View as plain text