vertx-starter icon indicating copy to clipboard operation
vertx-starter copied to clipboard

Types modelled with inheritance are not generated with inheritance

Open InfoSec812 opened this issue 6 years ago • 1 comments

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.

InfoSec812 avatar May 25 '19 03:05 InfoSec812

I'd assigned @slinkydeveloper as he's the OpenAPI expert :wink:

pmlopes avatar May 25 '19 08:05 pmlopes