-
Notifications
You must be signed in to change notification settings - Fork 344
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
#2610 signal duplicate properties while parsing #2708
#2610 signal duplicate properties while parsing #2708
Conversation
…while-parsing # Conflicts: # src/firely-net-sdk-tests.props
…ed extra unit tests
src/Hl7.Fhir.Base/Serialization/BaseFhirJsonPocoDeserializer.cs
Outdated
Show resolved
Hide resolved
src/Hl7.Fhir.Base/Serialization/BaseFhirJsonPocoDeserializer.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Ewout Kramer <ewout@fire.ly>
Co-authored-by: Ewout Kramer <ewout@fire.ly>
We broke it with our last change! It did work before. So maybe the cast can result in null after all? |
No, that does not make sense, as the |
With the compiler hint, the code works though... Could it be a runtime type error (nullable/non-nullable)? EDIT: it was a compiler failure, so this works now :) |
Description
JSON deserializer should now correctly identify and report duplicate property keys
Related issues
Resolves issue #2610.
Testing
Unit tests added to assert (fatal) duplicate property keys errors and to assert their differentiation from (recoverable) duplicate array key errors.