Closed as duplicate of#2832
Closed as duplicate of#2832
Description
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