...

Text file src/github.com/go-openapi/validate/fixtures/validation/default/valid-default-value-header-items-response.json

Documentation: github.com/go-openapi/validate/fixtures/validation/default

     1{
     2    "swagger": "2.0",
     3    "info": {
     4        "description": "This is a sample server Petstore server.\n\n[Learn about Swagger](http://swagger.wordnik.com) or join the IRC channel `#swagger` on irc.freenode.net.\n\nFor this sample, you can use the api key `special-key` to test the authorization filters\n",
     5        "version": "1.0.0",
     6        "title": "Swagger Petstore",
     7        "termsOfService": "http://helloreverb.com/terms/",
     8        "contact": {
     9            "name": "apiteam@wordnik.com"
    10        },
    11        "license": {
    12            "name": "Apache 2.0",
    13            "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    14        }
    15    },
    16    "host": "petstore.swagger.wordnik.com",
    17    "basePath": "/v2",
    18    "schemes": [
    19        "http"
    20    ],
    21    "paths": {
    22        "/pets": {
    23          "get": {
    24            "tags": ["pet"],
    25            "summary": "list the pets",
    26            "operationId": "getPets",
    27            "responses": {
    28              "default": {
    29                "headers": {
    30                  "X-Rate-Limit": {
    31                    "type": "array",
    32                    "items": {
    33                      "type": "integer",
    34                      "format": "int32",
    35                      "default": 20
    36                    }
    37                  }
    38                },
    39                "description": "Generic Error"
    40              },
    41              "200": {
    42                "description": "Pets list",
    43                "headers": {
    44                  "X-Rate-Limit": {
    45                    "type": "array",
    46                    "items": {
    47                      "type": "integer",
    48                      "format": "int32",
    49                      "default": 20
    50                    }
    51                  }
    52                },
    53                "schema": {
    54                  "type": "array",
    55                  "items": {
    56                    "type": "integer",
    57                    "format": "int32",
    58                    "default": 20
    59                  }
    60                }
    61              }
    62            }
    63          }
    64        }
    65    },
    66    "definitions": {
    67        "Parent": {
    68          "$ref": "#/definitions/Category"
    69        },
    70        "Category": {
    71            "properties": {
    72                "id": {
    73                    "type": "integer",
    74                    "format": "int64"
    75                },
    76                "name": {
    77                    "type": "string"
    78                }
    79            }
    80        },
    81        "Pet": {
    82            "required": [
    83                "name",
    84                "photoUrls"
    85            ],
    86            "properties": {
    87                "id": {
    88                    "type": "integer",
    89                    "format": "int64"
    90                },
    91                "category": {
    92                    "$ref": "#/definitions/Category"
    93                },
    94                "name": {
    95                    "type": "string",
    96                    "example": "doggie"
    97                },
    98                "photoUrls": {
    99                    "type": "array",
   100                    "items": {
   101                        "type": "string"
   102                    }
   103                },
   104                "tags": {
   105                    "type": "array",
   106                    "items": {
   107                        "$ref": "#/definitions/Tag"
   108                    }
   109                },
   110                "status": {
   111                    "type": "string",
   112                    "description": "pet status in the store"
   113                }
   114            }
   115        },
   116        "Tag": {
   117            "properties": {
   118                "id": {
   119                    "type": "integer",
   120                    "format": "int64"
   121                },
   122                "name": {
   123                    "type": "string"
   124                }
   125            }
   126        }
   127    }
   128}
   129

View as plain text