Skip to content

The defaultSerializer adds unwanted quotes when typeof body === "string" (due to JSON.stringify) #2555

@justAnArthur

Description

@justAnArthur

openapi-fetch version

^0.14.1

Description

Code
Image

Console
Image

Reproduction

undefined

Expected result

The string is already stringified - don't use JSON.stringify when typeof body === 'string'.

Extra

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopenapi-fetchRelevant to the openapi-fetch library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions