From e57d618f37d68b37ea2c7093d2afca6b771d73ae Mon Sep 17 00:00:00 2001 From: Bohdan Husak Date: Thu, 19 Dec 2024 07:54:02 -0500 Subject: [PATCH] docs: update plugin-oas no output config in basic tutorial --- docs/tutorials/basic.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/basic.md b/docs/tutorials/basic.md index ff750b4ac..473b942f9 100644 --- a/docs/tutorials/basic.md +++ b/docs/tutorials/basic.md @@ -25,7 +25,7 @@ Set up your `kubb.config.ts` file based on the [Quick start](/guide/quick-start) We will add the plugins [`@kubb/plugin-oas`](/plugins/plugin-oas/) and [`@kubb/plugin-ts`](/plugins/plugin-ts/)(which is dependent on the [`@kubb/plugin-oas`](/plugins/plugin-oas/) plugin). Together these two plugins will generate the TypeScript types. -Next to that, we will also set `output` to false for the [`@kubb/swagger`](/plugins/swagger) plugin because we do not need the plugin to generate the JSON schemas for us. +Next to that, we will also set `generators` to empty array for the [`@kubb/plugin-oas`](/plugins/plugin-oas) plugin because we do not need the plugin to generate the JSON schemas for us. - For the [`@kubb/plugin-ts`](/plugins/plugin-ts/) plugin, we will set the `output` to the `models` folder. @@ -48,7 +48,7 @@ export default defineConfig(() => { plugins: [ pluginOas( { - output: false, + generators: [], validate: true, }, ), @@ -91,7 +91,7 @@ Your `package.json` will look like this: { "name": "your project", "scripts": { - "generate": "kubb generate --config kubb.config.js" + "generate": "kubb generate --config kubb.config.ts" }, "dependencies": { "@kubb/cli": "latest",