@autofleet/sadot 0.13.0-beta.5 → 0.13.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,11 +6,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const joi_1 = __importDefault(require("joi"));
7
7
  // Schema for validating JSON Schema objects
8
8
  const jsonSchemaValidation = joi_1.default.object().unknown(true);
9
- const entityType = joi_1.default.string().regex(/^[A-Z][a-z]+(?:[A-Z][a-z]+)*$/).required();
10
9
  const validationSchemas = {
11
10
  create: joi_1.default.object({
12
11
  entityId: joi_1.default.string().uuid().required(),
13
- entityType,
12
+ entityType: joi_1.default.string().required(),
14
13
  schema: joi_1.default.object({
15
14
  type: joi_1.default.string().valid('object').required(),
16
15
  properties: joi_1.default.object({
@@ -41,6 +41,7 @@ const ajv = new ajv_1.default({
41
41
  allErrors: true,
42
42
  strict: false, // Disable strict mode to avoid warnings
43
43
  strictTypes: false, // Disable strict type checking
44
+ $data: true, // Enable $data references
44
45
  });
45
46
  (0, ajv_formats_1.default)(ajv);
46
47
  /**
@@ -13,6 +13,7 @@ const metaValidator = new ajv_1.default({
13
13
  allErrors: true,
14
14
  strict: false,
15
15
  strictTypes: false,
16
+ $data: true, // Enable $data references
16
17
  });
17
18
  (0, ajv_formats_1.default)(metaValidator);
18
19
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/sadot",
3
- "version": "0.13.0-beta.5",
3
+ "version": "0.13.0-beta.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -15,6 +15,7 @@ const ajv = new Ajv({
15
15
  allErrors: true,
16
16
  strict: false, // Disable strict mode to avoid warnings
17
17
  strictTypes: false, // Disable strict type checking
18
+ $data: true, // Enable $data references
18
19
  });
19
20
 
20
21
  addFormats(ajv);
@@ -8,6 +8,7 @@ const metaValidator = new Ajv({
8
8
  allErrors: true,
9
9
  strict: false,
10
10
  strictTypes: false,
11
+ $data: true, // Enable $data references
11
12
  });
12
13
  addFormats(metaValidator);
13
14