gameStatusUpdate/node_modules/ajv-keywords/dist/definitions/prohibited.js

23 lines
673 B
JavaScript
Raw Normal View History

2024-09-18 08:27:46 -07:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function getDef() {
return {
keyword: "prohibited",
type: "object",
schemaType: "array",
macro: function (schema) {
if (schema.length === 0)
return true;
if (schema.length === 1)
return { not: { required: schema } };
return { not: { anyOf: schema.map((p) => ({ required: [p] })) } };
},
metaSchema: {
type: "array",
items: { type: "string" },
},
};
}
exports.default = getDef;
module.exports = getDef;
//# sourceMappingURL=prohibited.js.map