IBM / openapi-to-graphql

Translate APIs described by OpenAPI Specifications (OAS) into GraphQL
https://developer.ibm.com/open/projects/openapi-to-graphql/
MIT License
1.6k stars 206 forks source link

Fix setting null value in query params with style "form" #478

Open adascal opened 1 year ago

adascal commented 1 year ago

Because in js typeof null === 'object' we need additional check, otherwise Object.entries(args[saneParamName]) will fail with:

TypeError: Cannot convert undefined or null to object