ajv-json-logic
Version:
JSON Logic integration for Ajv validator
41 lines (37 loc) • 985 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var $schema = "http://json-schema.org/draft-07/schema#";
var $id = "http://jsonlogic.com/schemas/common/unary-arg.json";
var title = "Unary Arg";
var description = "Only one valid JSON Logic data source.";
var oneOf = [
{
title: "Single Array",
description: "An array with just one element.",
type: "array",
minItems: 1,
maxItems: 1,
items: {
$ref: "http://jsonlogic.com/schemas/common/any.json"
}
},
{
$ref: "http://jsonlogic.com/schemas/common/any-wo-array.json",
title: "Single Arg",
description: "Note: unary operators can also take a single, non array argument:"
}
];
var unaryArg = {
$schema: $schema,
$id: $id,
title: title,
description: description,
oneOf: oneOf
};
exports.$id = $id;
exports.$schema = $schema;
exports.default = unaryArg;
exports.description = description;
exports.oneOf = oneOf;
exports.title = title;
//# sourceMappingURL=unary-arg.json.cjs.map