Skip to content

Types modelled with inheritance are not generated with inheritance #61

@InfoSec812

Description

@InfoSec812

Example OpenAPI YAML:

components:
    schemas:
        EventBase:
            type: object
            discriminator:
                propertyName: eventType
            properties:
                eventType:
                    type: string
                name:
                    type: string
                id:
                    format: int32
                    type: integer
        FlightEvent:
            allOf:
                - $ref: '#/components/schemas/EventBase'
                - type: object
                  properties:
                      mission:
                          type: string

I would expect that EventBase would be a POJO class and that FlightEvent would extend that class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions