Skip to content

Crash Report - **Error**: missing input - which OpenAPI specification should we use to generate your output? #2245

Open
@yotamishak

Description

@yotamishak

happens with fresh install (0.77.0)

command to run

bun openapi-ts

openapi.ts

import { createClient } from "@hey-api/openapi-ts";

createClient({
	input: "https://get.heyapi.dev/hey-api/backend",
	output: "src/client",
});

Error: missing input - which OpenAPI specification should we use to generate your output?

Stack Trace:

Error: missing input - which OpenAPI specification should we use to generate your output?
    at /Users/yotam/dev/swagz/node_modules/@hey-api/openapi-ts/dist/index.cjs:42:73949
    at Array.map (<anonymous>)
    at xm (/Users/yotam/dev/swagz/node_modules/@hey-api/openapi-ts/dist/index.cjs:42:73723)
    at async Sq (/Users/yotam/dev/swagz/node_modules/@hey-api/openapi-ts/dist/index.cjs:1338:4474)
    at async start (/Users/yotam/dev/swagz/node_modules/@hey-api/openapi-ts/bin/index.cjs:131:21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🔥Something isn't workingprioritized 🚚This issue has been prioritized and will be worked on soon

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions