@izara_project/izara-core-library-service-schemas 1.0.109 → 1.0.111

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@izara_project/izara-core-library-service-schemas",
3
- "version": "1.0.109",
3
+ "version": "1.0.111",
4
4
  "description": "Schemas for the service and objects it controls",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,8 +31,8 @@
31
31
  "@izara_project/izara-core-library-logger": "^1.0.8",
32
32
  "@izara_project/izara-core-library-s3": "^1.0.5",
33
33
  "@izara_project/izara-core-library-sqs": "^1.0.5",
34
- "@izara_project/izara-shared-core": "^1.0.8",
35
- "@izara_project/izara-shared-service-schemas": "^1.0.35",
34
+ "@izara_project/izara-shared-core": "^1.0.9",
35
+ "@izara_project/izara-shared-service-schemas": "^1.0.36",
36
36
  "glob": "^13.0.0",
37
37
  "lodash": "^4.17.21",
38
38
  "read-yaml-file": "^2.1.0"
@@ -19,7 +19,7 @@ along with this program.If not, see < http://www.gnu.org/licenses/>.
19
19
 
20
20
  import { NoRetryError, inMemoryCacheLib } from '@izara_project/izara-core-library-core';
21
21
  import { validateObjType } from '@izara_project/izara-shared-service-schemas';
22
-
22
+ import { objectHash as hash } from '@izara_project/izara-shared-core';
23
23
  import deliminatorTree from './libs/DeliminatorTree.js';
24
24
  import getSchema from './GetObjectSchema.js';
25
25
  import utils from './Utils.js';
@@ -1212,6 +1212,18 @@ async function validateLocalSchema(_izContext, schemasPath, serviceConfigPath) {
1212
1212
  validateStatus.referenceErrors.push(`Relationship:${relTagName} /links/${linkIdx} /from/objType > Not found objectSchema ${JSON.stringify(link.to.objType)} `);
1213
1213
  }
1214
1214
  }
1215
+
1216
+ if (fromObjectSchema.hasOwnProperty("generatedBy") || toObjectSchema.hasOwnProperty("generatedBy")) {
1217
+ if (fromObjectSchema.generatedBy === "searchResultGenerated" || toObjectSchema.generatedBy === "searchResultGenerated") {
1218
+ let storageResourceTagsLink = link.storageResourceTags
1219
+ for (const storageResourceTagLink of storageResourceTagsLink) {
1220
+ if (relData.storageResources[storageResourceTagLink].storageType !== consts.STORAGE_TYPES.lambda) {
1221
+ validateStatus.status = false;
1222
+ validateStatus.validateErrors.push(`Relationship:${relTagName} storageResource with generateBy:searchResultGenerated must be lambda type`);
1223
+ }
1224
+ }
1225
+ }
1226
+ }
1215
1227
  })
1216
1228
  )
1217
1229
  // validate duplicate link