According to this question, Request Validation does not exist in dotnet core. If I understand this question correctly, I need to implement a custom method to validate each single string in all expected models.
In my case, I'm working on ASP.Net Core Web API and I'm expecting a dozens of models to be consumed. Each model has an average of 4 string properties. I don't think that doing this repetitive task everywhere in my models would be a nice solution.
Does any one have an alternative to do validation for all string inputs against XSS and SQL Injection.