Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
astahmer committed Nov 8, 2024
1 parent 344fce0 commit be0ba5f
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 18 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-actors-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"typed-openapi": minor
---

Bump @sinclair/typebox-codegen version
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.10.3",
"@sinclair/typebox-codegen": "^0.10.5",
"arktype": "1.0.18-alpha",
"cac": "^6.7.14",
"openapi3-ts": "^4.1.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import z from "zod";
import { z } from "zod";

export type Port = z.infer<typeof Port>;
export const Port = z.object({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const types = scope({
response: "unknown",
},
__ENDPOINTS_END__: {},
}).compile();
}).export();

export type __ENDPOINTS_START__ = typeof __ENDPOINTS_START__.infer;
export const __ENDPOINTS_START__ = types.__ENDPOINTS_START__;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import z from "zod";
import { z } from "zod";

export type get_Get_users = typeof get_Get_users;
export const get_Get_users = {
Expand Down
2 changes: 1 addition & 1 deletion packages/typed-openapi/tests/snapshots/petstore.arktype.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export const types = scope({
response: "unknown",
},
__ENDPOINTS_END__: {},
}).compile();
}).export();

export type Order = typeof Order.infer;
export const Order = types.Order;
Expand Down
2 changes: 1 addition & 1 deletion packages/typed-openapi/tests/snapshots/petstore.zod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import z from "zod";
import { z } from "zod";

export type Order = z.infer<typeof Order>;
export const Order = z.object({
Expand Down
55 changes: 43 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit be0ba5f

Please sign in to comment.