@firestartr/cli 1.45.0-snapshot-16 → 1.45.0-snapshot-18
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/build/index.js +7 -6
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -274531,7 +274531,7 @@ Check the following Claims to ensure that the tfStateKey is unique:
|
|
|
274531
274531
|
function validateReferencesInCR(cr, crs) {
|
|
274532
274532
|
if (isCatalogEntity(cr)) {
|
|
274533
274533
|
if (getConfiguredProvider() === AllowedProviders.catalog) {
|
|
274534
|
-
validateCatalogEntities(cr, crs);
|
|
274534
|
+
//validateCatalogEntities(cr, crs);
|
|
274535
274535
|
//console.log(`Skip validation ${cr.name}`);
|
|
274536
274536
|
}
|
|
274537
274537
|
}
|
|
@@ -274546,9 +274546,10 @@ function throwIfRefNotFound(crs, refObj, refStr, crStr) {
|
|
|
274546
274546
|
}
|
|
274547
274547
|
}
|
|
274548
274548
|
function throwIfRefNotFoundInCatalog(crs, refObj, refStr, crStr) {
|
|
274549
|
-
const
|
|
274550
|
-
|
|
274551
|
-
|
|
274549
|
+
const catalogEntityName = extractNameCatalogEntity(refObj);
|
|
274550
|
+
const ref = `${refObj.kind}-${catalogEntityName.toLowerCase()}`;
|
|
274551
|
+
if (!crs[ref]) {
|
|
274552
|
+
throw new Error(`Error: Reference "${ref}" in claim for ${crStr} not found`);
|
|
274552
274553
|
}
|
|
274553
274554
|
}
|
|
274554
274555
|
/*
|
|
@@ -274591,8 +274592,8 @@ function validateNonCatalogEntities(cr, crs) {
|
|
|
274591
274592
|
*/
|
|
274592
274593
|
function validateCatalogEntities(cr, crs) {
|
|
274593
274594
|
for (const rel of WELL_KNOWN_RELATIONS_CATALOG[cr.kind]) {
|
|
274594
|
-
if (
|
|
274595
|
-
const refObject =
|
|
274595
|
+
if (_.has(cr, rel)) {
|
|
274596
|
+
const refObject = _.get(cr, rel);
|
|
274596
274597
|
const catalogEntityName = extractNameCatalogEntity(cr);
|
|
274597
274598
|
if (!Array.isArray(refObject)) {
|
|
274598
274599
|
const propertyRef = createCatalogEntityPropertyRef(refObject);
|