Using the latest version (v1.11.1-0.20220727161132-874b0a16ac55) I have a schema like ```yaml x: allOf: - $ref: '#/components/schemas/y-base' properties: a: .... b: $ref: '#/components/schemas/b' type: object ``` I get code like: ```go // X defines model for x. type X struct { // Embedded struct due to allOf(#/components/schemas/y-base) YBase `yaml:",inline"` } ``` if the `old-merge-schemas: true` is true, and ```go // X defines model for x. type X YBase ``` when its false, the other properties all ignored
Activity
musaprg commentedon Jan 2, 2024
It seems a similar issue has been reported in OpenAPITools/openapi-generator, which normalizes such cases by converting it to allOf-only style. ref
fix(codegen): only inject parent siblings into allOf merge when struc…
Fix: Respect parent properties in case of merged schemas by allOf (#1415
Fix: Respect parent properties in case of merged schemas by allOf (oa…