#6607·zod

Missing Class information on `z.instanceof().properties()`

Author: brettz9Created Sep 16, 2026Updated Sep 16, 2026

In attempting to serialize:

z.instanceof(URL).properties({
  protocol: z.literal("https:"),
  hostname: z.string().regex(z.regexes.domain),
})

...I find that there is no ._zod.bag.Class on the schema as there is when no properties are present.

Is this intentional?