UNPKG

ajv-json-logic

Version:
56 lines (54 loc) 1.05 kB
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 }; export { $id, $schema, additionalProperties, logicOr as default, description, examples, properties, required, title, type }; //# sourceMappingURL=or.json.js.map