...

Text file src/github.com/go-openapi/validate/fixtures/bugs/1341/fixture-1341-2.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        default:
    19          description: generic error
    20          schema:
    21            type: string
    22definitions:
    23  ExecuteValues:
    24    type: object
    25    properties:
    26      Value:
    27        $ref: "#/definitions/ExecuteValue"
    28      Array:
    29        type: array
    30        items:
    31          $ref: "#/definitions/ExecuteValues"
    32    example:
    33      Array:
    34      - Array:
    35        - Value:
    36            Value: value
    37            ValueType: ExecuteValueString
    38      - Value:
    39          Value: true
    40          ValueType: ExecuteValueBoolean
    41  ExecuteValue:
    42    type: object
    43    discriminator: ValueType
    44    required:
    45    - ValueType
    46    #- Test
    47    properties:
    48      ValueType:
    49        type: string
    50      Test:
    51        type: string

View as plain text