Skip to content

Commit

Permalink
Update codegen to newest version to support newer validation runtime …
Browse files Browse the repository at this point in the history
…versions
  • Loading branch information
x3 authored and astahmer committed Aug 4, 2024
1 parent 4876815 commit aaf87de
Show file tree
Hide file tree
Showing 8 changed files with 5,474 additions and 4,104 deletions.
2 changes: 1 addition & 1 deletion packages/typed-openapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@changesets/cli": "^2.26.2",
"@sinclair/typebox-codegen": "^0.8.5",
"@sinclair/typebox-codegen": "^0.10.3",
"arktype": "1.0.18-alpha",
"cac": "^6.7.14",
"openapi3-ts": "^4.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/typed-openapi/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const inferByRuntime = {
arktype: (input: string) => `${input}["infer"]`,
"io-ts": (input: string) => `t.TypeOf<${input}>`,
typebox: (input: string) => `Static<${input}>`,
valibot: (input: string) => `v.Output<${input}>`,
valibot: (input: string) => `v.InferOutput<${input}>`,
yup: (input: string) => `y.InferType<${input}>`,
zod: (input: string) => `z.infer<${input}>`,
};
Expand Down
Loading

0 comments on commit aaf87de

Please sign in to comment.