...

Text file src/github.com/go-openapi/validate/fixtures/bugs/1341/fixture-1341-5.yaml

Documentation: github.com/go-openapi/validate/fixtures/bugs/1341

     1swagger: '2.0'
     2info:
     3  title: Title
     4  description: some description
     5  contact:
     6    name: John Doe
     7    url: https://www.acme.com/support
     8    email: support@acme.com
     9  version: "1.0.0"
    10paths:
    11  /:
    12    get:
    13      responses:
    14        200:
    15          description: Example path
    16          schema:
    17            #$ref: '#/definitions/ExecuteValues'
    18            type: string
    19        default:
    20          description: generic error
    21          schema:
    22            type: string
    23definitions:
    24  ExecuteValues:
    25    description: recursive definition
    26    type: object
    27    properties:
    28      Value:
    29        $ref: "#/definitions/ExecuteValue"
    30      Array:
    31        description: array definition
    32        type: array
    33        items:
    34          $ref: "#/definitions/ExecuteValues"
    35    default:
    36      Array:
    37      - Array:
    38        - Value:
    39            Value: value
    40            ValueType: ExecuteValueString
    41      - Value:
    42          Value: true
    43          ValueType: ExecuteValueBoolean
    44  ExecuteValue:
    45    description: non-recursive definition
    46    type: object
    47    discriminator: ValueType
    48    required:
    49    - ValueType
    50    - Test
    51    properties:
    52      ValueType:
    53        description: the type of the value
    54        type: string
    55      Test:
    56        description: a test
    57        type: string

View as plain text