Skip to content

Commit

Permalink
Merge pull request #458 from kubb-project/456-incorrect-response-type…
Browse files Browse the repository at this point in the history
…-promiseany-on-the-generated-axios-requests

fix: fallback on 2xx instead of hardcoded 200 for the ResponseSchema
  • Loading branch information
stijnvanhulle authored Oct 8, 2023
2 parents 29d57bd + 84686f0 commit d628687
Show file tree
Hide file tree
Showing 35 changed files with 642 additions and 675 deletions.
6 changes: 5 additions & 1 deletion examples/typescript/kubb.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ export default defineConfig({
hooks: {
done: ['prettier --write "**/*.{ts,tsx}"', 'eslint --fix ./src/gen'],
},
plugins: [createSwagger({ validate: false }), createSwaggerTS({ output: 'models', enumType: 'enum' })],
plugins: [
createSwagger({ validate: false }),
createSwaggerTS({ output: 'models.ts', enumType: 'enum' }),
// createSwaggerTS({ output: 'models', enumType: 'enum' }),
],
})
Loading

1 comment on commit d628687

@vercel
Copy link

@vercel vercel bot commented on d628687 Oct 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

kubb – ./

kubb-kubb.vercel.app
kubb-git-main-kubb.vercel.app
www.kubb.dev
kubb.dev

Please sign in to comment.