github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1409/fixture-1409.yaml (about)

     1  swagger: '2.0'
     2  info:
     3    title: fixture a for issue#1409
     4    version: '1.0.0'
     5  host: localhost
     6  basePath: /
     7  produces:
     8    - application/json
     9  schemes:
    10    - http
    11  paths:
    12    /path:
    13      get:
    14        operationId: path
    15        responses:
    16          200:
    17            description: simple type
    18            schema:
    19              $ref: '#/definitions/Graph'
    20  definitions:
    21    Graph:
    22      type: object
    23      additionalProperties: true
    24      properties:
    25        Nodes:
    26          type: array
    27          items:
    28            $ref: "#/definitions/Node"
    29    Node:
    30      type: object
    31      discriminator: NodeType
    32      required:
    33      - NodeType
    34      properties:
    35        NodeType:
    36          type: string
    37    CodeBlockNode:
    38      allOf:
    39      - $ref: "#/definitions/Node"
    40      - properties:
    41           Code:
    42            type: string