We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f52ae28 commit 5181f9bCopy full SHA for 5181f9b
1 file changed
packages/opencode/src/config/provider.ts
@@ -1,12 +1,10 @@
1
import { Schema } from "effect"
2
-import z from "zod"
3
-import { zod, ZodOverride } from "@/util/effect-zod"
+import { zod } from "@/util/effect-zod"
4
import { withStatics } from "@/util/schema"
5
6
-// Positive integer preserving exact Zod JSON Schema (type: integer, exclusiveMinimum: 0).
7
-const PositiveInt = Schema.Number.annotate({
8
- [ZodOverride]: z.number().int().positive(),
9
-})
+// Positive integer: emits JSON Schema `type: integer, exclusiveMinimum: 0`
+// via the effect-zod walker's well-known refinement translation.
+const PositiveInt = Schema.Number.check(Schema.isInt()).check(Schema.isGreaterThan(0))
10
11
export const Model = Schema.Struct({
12
id: Schema.optional(Schema.String),
0 commit comments