I'm not seeing all of your code, but I suspect you're returning a dynamic object as the result of an API call. Are you able to return a specific type?
Here's what I mean...
I think this is what you're doing:
[HttpGet("people/all")]
public ActionResult GetAll()
{
return new []
{
new Person { Name = "Ana" },
new Person { Name = "Felipe" },
new Person { Name = "Emillia" }
};
}
Can you instead do this:
[HttpGet("people/all")]
public ActionResult<IEnumerable<Person>> GetAll()
{
return new []
{
new Person { Name = "Ana" },
new Person { Name = "Felipe" },
new Person { Name = "Emillia" }
};
}
Notice the return type is ActionResult<IEnumerable<Person>>. Can you define the return type that includes partnerReference and trackingID as nullable data elements?