...

Text file src/github.com/go-openapi/validate/fixtures/go-swagger/bugs/319/swagger.yml

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

     1info:
     2  description: a spec for issue 319 on github
     3  title: bug 319
     4  version: 1.0.0
     5paths: {}
     6consumes:
     7- application/json
     8produces:
     9- application/json
    10schemes:
    11- http
    12swagger: "2.0"
    13definitions:
    14  Base:
    15    description: Base class
    16    discriminator: dType
    17    properties:
    18      dType:
    19        type: string
    20        description: discriminating type
    21    required:
    22      - dType
    23
    24  Derived:
    25    description: Derived class
    26    allOf:
    27      - "$ref": "#/definitions/Base"
    28      - required:
    29        - name
    30        properties:
    31          name:
    32            type: string
    33            description: name of the property
    34
    35  Container:
    36    description: Container type
    37    properties:
    38      mapNoWorky:
    39        type: object
    40        additionalProperties:
    41          $ref: "#/definitions/Base"
    42    required:
    43      - mapNoWorky

View as plain text