Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

work on kschema #58

Draft
wants to merge 8 commits into
base: v4
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/docs/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Kaito is a seriously good HTTP Server Framework for TypeScript. It works with ma

### Features

- ✍ Built in schema support with [Zod](https://zod.dev)
- 🪶 Zero runtime dependencies
- ✍ Batteries-included OpenAPI support with runtime validation
- 🧑‍💻 Insane TypeScript support, with full e2e type safety to your client
- ⚡ Stupidly fast, built for performance and is often many times faster than other frameworks
- 💨 Very intuitive & composable API, only need to learn a few concepts and the rest falls into place
Expand Down
1,538 changes: 1,538 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
"zod": "^3.24.1"
},
"dependencies": {
"zod-openapi": "^4.2.3"
"openapi3-ts": "^4.4.0"
}
}
14 changes: 7 additions & 7 deletions packages/core/src/router/router.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import {z, type ZodTypeDef} from 'zod';
import {
createDocument,
type ZodOpenApiContentObject,
type ZodOpenApiOperationObject,
type ZodOpenApiPathsObject,
} from 'zod-openapi';
import 'zod-openapi/extend';
// import {
// createDocument,
// type ZodOpenApiContentObject,
// type ZodOpenApiOperationObject,
// type ZodOpenApiPathsObject,
// } from 'zod-openapi';
// import 'zod-openapi/extend';
import type {KaitoConfig} from '../create.ts';
import {KaitoError, WrappedError} from '../error.ts';
import {KaitoHead} from '../head.ts';
Expand Down
Loading
Loading