UNPKG

ajv-json-logic

Version:
59 lines (55 loc) 1.29 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); 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 }; exports.$id = $id; exports.$schema = $schema; exports.additionalProperties = additionalProperties; exports.default = arrayMap; exports.description = description; exports.examples = examples; exports.properties = properties; exports.required = required; exports.title = title; exports.type = type; //# sourceMappingURL=map.json.cjs.map