UNPKG

ajv-json-logic

Version:
63 lines (61 loc) 1.3 kB
var $schema = "http://json-schema.org/draft-07/schema#"; var $id = "http://jsonlogic.com/schemas/operators/array/some.json"; var title = "some"; var description = "These operations take an array, and perform a test on each member of that array.\nThe most interesting part of these operations is that inside the test code, var operations are relative to the array element being tested.\nIt can be useful to use {\"var\":\"\"} to get the entire array element within the test."; var type = "object"; var additionalProperties = false; var required = [ "some" ]; var properties = { some: { $ref: "http://jsonlogic.com/schemas/common/binary-args.json" } }; var examples = [ { some: [ [ -1, 0, 1 ], { ">": [ { "var": "" }, 0 ] } ] }, { some: [ { "var": "pies" }, { "==": [ { "var": "filling" }, "apple" ] } ] } ]; var arraySome = { $schema: $schema, $id: $id, title: title, description: description, type: type, additionalProperties: additionalProperties, required: required, properties: properties, examples: examples }; export { $id, $schema, additionalProperties, arraySome as default, description, examples, properties, required, title, type }; //# sourceMappingURL=some.json.js.map