Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feature/37-add-sup…
Browse files Browse the repository at this point in the history
…port-for-automation-activity-wait-csclsroz-233

# Conflicts:
#	@types/lib/metadataTypes/Automation.d.ts.map
#	@types/lib/util/validations.d.ts.map
  • Loading branch information
JoernBerkefeld committed Nov 7, 2024
2 parents dc9baf5 + feecb96 commit 3597bc0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion @types/lib/util/validations.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion lib/util/validations.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ export default async function validation(definition, item, targetDir, codeExtrac
try {
if (customRuleImport) {
customRules = customRuleImport
? await customRuleImport.validation(definition, item, targetDir, Util)
? await customRuleImport.validation(
definition,
item,
targetDir,
Util,
codeExtractItemArr
)
: {};
}
} catch (ex) {
Expand Down Expand Up @@ -67,6 +73,14 @@ export default async function validation(definition, item, targetDir, codeExtrac
// some types do not support folders
return true;
}
const doNotEvaluate = ['automation', 'attributeSet', 'list'];
if (
doNotEvaluate.includes(definition.type) ||
(definition.type === 'asset' && item?.assetType?.name === 'webpage')
) {
// this subtype is not visible in the interface and hence always technically sits in the root
return true;
}

return folderPath.includes('/');
},
Expand Down

0 comments on commit 3597bc0

Please sign in to comment.