We have an multipart form data ServiceStack endpoint that accepts a file (byte data) as well as a DTO. As discussed in a separate thread (https://forums.servicestack.net/t/how-to-upload-a-file-and-post-json-data-in-the-same-request/3318), the DTO is being passed in as ContentType text/plain.
I'm not 100% sure but it seems that this is causing our standard validation (fluent validation) to not work. The validator looks fine, it seems to be loaded, but it does not return the errors that it should be returning based on the data we're passing in in our tests (e.g. NotNull checks are not failing when null passed in for the properties being validated).
Could this be the case? Or am I barking up the wrong tree?
Many thanks in advance.
Can you please provide the source code for the DTO, the validator and the raw HTTP Request Headers.