UNPKG

ajv-json-logic

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