Open
Description
I can't seem to get enums to be generated. What I understand from the documentation is that enums should be generated by default.
I'm trying out the petstore example:
npx swagger-typescript-api -p https://petstore.swagger.io/v2/swagger.json -o ./generated2 --enum-names-as-values
And I get status as an union type instead of an enum although I have not set --union-enums
flag:
export interface Pet {
/** @format int64 */
id?: number;
category?: Category;
/** @example doggie */
name: string;
photoUrls: string[];
tags?: Tag[];
/** pet status in the store */
status?: 'available' | 'pending' | 'sold';
}