OpenAPI generator inheritance in version 5
Asked Answered
B

0

6

In previous version of open-api-maven-generator (4.3.1) I had inheritance with 1 field

 BaseField:
    type: object
    properties:
       id:
         type:integer

and used it to schemas where I needed it like

allOf:
    - $ref: 'BaseField'

And it was generated as inheritance

Schema extends BaseField

After version moved to 5. it becomes generated as injection

Schema {
// field of BaseField
Long id;
}

Is any way to back to inheritance?

Buckle answered 24/6, 2021 at 22:20 Comment(3)
github.com/OpenAPITools/openapi-generator/issues/3172Orcus
Which leads to github.com/OAI/OpenAPI-Specification/blob/main/versions/…Orcus
@RobertHarvey makes sense. thanksBuckle

© 2022 - 2024 — McMap. All rights reserved.