...

Text file src/github.com/go-openapi/analysis/fixtures/bugs/1602/fixture-1602-6.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      responses:
    15        401:
    16          description: an error
    17          schema:
    18            $ref: "#/responses/401ValidSchema"
    19        404:
    20          description: another error
    21          schema:
    22            $ref: "#/parameters/bodyValidSchema"
    23        500:
    24          $ref: "#/responses/401ValidSchema"
    25
    26definitions:
    27  Error:
    28    type: "object"
    29    properties:
    30      message:
    31        type: string
    32
    33parameters:
    34  bodyValidSchema:
    35    description: a valid schema (but invalid parameter)
    36    type: string
    37
    38responses:
    39  401ValidSchema:
    40    description: An unexpected 401 error occurred.

View as plain text