DTO Input Object is null
See original GitHub issueHello, I’m having a weird issue where an ApplicationService service is receiving and Input null in the DTO object.
I already used the DisableValidation data annotation in my service and also cleared all Mvc ModelValidatorProviders through
services.AddMvc(
options =>
{
options.ModelValidatorProviders.Clear();
});
All I have is a single line of error in the log: ore.Mvc.Internal.ControllerActionInvoker - Executing action method AMC.Application.Cadastros.MeioPagtos.Services.MeioPagtoAppService.Update (AMC.Application) with arguments () - Validation state: Invalid
Any ideas of what it migth be?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
My DTO showing null for one object and the correct value ...
I'm learning how to properly use DTOs and so far everything was going well until I got this problem: I have a Model...
Read more >All the properties of a domain object should support NULL ...
The short answer here is to have 3 user DTOs, one to fit each view. But you seem to want to reuse the...
Read more >Input DTO Update Problems > API Platform Part 3
The issue is that when the serializer deserializes the JSON into the CheeseListingInput , the owner property will be null ... and then...
Read more >Check If All the Variables of an Object Are Null
In this tutorial, we'll learn four approaches to check if all variables of an object are null. 2. Why Check if Variables Are...
Read more >Handling JSON null and empty arrays and objects
JSON has a special value called null which can be set on any type of data including arrays, objects, number and boolean types....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ismcagdas Yes, thank you very much you all.
@hotwer can we close the issue now ?