@onlineapps/conn-orch-validator 2.0.10 → 2.0.11
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": "@onlineapps/conn-orch-validator",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Validation orchestrator for OA Drive microservices - coordinates validation across all layers (base, infra, orch, business)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -421,13 +421,16 @@ class CookbookTestRunner {
|
|
|
421
421
|
throw new Error('Cookbook must have steps (array or object)');
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
|
|
424
|
+
// Normalize steps to array for validation
|
|
425
|
+
const stepsArray = this.normalizeSteps(cookbook.steps);
|
|
426
|
+
|
|
427
|
+
if (stepsArray.length === 0) {
|
|
425
428
|
throw new Error('Cookbook must have at least one step');
|
|
426
429
|
}
|
|
427
430
|
|
|
428
|
-
for (const step of
|
|
429
|
-
if (!step.service) throw new Error(
|
|
430
|
-
if (!step.operation) throw new Error(
|
|
431
|
+
for (const step of stepsArray) {
|
|
432
|
+
if (!step.service) throw new Error(`Step ${step.step_id || step.id || 'unknown'} must have service`);
|
|
433
|
+
if (!step.operation) throw new Error(`Step ${step.step_id || step.id || 'unknown'} must have operation`);
|
|
431
434
|
}
|
|
432
435
|
|
|
433
436
|
return true;
|