...

Text file src/github.com/go-openapi/validate/fixtures/recursive_expansion/spec.yaml

Documentation: github.com/go-openapi/validate/fixtures/recursive_expansion

     1---
     2swagger: "2.0"
     3info:
     4  title: Item API
     5  description: Item API
     6  version: "1.0.0"
     7host: item.api.local
     8basePath: /v1
     9securityDefinitions:
    10  key:
    11    type: apiKey
    12    name: x-item-token
    13    in: header
    14security:
    15  - key: []
    16consumes: 
    17  - application/json
    18produces:
    19  - application/json
    20schemes:
    21  - http
    22responses:
    23  itemResponse:
    24    description: Item
    25    schema:
    26      $ref: "item.yaml#/item"
    27paths:
    28  /item:
    29    get:
    30      operationId: GetItem
    31      responses:
    32        200:
    33          description: item detail response
    34          schema:
    35            $ref: "item.yaml#/item"
    36        default:
    37          $ref: "#/responses/itemResponse"
    38

View as plain text