PHP 8.2.30
Preview: validator.js Size: 316 B
/home/byroehnu/.trash/node_modules11/flutterwave-node-v3/utils/validator.js

const joi = require('joi');
const { validationError } = require('./error');

exports.validator = (schema, data) => {
  const validation = schema.validate(data);
  const { _, error } = validation;

  if (error) {
    const message = error.details.map((x) => x.message);
    throw new validationError(message);
  }
};

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
1.29 KB lrw-r--r-- 2026-02-21 00:53:34
Edit Download
436 B lrw-r--r-- 2026-02-21 00:53:38
Edit Download
817 B lrw-r--r-- 2026-02-21 00:53:38
Edit Download
350 B lrw-r--r-- 2026-02-21 00:54:22
Edit Download
316 B lrw-r--r-- 2026-02-21 00:54:24
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).