import { __exports as r } from "../../../../../../../../_virtual/items2020.js";
import { __require as c } from "../../compile/codegen/index.js";
import { __require as l } from "../../compile/util.js";
import { __require as p } from "../code.js";
import { __require as f } from "./additionalItems.js";
var a;
function g() {
  if (a) return r;
  a = 1, Object.defineProperty(r, "__esModule", { value: !0 });
  const t = c(), s = l(), m = p(), u = f(), n = {
    keyword: "items",
    type: "array",
    schemaType: ["object", "boolean"],
    before: "uniqueItems",
    error: {
      message: ({ params: { len: e } }) => (0, t.str)`must NOT have more than ${e} items`,
      params: ({ params: { len: e } }) => (0, t._)`{limit: ${e}}`
    },
    code(e) {
      const { schema: d, parentSchema: _, it: i } = e, { prefixItems: o } = _;
      i.items = !0, !(0, s.alwaysValidSchema)(i, d) && (o ? (0, u.validateAdditionalItems)(e, o) : e.ok((0, m.validateArray)(e)));
    }
  };
  return r.default = n, r;
}
export {
  g as __require
};
//# sourceMappingURL=items2020.js.map
