UNPKG

ajv-json-logic

Version:
49 lines (47 loc) 1.05 kB
var $schema = "http://json-schema.org/draft-07/schema#"; var $id = "http://jsonlogic.com/schemas/operators/misc/method.json"; var title = "method"; var description = "If your rule needs to call a method on an object, you can use the built-in method operation.\n You can also pass an array of arguments into the method."; var type = "object"; var additionalProperties = false; var required = [ "method" ]; var properties = { method: { $ref: "http://jsonlogic.com/schemas/common/one-or-more-args.json" } }; var examples = [ { method: [ { "var": "today" }, "getDay" ] }, { method: [ "automaton", "slice", [ 2, 8 ] ] } ]; var miscMethod = { $schema: $schema, $id: $id, title: title, description: description, type: type, additionalProperties: additionalProperties, required: required, properties: properties, examples: examples }; export { $id, $schema, additionalProperties, miscMethod as default, description, examples, properties, required, title, type }; //# sourceMappingURL=method.json.js.map