Skip to content

Input not taking JSON as valid data #841

Open
@Zino-ctrlZ

Description

@Zino-ctrlZ

Hi, I'm making use of Converter.convert from openapi-to-postmanv2 in typescript running node20. The index.d.ts file has the data property in Input set to string.
i.e in the build file,

export interface Input {
    type: "file" | "string" | "json";
    data: string;
}

so I'm getting an error when trying to pass an object to in in the data property, so the below fails

Converter.convert({type: "json", data:"data_as_json"},{}, ()=>{})

is there no support for passing data as json in node ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions