ajv-json-logic
Version:
JSON Logic integration for Ajv validator
53 lines (51 loc) • 999 B
JavaScript
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
};
export { $id, $schema, additionalProperties, arrayMerge as default, description, examples, properties, required, title, type };
//# sourceMappingURL=merge.json.js.map