You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And these are the types of source and destination:
publicclassVoucherCreationRequest{publicVoucherBranchCriteriaDto?BranchCriteria{get;set;}publicMinimumInvoicePriceCriteriaDto?MinimumInvoicePriceCriteria{get;set;}publicCustomersConditionsDtoCustomersConditions{get;set;}=new();}publicabstractclassVoucherDefinition{publicCriteriaContainer?CriteriaContainer{get;set;}=new();}publicclassCriteriaContainer:IDbEntity{publicMinimumInvoicePriceCriteria?MinimumInvoicePriceCriteria{get;set;}publicVoucherBranchCriteria?VoucherBranchCriteria{get;set;}publicCustomerPropertiesCriteria?CustomerPropertiesCriteria{get;set;}// This one is not mappedpublicCustomerCalendarBasedCriteria?CustomerCalendarBasedCriterionData{get;set;}}publicclassCustomersConditionsDto:CustomersFilterDto{publicDateTimeOffset?FromSpouseBirthDateTime{get;set;}publicDateTimeOffset?ToSpouseBirthDateTime{get;set;}}publicclassCustomersFilterDto{
...publicPartialDateFilter?PartialBirthDateFilter{get;set;}publicPartialDateFilter?PartialMarriageDateFilter{get;set;}publicPartialDateFilter?PartialSpouseBirthDateFilter{get;set;}}
I want to map VoucherCreationRequest.CustomersConditions to VoucherDefinition.CriteriaContainer.CustomerPropertiesCriteria and also I want to map from the same ``VoucherCreationRequest.CustomersConditionstoVoucherDefinition.CriteriaContainer.CustomerCalendarBasedCriterionData`.
Nothing is mapped to `VoucherDefinition.CriteriaContainer.CustomerCalendarBasedCriteria`. Hence some warning regarding that is supposed to be thrown but currently is not.
The only relevant warning I get is about the PartialBirthDateFilter property on source not being mapped to any member on CustomerPropertiesCriteria. Nothing is warned about CustomerCalendarBasedCriteria.
The main reason for me to use Mapperly, is the warnings that help prevent any piece of data being lost during conversions by mistake. So we really need those warnings to appear.
The text was updated successfully, but these errors were encountered:
Describe the bug
I expect to see a warning if a property from the source of mapping is not mapped to anything.
Here is my mapping declaration:
And these are the types of source and destination:
I want to map
VoucherCreationRequest.CustomersConditions
toVoucherDefinition.CriteriaContainer.CustomerPropertiesCriteria
and also I want to map from the same ``VoucherCreationRequest.CustomersConditionsto
VoucherDefinition.CriteriaContainer.CustomerCalendarBasedCriterionData`.Nothing is mapped to `VoucherDefinition.CriteriaContainer.CustomerCalendarBasedCriteria`. Hence some warning regarding that is supposed to be thrown but currently is not.
The only relevant warning I get is about the
PartialBirthDateFilter
property on source not being mapped to any member onCustomerPropertiesCriteria
. Nothing is warned aboutCustomerCalendarBasedCriteria
.The main reason for me to use Mapperly, is the warnings that help prevent any piece of data being lost during conversions by mistake. So we really need those warnings to appear.
The text was updated successfully, but these errors were encountered: