ajv-json-logic
Version:
JSON Logic integration for Ajv validator
53 lines (51 loc) • 1.02 kB
JavaScript
var $schema = "http://json-schema.org/draft-07/schema#";
var $id = "http://jsonlogic.com/schemas/operators/numeric/lessEqual.json";
var title = "<=";
var description = "Less than or equal to. You can use a special case of <= to test that one value is inclusively between two others.";
var type = "object";
var additionalProperties = false;
var required = [
"<="
];
var properties = {
"<=": {
$ref: "http://jsonlogic.com/schemas/common/trinary-args.json"
}
};
var examples = [
{
"<=": [
1,
1
]
},
{
"<=": [
1,
2,
3
]
},
{
"<=": [
0,
{
"var": "temp"
},
100
]
}
];
var numericLessEqual = {
$schema: $schema,
$id: $id,
title: title,
description: description,
type: type,
additionalProperties: additionalProperties,
required: required,
properties: properties,
examples: examples
};
export { $id, $schema, additionalProperties, numericLessEqual as default, description, examples, properties, required, title, type };
//# sourceMappingURL=lessEqual.json.js.map