source: trip-planner-front/node_modules/ajv/dist/compile/rules.js@ 84d0fbb

Last change on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 918 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.getRules = exports.isJSONType = void 0;
4const _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
5const jsonTypes = new Set(_jsonTypes);
6function isJSONType(x) {
7 return typeof x == "string" && jsonTypes.has(x);
8}
9exports.isJSONType = isJSONType;
10function getRules() {
11 const groups = {
12 number: { type: "number", rules: [] },
13 string: { type: "string", rules: [] },
14 array: { type: "array", rules: [] },
15 object: { type: "object", rules: [] },
16 };
17 return {
18 types: { ...groups, integer: true, boolean: true, null: true },
19 rules: [{ rules: [] }, groups.number, groups.string, groups.array, groups.object],
20 post: { rules: [] },
21 all: {},
22 keywords: {},
23 };
24}
25exports.getRules = getRules;
26//# sourceMappingURL=rules.js.map
Note: See TracBrowser for help on using the repository browser.