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

Added support for IReadOnlyList deserialization #3520

Merged
merged 5 commits into from
Jun 18, 2024
Merged

Conversation

JR-Morgan
Copy link
Member

@JR-Morgan JR-Morgan commented Jun 17, 2024

#3451 introduced an issue where we were successfully serializing, but not successfully deserializing IReadOnlyList properties.

This somehow got through my round of testing.... my bad! but thanks @gjedlicska for spotting this while 2.20 is still in wip! 🙌


In This PR

  1. Added support in our deserializer for IList and IReadOnlyList typed properties
  2. Added a unit test for said support
  3. Added a test in Objects.Tests to test that object model properties are one of the types supported by both our serializer and Deserializer (hard coded right now). Hopefully this will help ensure we never introduce this type of issue again.

@JR-Morgan JR-Morgan changed the title Jrm/ireadonlylist fix Added support for IReadOnlyList deserialization Jun 17, 2024
@JR-Morgan JR-Morgan requested a review from AlanRynne June 17, 2024 20:19
@JR-Morgan JR-Morgan merged commit d151cf5 into dev Jun 18, 2024
31 of 32 checks passed
@JR-Morgan JR-Morgan deleted the jrm/ireadonlylist-fix branch June 18, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants