ajv-json-logic
Version:
JSON Logic integration for Ajv validator
50 lines (46 loc) • 1.32 kB
JavaScript
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var $schema = "http://json-schema.org/draft-07/schema#";
var $id = "http://jsonlogic.com/schemas/operators/misc/in.json";
var title = "in";
var description = "If the second argument is an array, tests that the first argument is a member of the array: {\"in\":[ \"Ringo\", [\"John\", \"Paul\", \"George\", \"Ringo\"] ]}.\nIf the second argument is a string, tests that the first argument is a substring: {\"in\":[\"Spring\", \"Springfield\"]}.";
var type = "object";
var additionalProperties = false;
var required = [
"in"
];
var properties = {
"in": {
$ref: "http://jsonlogic.com/schemas/common/binary-args.json"
}
};
var examples = [
{
"in": [
"Spring",
"Springfield"
]
}
];
var miscIn = {
$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 = miscIn;
exports.description = description;
exports.examples = examples;
exports.properties = properties;
exports.required = required;
exports.title = title;
exports.type = type;
//# sourceMappingURL=in.json.cjs.map