openapi: '3.0.3'
info:
  version: 1.0.0
  title: Example Api
paths:
  /dummy:
    get:
      summary: dummy
      operationId: dummy
      responses:
        '200':
          description: OK


components:
  schemas:

    ChildClass:
      type: object
      allOf:
        - $ref: "#/components/schemas/ParentClass"
        - type: object
          properties:
            objectType:
              type: string
              default: "ChildClass"

    ParentClass:
      type: object
      discriminator:
        propertyName: objectType
      properties:
        objectType:
          type: string
          default: "ParentClass"
        someMap:
          $ref: "#/components/schemas/MapClass"

    MapClass:
      type: object
      additionalProperties:
        type: string
