ajv-json-logic
Version:
JSON Logic integration for Ajv validator
32 lines (30 loc) • 838 B
JavaScript
var $schema = "http://json-schema.org/draft-07/schema#";
var $id = "http://jsonlogic.com/schemas/common/binary-args.json";
var title = "Binary Arg";
var description = "Up to two args of valid JSON Logic data source.";
var oneOf = [
{
title: "Array",
description: "An array with one or two elements.",
type: "array",
minItems: 1,
maxItems: 2,
items: {
$ref: "http://jsonlogic.com/schemas/common/any.json"
}
},
{
$ref: "http://jsonlogic.com/schemas/common/any-wo-array.json",
title: "Single Arg",
description: "Note: binary operators can also take a single, non array argument:"
}
];
var binaryArgs = {
$schema: $schema,
$id: $id,
title: title,
description: description,
oneOf: oneOf
};
export { $id, $schema, binaryArgs as default, description, oneOf, title };
//# sourceMappingURL=binary-args.json.js.map