ajv-json-logic
Version:
JSON Logic integration for Ajv validator
66 lines (62 loc) • 1.25 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var $schema = "http://json-schema.org/draft-07/schema#";
var $id = "http://jsonlogic.com/schemas/operators/array/merge.json";
var title = "merge";
var description = "Takes one or more arrays, and merges them into one array. If arguments aren’t arrays, they get cast to arrays.";
var type = "object";
var additionalProperties = false;
var required = [
"merge"
];
var properties = {
merge: {
$ref: "http://jsonlogic.com/schemas/common/one-or-more-args.json"
}
};
var examples = [
{
merge: [
[
1,
2
],
[
3,
4
]
]
},
{
merge: [
1,
2,
[
3,
4
]
]
}
];
var arrayMerge = {
$schema: $schema,
$id: $id,
title: title,
description: description,
type: type,
additionalProperties: additionalProperties,
required: required,
properties: properties,
examples: examples
};
exports.$id = $id;
exports.$schema = $schema;
exports.additionalProperties = additionalProperties;
exports.default = arrayMerge;
exports.description = description;
exports.examples = examples;
exports.properties = properties;
exports.required = required;
exports.title = title;
exports.type = type;
//# sourceMappingURL=merge.json.cjs.map