-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
Derived class disambiguating fails, but only sometimes. #544
Labels
more-info-needed
More information required.
Comments
Can you paste in the exact exception that sometimes flies out? Maybe it'll help. |
From your snippets I'm also going to assume you're using |
I'll add the exact exception when I can recreate it. And yes, I am using |
Here is the exception that results periodically from this issues:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I have a set of classes that all inherit from one base class. I have one class that has a unique required attribute to differentiate it defined like this:
I have a unit test which tries to structure json with this BadSubClass. About half the time I get an exception that the BaseClass deserializing got extra keys (the keys of BadSubClass). Well I say half the time, but now that I'm trying to recreate the error, it won't throw the error. (You might say I'm just crazy. You'd be right, but not for this reason.)
The question is, Has anyone seen this disambiguating problem, especially when it is transient like this?
What I Did
Test case looks like this:
The text was updated successfully, but these errors were encountered: