-
Notifications
You must be signed in to change notification settings - Fork 47
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
Broken references deserialization #407
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Boo... I was afraid of something like this. Thank you for taking the time to report. Is the above a list? I will attempt to create the object graph and see if I can reproduce this for you. Apologies for breaking your code. 😞 Please use |
Yes, it is a list of lookuptables and each has list of values in Models property. A value sometimes reference value from another lookup table - like in this case Pathogen reference PathogenType which is another lookuptable. |
OK cool thank you for the context, @ondrasvoboda. To be sure, your referenced XML above does not have a closing |
Yes, that's due to removing additional data. |
Alright @ondrasvoboda unfortunately I am not having any luck reproducing this. I am eyeballing the model so there might be something fundamental that I am overlooking here. This is what I have and seems to be passing OK: home/test/ExtendedXmlSerializer.Tests.ReportedIssues/Issue407Tests.cs Lines 12 to 67 in 3d0c314
Is there anything that sticks out at you that I am not considering? |
Boom... figured it out. It's our good friend the |
Alright @ondrasvoboda check out the instructions here: And see if that treats you better. If it does, I will release this to NuGet ASAP since this will no doubt impact others. |
Works great, thanks! |
Awesome! Good news is that as easier than I expected, but bad news is that it involved adding another boolean check to the code which makes it feel hackier. I am very much hoping Anyways, Not complaining about that version number, either! 😆 |
Hi,
after updating to the latest version 3.2.0 I'm unable to deserialize correctly XML created with .EnableReferences() option.
Fragment of my XML file:
After deserialization I get PathogenType with Code and Description null, instead of "f" and "Fungus". It works in 3.1.4. I've seen some changes regarding references in the last version, so am I missing something or is it a bug?
Thanks!
The text was updated successfully, but these errors were encountered: