question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DTO Input Object is null

See original GitHub issue

Hello, 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:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hotwercommented, Oct 5, 2018

@ismcagdas Yes, thank you very much you all.

0reactions
ismcagdascommented, Oct 5, 2018

@hotwer can we close the issue now ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found