@living-architecture/riviere-query 0.2.2 → 0.2.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"graph-validation.d.ts","sourceRoot":"","sources":["../src/graph-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAmB,MAAM,qCAAqC,CAAA;AACxF,OAAO,KAAK,EAAE,WAAW,EAAmB,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAOpF,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,gBAAgB,CAwBnE;AA6CD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,YAAY,GAAG,WAAW,EAAE,CAUzE"}
1
+ {"version":3,"file":"graph-validation.d.ts","sourceRoot":"","sources":["../src/graph-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAmB,MAAM,qCAAqC,CAAA;AACxF,OAAO,KAAK,EAAE,WAAW,EAAmB,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAOpF,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,GAAG,gBAAgB,CAwBnE;AAyBD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,YAAY,GAAG,WAAW,EAAE,CAUzE"}
@@ -38,24 +38,6 @@ function validateCustomTypes(graph) {
38
38
  message: `Custom type '${customTypeName}' is not defined in metadata.customTypes`,
39
39
  code: 'INVALID_TYPE',
40
40
  });
41
- return;
42
- }
43
- const typeDefinition = customTypes[customTypeName];
44
- const requiredProperties = typeDefinition?.requiredProperties;
45
- const hasNoRequiredProperties = requiredProperties === undefined;
46
- if (hasNoRequiredProperties)
47
- return;
48
- const requiredPropertyNames = Object.keys(requiredProperties);
49
- const componentMetadata = component.metadata;
50
- const missingProperties = componentMetadata
51
- ? requiredPropertyNames.filter((prop) => !(prop in componentMetadata))
52
- : requiredPropertyNames;
53
- if (missingProperties.length > 0) {
54
- errors.push({
55
- path: `/components/${index}`,
56
- message: `Custom component is missing required properties for type '${customTypeName}': ${missingProperties.join(', ')}`,
57
- code: 'INVALID_TYPE',
58
- });
59
41
  }
60
42
  });
61
43
  return errors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@living-architecture/riviere-query",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,6 +24,6 @@
24
24
  "dependencies": {
25
25
  "tslib": "^2.3.0",
26
26
  "zod": "^4.2.1",
27
- "@living-architecture/riviere-schema": "0.2.0"
27
+ "@living-architecture/riviere-schema": "0.2.2"
28
28
  }
29
29
  }