...

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

View as plain text