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

Type Discrimination similar to JSON.Net #207

Closed
gwicksted opened this issue Sep 21, 2016 · 1 comment
Closed

Type Discrimination similar to JSON.Net #207

gwicksted opened this issue Sep 21, 2016 · 1 comment

Comments

@gwicksted
Copy link

It would be nice to not have to adjust the serialized yaml (by adding tags) to have the deserializer capable of distinguishing types based on what key names or value types were provided.

Or can this be done by INodeTypeResolver? I have not found a good example that doesn't use tags.

Example of how JSON.Net handles this type of problem:

http://stackoverflow.com/questions/11099466/using-a-custom-type-discriminator-to-tell-json-net-which-type-of-a-class-hierarc

@EdwardCooke
Copy link
Collaborator

This issue appears to be abandoned, I'm going to close it.

@EdwardCooke EdwardCooke closed this as not planned Won't fix, can't repro, duplicate, stale Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants