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.
Example OpenAPI YAML:
I would expect that
EventBasewould be a POJO class and thatFlightEventwould extend that class.