ajv-json-logic
Version:
JSON Logic integration for Ajv validator
69 lines (65 loc) • 1.3 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/or.json";
var title = "or";
var description = "or can be used for simple boolean tests, with 1 or more arguments. At a more sophisticated level, or returns the first truthy argument, or the last argument.";
var type = "object";
var additionalProperties = false;
var required = [
"or"
];
var properties = {
or: {
$ref: "http://jsonlogic.com/schemas/common/one-or-more-args.json"
}
};
var examples = [
{
or: [
true,
false
]
},
{
or: [
false,
true
]
},
{
or: [
false,
"a"
]
},
{
or: [
false,
0,
"a"
]
}
];
var logicOr = {
$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 = logicOr;
exports.description = description;
exports.examples = examples;
exports.properties = properties;
exports.required = required;
exports.title = title;
exports.type = type;
//# sourceMappingURL=or.json.cjs.map