Open
Description
Describe the bug
An Enum with a value of "0" is defined as shown below:
enum TestEnum {
Key1: 0,
Key2: 1,
}
model Widget {
id: string;
weight: int32;
color: "red" | "blue";
testEnum: TestEnum;
}
When this is compiled with http-client-js, the Enum output in the generated models will be missing the value 0, as shown below:
export enum TestEnum {
Key1 = , // 0 is missing
Key2 = 1
}
Reproduction
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.