Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Types modelled with inheritance are not generated with inheritance #61

Open
InfoSec812 opened this issue May 25, 2019 · 1 comment
Open

Comments

@InfoSec812
Copy link

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.

@pmlopes
Copy link
Owner

pmlopes commented May 25, 2019

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

@slinkydeveloper slinkydeveloper removed their assignment Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants