Open Studio

KUBB_INPUT_REQUIRED: Input required

The KUBB_INPUT_REQUIRED diagnostic fires when an adapter is configured but no input was provided.

Code: KUBB_INPUT_REQUIRED Level: error

An adapter is configured but no input was provided, so there is nothing to parse.

What happened ​

The adapter needs a source document, read from input: a file path, a URL, an inline spec, or a parsed object. This diagnostic fires when input is not set, or when merging is requested but no documents are passed.

How to fix it ​

Set input to a file path or URL.

kubb.config.ts
input: './petStore.yaml'

Or pass an inline spec or a parsed object.

kubb.config.ts
input: openapiObject

Example ​

kubb.config.ts
import { defineConfig } from 'kubb/config'export defaultdefineConfig({ // input is missingoutput: { path: './src/gen' },plugins: [/* ... */],})

Example output ​

Terminal
[KUBB_INPUT_REQUIRED]: An adapter is configured without an input. fix: Set `input` to a file path, a URL, an inline spec (JSON/YAML string), or a parsed object in your Kubb config. see: https://kubb.dev/docs/5.x/reference/diagnostics/kubb-input-required

See also ​