Skip to content

[Bug]: SDK generator to support properties for allOf instructions in specs #3017

Closed as duplicate of#2832
@vscaiceanu-1a

Description

@vscaiceanu-1a

Package name

schematics

Package version

12.0.0

Reproduction steps

When generating an SDK for specs with properties along with the allOf instruction, the enum types are not created.

Dog:
  allOf:
    - $ref: '#/components/schemas/Pet'
  properties:
    bark:
      type: boolean
    breed:
      type: string
      enum: [Dingo, Husky, Retriever, Shepherd]

Current result

It will not generate the breed enum.

Expected result

Should generate:

export type BreedEnum = 'Dingo' | 'Husky' | 'Retriever' | 'Shepherd';

Additional comments

For now, we provide a workaround via #3013

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions