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