@unified-product-graph/core 0.10.0 → 0.10.1

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/dist/index.cjs CHANGED
@@ -18250,6 +18250,7 @@ for (const fw of UPG_FRAMEWORKS) {
18250
18250
 
18251
18251
  // src/grammar/validate.ts
18252
18252
  var crossProductEdgeTypeSet = new Set(UPG_CROSS_EDGE_TYPES);
18253
+ var withinProductEdgeTypeSet = new Set(Object.keys(UPG_EDGE_CATALOG));
18253
18254
  var CONTENT_DEPTH_WARNING_RULES = /* @__PURE__ */ new Set([
18254
18255
  "property-type",
18255
18256
  "property-enum",
@@ -18352,7 +18353,7 @@ function validateUPGDocument(doc) {
18352
18353
  if (!e.id || typeof e.id !== "string") {
18353
18354
  errors.push({ path: `${path}.id`, message: "Edge id is required and must be a string" });
18354
18355
  }
18355
- if (typeof e.type === "string" && crossProductEdgeTypeSet.has(e.type)) {
18356
+ if (typeof e.type === "string" && crossProductEdgeTypeSet.has(e.type) && !withinProductEdgeTypeSet.has(e.type)) {
18356
18357
  errors.push({
18357
18358
  path: `${path}.type`,
18358
18359
  message: `Cross-product edge type "${e.type}" must live in portfolio.cross_edges[], not product edges[].`
@@ -28583,7 +28584,7 @@ function isCanonical(text) {
28583
28584
  }
28584
28585
 
28585
28586
  // src/index.ts
28586
- var UPG_VERSION = "0.10.0";
28587
+ var UPG_VERSION = "0.10.1";
28587
28588
  var UPG_FORMAT_VERSION = "0.4.0";
28588
28589
  var MARKDOWN_FORMAT_VERSION = "0.1";
28589
28590
  var UPG_TYPES = getTypes();