ajv-json-logic
Version:
JSON Logic integration for Ajv validator
38 lines (35 loc) • 1.15 kB
JavaScript
import allOperators from './all-operators.json.js';
import allTypesWoArray from './all-types-wo-array.json.js';
import allTypes from './all-types.json.js';
import anyWoArray from './any-wo-array.json.js';
import any from './any.json.js';
import binaryArgs from './binary-args.json.js';
import noLogicObject from './no-logic-object.json.js';
import oneOrMoreArgs from './one-or-more-args.json.js';
import pointer from './pointer.json.js';
import trinaryArgs from './trinary-args.json.js';
import unaryArg from './unary-arg.json.js';
import varSchema from './var.json.js';
// Common schemas index
const commonSchemas = [
any,
anyWoArray,
allTypes,
allTypesWoArray,
binaryArgs,
trinaryArgs,
unaryArg,
oneOrMoreArgs,
varSchema,
pointer,
noLogicObject,
allOperators,
];
// For CommonJS compatibility
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
module.exports = commonSchemas;
module.exports.default = commonSchemas;
}
// see https://github.com/axa-ch/json-logic-js/tree/master/schemas/common
export { commonSchemas as default };
//# sourceMappingURL=index.js.map