UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

22 lines (21 loc) 518 B
import { z as e } from "zod"; import { buildCommonSchema as o } from "../validation.js"; const t = e.string().optional(), l = e.object({ multiple: e.literal(!1) }).and(e.object({ defaultValue: t })), n = e.object({ multiple: e.literal(!0) }).and(e.object({ defaultValue: t.array() })), c = e.object({ validate: e.object({ maxLength: e.number().int().gte(1).optional() }), rows: e.number().int().gte(1).optional() }), i = l.or(n), u = ({ intl: a }) => o(a).and(c).and(i); export { u as default };