Mapster icon indicating copy to clipboard operation
Mapster copied to clipboard

Will you be adding an AssertConfigurationIsValid() equivalent?

Open darrenshrwd opened this issue 2 years ago • 3 comments

Apologies if I have not found it and it exists, but do you have or plan to implement an AssertConfigurationIsValid() equivalent, as found in Automapper? This basically checks all maps are valid and we use from unit tests.

darrenshrwd avatar Jun 16 '22 06:06 darrenshrwd

I too am wondering where I can do this sort of thing.

I see the TypeAdapterConfig.GlobalSettings.Compile(failFast: true) but it doesn't seem to do much, at least I can't see if its supposed to throw an error when RequireExplicitMapping and RequireDestinationMemberSource are set to true.

richardbartley avatar Sep 09 '22 14:09 richardbartley

Any news on this issue? I'm experiencing the same problem.

billhong-just avatar Jan 11 '23 02:01 billhong-just

I'm also curious about this one. I tried to upgrade to a prerelease version (7.4.0-pre06), but it still validates neither during compile time nor during startup. It throws exceptions only during runtime

Zamaletdinov avatar Jun 14 '23 15:06 Zamaletdinov