...

Text file src/github.com/go-openapi/validate/fixtures/bugs/18/headers.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": "string",
    15                    "pattern": ")<-- bad pattern"
    16                  }
    17                },
    18                "description": "Generic Error"
    19            },
    20            "402": {
    21              "headers": {
    22                "X-Foo": {
    23                  "type": "string",
    24                  "pattern": ")<-- bad pattern"
    25                }
    26              },
    27              "description": "Generic Error"
    28          }
    29        }
    30      }
    31    }
    32  }
    33}

View as plain text