import { assert } from "../../../util";
function $jsonSchema(_, schema, options) {
  assert(
    !!options?.jsonSchemaValidator,
    "$jsonSchema: must configure 'jsonSchemaValidator' option to this operator."
  );
  const validate = options?.jsonSchemaValidator(schema);
  return (obj) => validate(obj);
}
export {
  $jsonSchema
};
