ajv-json-logic
Version:
JSON Logic integration for Ajv validator
62 lines (58 loc) • 1.31 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
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
};
exports.$id = $id;
exports.$schema = $schema;
exports.additionalProperties = additionalProperties;
exports.default = miscMethod;
exports.description = description;
exports.examples = examples;
exports.properties = properties;
exports.required = required;
exports.title = title;
exports.type = type;
//# sourceMappingURL=method.json.cjs.map