source: imaps-frontend/node_modules/ajv-keywords/dist/definitions/allRequired.js

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

F4 Finalna Verzija

  • Property mode set to 100644
File size: 605 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3function getDef() {
4 return {
5 keyword: "allRequired",
6 type: "object",
7 schemaType: "boolean",
8 macro(schema, parentSchema) {
9 if (!schema)
10 return true;
11 const required = Object.keys(parentSchema.properties);
12 if (required.length === 0)
13 return true;
14 return { required };
15 },
16 dependencies: ["properties"],
17 };
18}
19exports.default = getDef;
20module.exports = getDef;
21//# sourceMappingURL=allRequired.js.map
Note: See TracBrowser for help on using the repository browser.