Replies: 2 comments 5 replies
-
Well parsing in our case is taking in a string and converting into some object – that's also really what we call mapping (converting from one format to other). It's more of a question if we should check the strings if they are in a certain format that the parsing process in the mapper will be able to understand. What happens now when you try to map |
Beta Was this translation helpful? Give feedback.
-
Haven't done much work with the validator, so correct me if I'm wrong. The only option I can think of is performing TryParse when validating DTOs and if it fails, then throw? Are you talking about the same or are there other ways to do it? EDIT: I can see there are cases of people using it similarly. |
Beta Was this translation helpful? Give feedback.
-
At the moment parsing of Spotted (Date), Id and Severity are done during mapping which is tough to test. I think we should move these parsing operations to DTOValidator classes, so that no parsing would be done during mapping.
Beta Was this translation helpful? Give feedback.
All reactions