UNPKG

ajv-json-logic

Version:
62 lines (58 loc) 1.25 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var $schema = "http://json-schema.org/draft-07/schema#"; var $id = "http://jsonlogic.com/schemas/operators/arithmetic/add.json"; var title = "+"; var description = "Addition. Because addition is associative, it happily take as many args as you want. Passing just one argument to + casts it to a number."; var type = "object"; var additionalProperties = false; var required = [ "+" ]; var properties = { "+": { $ref: "http://jsonlogic.com/schemas/common/one-or-more-args.json" } }; var examples = [ { "+": [ 4, 2 ] }, { "+": [ 2, 2, 2, 2, 2 ] }, { "+": "3.14" } ]; var arithmeticAdd = { $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 = arithmeticAdd; exports.description = description; exports.examples = examples; exports.properties = properties; exports.required = required; exports.title = title; exports.type = type; //# sourceMappingURL=add.json.cjs.map