Initial commit
This commit is contained in:
19
node_modules/ajv-draft-04/dist/vocabulary/validation/limitNumberExclusive.js
generated
vendored
Normal file
19
node_modules/ajv-draft-04/dist/vocabulary/validation/limitNumberExclusive.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const KWDs = {
|
||||
exclusiveMaximum: "maximum",
|
||||
exclusiveMinimum: "minimum",
|
||||
};
|
||||
const def = {
|
||||
keyword: Object.keys(KWDs),
|
||||
type: "number",
|
||||
schemaType: "boolean",
|
||||
code({ keyword, parentSchema }) {
|
||||
const limitKwd = KWDs[keyword];
|
||||
if (parentSchema[limitKwd] === undefined) {
|
||||
throw new Error(`${keyword} can only be used with ${limitKwd}`);
|
||||
}
|
||||
},
|
||||
};
|
||||
exports.default = def;
|
||||
//# sourceMappingURL=limitNumberExclusive.js.map
|
||||
Reference in New Issue
Block a user