swagger-to-graphql icon indicating copy to clipboard operation
swagger-to-graphql copied to clipboard

Excludes falsy values from request options

Open sPaCeMoNk3yIam opened this issue 2 years ago • 0 comments

https://github.com/yarax/swagger-to-graphql/blob/master/src/getRequestOptions.ts#L54 A value should be allowed to be null, false or 0 and if set not throw an error. Here the only valid check and throw should be for undefined.

https://github.com/yarax/swagger-to-graphql/blob/master/src/getRequestOptions.ts#L58 A value should be allowed to be null, false or 0 and be passed as param. Here only undefined should not be passed.

sPaCeMoNk3yIam avatar Nov 28 '22 22:11 sPaCeMoNk3yIam