github.com/emreu/go-swagger@v0.22.1/fixtures/bugs/1808/fixture-1808.yaml (about)

     1  host: localhost:45555
     2  info:
     3    title: Marketplace Parser
     4    version: 0.1.0
     5  produces:
     6    - application/json
     7  consumes:
     8    - application/json
     9  schemes:
    10    - http
    11  swagger: "2.0"
    12  paths:
    13  
    14    /search:
    15      post:
    16        tags:
    17          - watchedgames
    18        operationId: searchGame
    19        parameters:
    20          - in: body
    21            name: game
    22            description: Name of the game to search for.
    23            schema:
    24              type: object
    25              required:
    26                - gameName
    27              properties:
    28                gameName:
    29                  type: string
    30        responses:
    31          200:
    32            description: list of products that matches the searched game
    33            schema:
    34              $ref: "#/definitions/gameSearchResult"
    35          500:
    36            description: generic error response
    37            schema:
    38              $ref: "#/definitions/error"
    39  
    40  definitions:
    41    gameSearchResult:
    42      type: object
    43      description: A collection of games that have been found through
    44      properties:
    45        data:
    46          type: array
    47          items:
    48            $ref: "#/definitions/gameSearchResultItem"
    49  
    50    gameSearchResultItem:
    51      type: object
    52      description: A game that have been found
    53      properties:
    54        name:
    55          description: Name of the product
    56          type: string
    57        price:
    58          description: Price of the product
    59          type: number
    60          format: double
    61        provider:
    62          description: Provider on which this product was found
    63          type: string
    64        link:
    65          type: string
    66          description: Url to this product
    67  
    68    error:
    69      type: object
    70      required:
    71        - message
    72      properties:
    73        code:
    74          type: integer
    75          format: int64
    76        message:
    77          type: string