-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request Payload with empty string values ignores all values and send empty object payload #1129
Comments
Hi @rners01, Thanks for raising the issue. I would like to seek more clarification; at the moment the serialization step intentionally skips all undefined fields see: #1079, const Item = {
id: "123"
name: "Foo",
serverId: undefined
} In the example above since the {
"id": "123",
"name": "Foo"
} Please confirm whether this is what you are seeing on your end and whether it addresses your issue |
@koros Not really, it skips |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Hi,
I'd encountered the issue with empty payload request using kiota generated API client.
Client ignores payload with empty string or undefined values, eg.
property: ""
orproperty: undefined
.Before the request was made I
console.log
my payload and those values were present.Im thinking potentially the problem could be with the serializer..
My setup:
I'm using:
The text was updated successfully, but these errors were encountered: