Repository navigation
Add DateOnly/TimeOnly and ctor mapping fixes - #7
Merged
Merged
Conversation
Bump package to 4.0.1 and release notes/CHANGELOG update. Add ConstructorPlan to robustly select and invoke constructors (including non-public), honor optional/default params, match params case-insensitively, and throw detailed MappingException for null/non-nullable or invocation errors. MappingPlan now excludes constructor-bound members. Add DateOnly/TimeOnly as simple types and extend conversion support for enum↔string, string→enum, and enum↔primitive conversions. Improve MappingEngine null handling (nullable vs non-nullable destinations), preserve-reference usage, and require complex/nested objects to be mapped via plans to avoid reusing source instances. Simplify collection/generic element detection and improve TryConvert (uses Convert.ChangeType fallback for enums). Improve MappingPlan destination instantiation (handle value types via Activator.CreateInstance and surface instantiation errors), use MappingEngine.IsNullableType for null decisions, and refine MappingException messages/formatting. Add regression/unit tests (ObjectMapperTest and supporting test types) covering nullable DateOnly/TimeOnly, enum→string constructor mapping, and other scenarios. Patch release with tests and bug fixes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bump package to 4.0.1 and release notes/CHANGELOG update. Add ConstructorPlan to robustly select and invoke constructors (including non-public), honor optional/default params, match params case-insensitively, and throw detailed MappingException for null/non-nullable or invocation errors. MappingPlan now excludes constructor-bound members.
Add DateOnly/TimeOnly as simple types and extend conversion support for enum↔string, string→enum, and enum↔primitive conversions. Improve MappingEngine null handling (nullable vs non-nullable destinations), preserve-reference usage, and require complex/nested objects to be mapped via plans to avoid reusing source instances. Simplify collection/generic element detection and improve TryConvert (uses Convert.ChangeType fallback for enums).
Improve MappingPlan destination instantiation (handle value types via Activator.CreateInstance and surface instantiation errors), use MappingEngine.IsNullableType for null decisions, and refine MappingException messages/formatting.
Add regression/unit tests (ObjectMapperTest and supporting test types) covering nullable DateOnly/TimeOnly, enum→string constructor mapping, and other scenarios. Patch release with tests and bug fixes.