Skip to content

String request payload is incorrectly serialized #48

@ondrejpar

Description

@ondrejpar

Relevant part of api.yml:

      requestBody:
        content:
          application/json:
            schema:
              type: string

The generated function has correct signature: myFunc(arg: string).
However, fetcher.ts only handles objects and arrays. The string "foo" is this serialized as {"0":"f","1":o","2":"o"}

Is there any workaround atm?

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