source: imaps-frontend/node_modules/ajv/dist/vocabularies/applicator/not.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 773 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const util_1 = require("../../compile/util");
4const def = {
5 keyword: "not",
6 schemaType: ["object", "boolean"],
7 trackErrors: true,
8 code(cxt) {
9 const { gen, schema, it } = cxt;
10 if ((0, util_1.alwaysValidSchema)(it, schema)) {
11 cxt.fail();
12 return;
13 }
14 const valid = gen.name("valid");
15 cxt.subschema({
16 keyword: "not",
17 compositeRule: true,
18 createErrors: false,
19 allErrors: false,
20 }, valid);
21 cxt.failResult(valid, () => cxt.reset(), () => cxt.error());
22 },
23 error: { message: "must NOT be valid" },
24};
25exports.default = def;
26//# sourceMappingURL=not.js.map
Note: See TracBrowser for help on using the repository browser.