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

Issue#601 Support for deserialization of interface types #604

Merged
merged 2 commits into from Apr 8, 2021

Conversation

dotlegacy
Copy link
Contributor

…ir concrete types using the builder.AddTypeMapping<TInterface, TConcrete>() api.

Welcome!

Thanks for your interest in contributing to this project. Any contribution will
be gladly accepted, provided that they are generally useful and follow the
conventions of the project.

  1. Please create one pull request for each feature. This results in smaller pull requests that are easier to review and validate.

  2. Avoid reformatting existing code unless you are making other changes to it.

    • Cleaning-up of usings is acceptable, if you made other changes to that file.
    • If you believe that some code is badly formatted and needs fixing, isolate that change in a separate pull request.
  3. Always add one or more unit tests that prove that the feature / fix you are submitting is working correctly.

  4. Please describe the motivation behind the pull request. Explain what was the problem / requirement. Unless the implementation is self-explanatory, also describe the solution.

    • Of course, there's no need to be too verbose. Usually one or two lines will be enough.
  5. Follow the project's coding conventions

…ir concrete types using the builder.AddTypeMapping<TInterface, TConcrete>() api.
@dotlegacy dotlegacy marked this pull request as draft April 5, 2021 22:40
…nly applies to DeserializerBuilder.

Updated dictionaries to instance types as the static types caused concurrent unit tests to fail.
Updated DefaultObjectFactory to use lazy loading to allow constructor initialization with type mappings.
@dotlegacy dotlegacy marked this pull request as ready for review April 6, 2021 05:14
@dotlegacy
Copy link
Contributor Author

This is related to issue #604

@aaubry
Copy link
Owner

aaubry commented Apr 8, 2021

This looks really good. Thanks!

@aaubry aaubry merged commit b722b07 into aaubry:master Apr 8, 2021
@aaubry
Copy link
Owner

aaubry commented Apr 8, 2021

This heature has been released in version 11.1.0.

@dotlegacy
Copy link
Contributor Author

This looks really good. Thanks!

Thank you for the starting this project! I also noticed that your code coverage configuration needs to be updated so that it shouldn't count any other code than the main project. I will push another PR to address that unless you disagree.

@aaubry
Copy link
Owner

aaubry commented Apr 8, 2021 via email

@dotlegacy dotlegacy deleted the feature/AddTypeMapping branch April 10, 2021 05:07
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.

None yet

2 participants