ajv-json-logic
Version:
JSON Logic integration for Ajv validator
46 lines (44 loc) • 1.04 kB
JavaScript
var $schema = "http://json-schema.org/draft-07/schema#";
var $id = "http://jsonlogic.com/schemas/operators/array/map.json";
var title = "map";
var description = "You can use map to perform an action on every member of an array. Note, that inside the logic being used to map, var operations are relative to the array element being worked on.";
var type = "object";
var additionalProperties = false;
var required = [
"map"
];
var properties = {
map: {
$ref: "http://jsonlogic.com/schemas/common/binary-args.json"
}
};
var examples = [
{
map: [
{
"var": "integers"
},
{
"*": [
{
"var": ""
},
2
]
}
]
}
];
var arrayMap = {
$schema: $schema,
$id: $id,
title: title,
description: description,
type: type,
additionalProperties: additionalProperties,
required: required,
properties: properties,
examples: examples
};
export { $id, $schema, additionalProperties, arrayMap as default, description, examples, properties, required, title, type };
//# sourceMappingURL=map.json.js.map