I need to access an external API to PATCH a resource. I need to send only the fields that I want to modify.
For instance, if I want to change the description and set asignee to null I need to send:
PATCH /tasks/123
{
"description": "deprioritized, working on other stuff",
"asignee": null
}
And if I only want to modify the description, I need to send:
PATCH /tasks/123
{
"description": "deprioritized, working on other stuff"
}
We are using NSwag to generate a client from the OpenAPI spec.
How could we only send some fields in the PATCH request? Right now, all fields are always sent as null, which is setting the assignee as null when we don't want to edit it :(
I need to access an external API to PATCH a resource. I need to send only the fields that I want to modify.
For instance, if I want to change the description and set asignee to null I need to send:
PATCH /tasks/123
And if I only want to modify the description, I need to send:
PATCH /tasks/123
We are using NSwag to generate a client from the OpenAPI spec.
How could we only send some fields in the PATCH request? Right now, all fields are always sent as null, which is setting the assignee as null when we don't want to edit it :(