-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discriminated unions with two enums are not deserialized #317
Comments
Can confirm this is a bug. The following is wrongly computed, likely an issue with the VM. enum StatEnginePowerUnit {
Hp = 'hp',
}
enum StatWeightUnit {
Lbs = 'lbs',
Kg = 'kg',
}
type StatMeasurementUnit = StatEnginePowerUnit | StatWeightUnit;
const type = typeOf<StatMeasurementUnit>(); //kind=enum, wrong |
Hey, @marcj ! I don't want to press you but, is it possible to deploy a version with the fixed bugs? |
@danfma alpha-74 is released https://github.com/deepkit/deepkit-framework/releases/tag/v1.0.1-alpha.74 |
Char2sGu
pushed a commit
to Char2sGu/deepkit-framework
that referenced
this issue
Aug 4, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you have an enum the deepkit won't be able to deserialize it correctly.
Reproduction:
Expected behavior: it should be deserialized as 'kg'.
The text was updated successfully, but these errors were encountered: