ajv-json-logic
Version:
JSON Logic integration for Ajv validator
76 lines (72 loc) • 1.56 kB
JavaScript
'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/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
};
exports.$id = $id;
exports.$schema = $schema;
exports.additionalProperties = additionalProperties;
exports.default = arraySome;
exports.description = description;
exports.examples = examples;
exports.properties = properties;
exports.required = required;
exports.title = title;
exports.type = type;
//# sourceMappingURL=some.json.cjs.map