KUBB_ADAPTER_REQUIRED: Adapter required
Code: KUBB_ADAPTER_REQUIRED
Level: error
An action needs an adapter but none is configured.
What happened
The adapter turns your spec into the AST that plugins generate from. It has to be set before any plugin runs. This diagnostic fires when the config has no adapter.
How to fix it
Set adapter in kubb.config.ts.
typescript
import { } from 'kubb'
import { } from '@kubb/adapter-oas'
export default ({
: { : './petStore.yaml' },
: { : './src/gen' },
: (),
: [/* ... */],
})Example output
text
[KUBB_ADAPTER_REQUIRED]: An adapter is required, but none is configured.
fix: Set `adapter` in kubb.config.ts (for example `adapterOas()`).
see: https://kubb.dev/docs/5.x/reference/diagnostics/kubb-adapter-required