Skip to content

Commit

Permalink
bumping schema stream to pick up update with support for zod effects …
Browse files Browse the repository at this point in the history
…(refine etc..)
  • Loading branch information
roodboi committed Jan 3, 2024
1 parent be52750 commit 214b3e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 3 additions & 1 deletion examples/extract_user_stream/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { z } from "zod"

const UserSchema = z.object({
age: z.number(),
name: z.string()
name: z.string().refine(name => name.includes(" "), {
message: "Name must contain a space"
})
})

type User = Partial<z.infer<typeof UserSchema>>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"homepage": "https://github.com/jxnl/instructor-js#readme",
"dependencies": {
"schema-stream": "^1.1.0",
"schema-stream": "1.2.0",
"zod-to-json-schema": "^3.22.3"
},
"peerDependencies": {
Expand Down

0 comments on commit 214b3e1

Please sign in to comment.