Skip to content

Excludes falsy values from request options #190

@sPaCeMoNk3yIam

Description

@sPaCeMoNk3yIam

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions