...

Text file src/github.com/go-openapi/analysis/fixtures/bugs/1602/fixture-1602-1.yaml

Documentation: github.com/go-openapi/analysis/fixtures/bugs/1602

     1---
     2swagger: "2.0"
     3schemes:
     4  - "http"
     5  - "https"
     6basePath: "/v1.24"
     7info:
     8  title: "derived from Pouch Engine API"
     9  version: "1.24"
    10  description: A variation on issue go-swagger/go-swagger#1609
    11paths:
    12  /_ping:
    13    get:
    14      parameters:
    15      - $ref: '#/parameters/bodyWithRef'
    16      responses:
    17        200:
    18          description: "no error"
    19          schema:
    20            type: "string"
    21            example: "OK"
    22        301:
    23          description: direct ref
    24          schema:
    25            $ref: "#/definitions/Error"
    26        401:
    27          $ref: "#/responses/401ErrorResponse"
    28        404:
    29          $ref: "#/responses/404ErrorResponse"
    30        500:
    31          $ref: "#/responses/500ErrorResponse"
    32
    33definitions:
    34  Error:
    35    type: "object"
    36    properties:
    37      message:
    38        type: string
    39
    40parameters:
    41  bodyWithRef:
    42    name: bodyWithRefParam
    43    in: body
    44    schema:
    45      $ref: "#/definitions/Error"
    46  nobodyWithRef:
    47    name: bodyWithRefParam
    48    in: query
    49    type: integer
    50    #required: true
    51  anotherBodyWithRef:
    52    name: anotherBodyWithRefParam
    53    in: body
    54    schema:
    55      $ref: "#/definitions/Error"
    56  funnyParam:
    57    name: funnyParam
    58    in: body
    59    schema:
    60      $ref: "#/responses/500ErrorResponse/schema"
    61
    62responses:
    63  401ErrorResponse:
    64    description: An unexpected 401 error occurred.
    65    schema:
    66      $ref: "#/definitions/Error"
    67  404ErrorResponse:
    68    description: An unexpected 404 error occurred.
    69    schema:
    70      $ref: "#/definitions/Error"
    71  500ErrorResponse:
    72    description: An unexpected server error occurred.
    73    schema:
    74      $ref: "#/definitions/Error"
    75  funnyResponse:
    76    description: An unexpected server error occurred.
    77    schema:
    78      $ref: "#/responses/401ErrorResponse/schema"
    79  foulResponse:
    80    description: An unexpected server error occurred.
    81    schema:
    82      $ref: "#/responses/noSchemaResponse"
    83  noSchemaResponse:
    84    description: An unexpected server error occurred.

View as plain text