swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[KOTLIN] allOf doesn't generate $ref

Open Lena-Gadzieva opened this issue 1 year ago • 0 comments

Description

When generating with kotlin-client a class like this:

Cat:
      allOf:
        - $ref: '#/components/schemas/Pet'
        - properties:
            hunts:
              type: boolean
            age:
              type: integer

ignores $ref and only generates attributes from properties

Swagger-codegen version

3.0.61

Related issues/PRs

Similar issue was raised before: https://github.com/swagger-api/swagger-codegen/issues/12241

Lena-Gadzieva avatar Aug 14 '24 08:08 Lena-Gadzieva