import { ZodFirstPartyTypeKind as n } from "../../../../../../zod@3.24.4/node_modules/zod/lib/index.js";
import { setResponseValueAndErrors as m } from "../errorMessages.js";
import { parseDef as r } from "../parseDef.js";
function h(t, e) {
  const a = {
    type: "array"
  };
  return t.type?._def && t.type?._def?.typeName !== n.ZodAny && (a.items = r(t.type._def, {
    ...e,
    currentPath: [...e.currentPath, "items"]
  })), t.minLength && m(a, "minItems", t.minLength.value, t.minLength.message, e), t.maxLength && m(a, "maxItems", t.maxLength.value, t.maxLength.message, e), t.exactLength && (m(a, "minItems", t.exactLength.value, t.exactLength.message, e), m(a, "maxItems", t.exactLength.value, t.exactLength.message, e)), a;
}
export {
  h as parseArrayDef
};
//# sourceMappingURL=array.js.map
