We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fae784 commit daaa1c7Copy full SHA for daaa1c7
1 file changed
packages/opencode/test/util/effect-zod.test.ts
@@ -848,12 +848,11 @@ describe("util.effect-zod", () => {
848
test("identifier + description propagate through the preprocess wrapper", () => {
849
const Inner = Schema.Struct({
850
x: Schema.optional(Schema.String),
851
+ }).annotate({
852
+ identifier: "WithPreproc",
853
+ description: "A schema with preprocess",
854
+ [ZodPreprocess]: (v: unknown) => v,
855
})
- .annotate({
- identifier: "WithPreproc",
- description: "A schema with preprocess",
- [ZodPreprocess]: (v: unknown) => v,
856
- })
857
const schema = zod(Inner)
858
expect(schema.meta()?.ref).toBe("WithPreproc")
859
expect(schema.meta()?.description).toBe("A schema with preprocess")
0 commit comments