ajv-json-logic
Version:
JSON Logic integration for Ajv validator
70 lines (66 loc) • 1.31 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var $schema = "http://json-schema.org/draft-07/schema#";
var $id = "http://jsonlogic.com/schemas/operators/logic/and.json";
var title = "and";
var description = "and can be used for simple boolean tests, with 1 or more arguments. At a more sophisticated level, and returns the first falsy argument, or the last argument.";
var type = "object";
var additionalProperties = false;
var required = [
"and"
];
var properties = {
and: {
$ref: "http://jsonlogic.com/schemas/common/one-or-more-args.json"
}
};
var examples = [
{
and: [
true,
true
]
},
{
and: [
true,
false
]
},
{
and: [
true,
"a",
3
]
},
{
and: [
true,
"",
3
]
}
];
var logicAnd = {
$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 = logicAnd;
exports.description = description;
exports.examples = examples;
exports.properties = properties;
exports.required = required;
exports.title = title;
exports.type = type;
//# sourceMappingURL=and.json.cjs.map