Skip to content
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

serdeEnumProxy not working inside Variants #36

Open
WebFreak001 opened this issue Oct 21, 2022 · 0 comments
Open

serdeEnumProxy not working inside Variants #36

WebFreak001 opened this issue Oct 21, 2022 · 0 comments

Comments

@WebFreak001
Copy link
Contributor

See #28 (comment)

@serdeEnumProxy!int
enum MyEnum
{
	off, on
}

struct ServerCapabilities
{
	Variant!(void, bool, MyEnum) v;
}

trying to deserialize JSON {"v":0} results in Unexpected IonTypeCode for Algebraic!(void, bool, MyEnum)

This issue does not occur with Nullable!MyEnum or Variant!(void, MyEnum) because of a special otpimization case for these simple cases (#28)

Right now this is not a high priority issue for me, but documenting it because it could lead to issues in the future and we might want to fix this eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant