Giter Club home page Giter Club logo

Comments (7)

andrueastman avatar andrueastman commented on June 2, 2024

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?

from kiota-typescript.

illunix avatar illunix commented on June 2, 2024

Everything in my response is expected, I will provide you open api description later

from kiota-typescript.

illunix avatar illunix commented on June 2, 2024

@andrueastman Get companies request
swagger.json

from kiota-typescript.

baywet avatar baywet commented on June 2, 2024

Hi @illunix
Thanks for the additional information.
This is caused by a lack of defensive check here.

return (this._jsonNode as unknown[]).map((x) => {

Would you be willing to submit a pull request to address this issue?

from kiota-typescript.

illunix avatar illunix commented on June 2, 2024

You mean it's missing something like @baywet

if (typeOfX === "null") {
  
}

from kiota-typescript.

baywet avatar baywet commented on June 2, 2024

more something like

if(!Array.isArray(this._jsonNode)) return undefined;

from kiota-typescript.

SrRickGrimes avatar SrRickGrimes commented on June 2, 2024

same issue here.
I am getting this exception:

TypeError: Cannot read properties of null (reading 'map')
at JsonParseNode.getCollectionOfPrimitiveValues

from kiota-typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.