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

Allow generic sets to be serialized #19

Open
zapek opened this issue Sep 30, 2021 · 0 comments
Open

Allow generic sets to be serialized #19

zapek opened this issue Sep 30, 2021 · 0 comments
Labels
feature New feature or request

Comments

@zapek
Copy link
Owner

zapek commented Sep 30, 2021

Currently a Set is considered as EnumSet, but there could be Set or so...

When a set is encountered, we should try to get its type (ParameterizedType has it I think) then use another path if it's not an EnumSet. That way we avoid having to put a special value in the annotation.

On second thought, that only works for deserialize() as it has a Field parameter, serialize() will have to be redesigned somehow (grmbl).

@zapek zapek added the feature New feature or request label Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
1 participant