Closed illunix closed 3 months ago
Thanks for raising this @illunix
Any chance you can share the path being called as well as the openApi description for the path? Are you able to determine which property is null that was expected to be a collection?
Everything in my response is expected, I will provide you open api description later
@andrueastman Get companies request swagger.json
Hi @illunix Thanks for the additional information. This is caused by a lack of defensive check here. https://github.com/microsoft/kiota-typescript/blob/8c76a375bfab29d66e7ebe186f71342a1a2a4f54/packages/serialization/json/src/jsonParseNode.ts#L53
Would you be willing to submit a pull request to address this issue?
You mean it's missing something like @baywet
if (typeOfX === "null") {
}
more something like
if(!Array.isArray(this._jsonNode)) return undefined;
same issue here. I am getting this exception:
TypeError: Cannot read properties of null (reading 'map') at JsonParseNode.getCollectionOfPrimitiveValues
I use v1.13.0 Can someone help me resolve this, somehow Kiota can't handle null values
![image](https://github.com/microsoft/kiota/assets/42069493/52975354-3d87-4000-8ab1-d3640d2615c4)