© 2026 Hedgehog Software, LLC
.in
const url = type("string") .narrow((s, ctx) => { if (isValidHttpUrl(s)) { return true; } return ctx.mustBe("a valid URL"); }); // FAILS: url.in.toJsonSchema() // EXPECTED: { type: 'string' }