@onlineapps/conn-orch-validator 2.0.26 → 2.0.27

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.26",
3
+ "version": "2.0.27",
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": {
@@ -158,8 +158,10 @@ class CookbookTestRunner {
158
158
  const endpoint = await this.resolveOperation(step.service, step.operation);
159
159
 
160
160
  // Build request
161
- // Validation context: ALWAYS add x-validation-request header to indicate this is a validation probe.
162
- // This allows services to return deterministic responses without accessing external resources.
161
+ // Validation context headers:
162
+ // 1. x-validation-request: signals this is a validation probe (deterministic responses)
163
+ // 2. account-id: required by multitenancy middleware for /api/** endpoints
164
+ const validationAccountId = process.env.OA_VALIDATION_ACCOUNT_ID || '99999';
163
165
  const request = {
164
166
  method: endpoint.method,
165
167
  url: `${this.serviceUrl}${endpoint.path}`,
@@ -167,6 +169,7 @@ class CookbookTestRunner {
167
169
  timeout: testConfig.timeout || this.timeout,
168
170
  headers: {
169
171
  'x-validation-request': 'true',
172
+ 'account-id': validationAccountId,
170
173
  ...resolveHeaders(endpoint.headers),
171
174
  ...resolveHeaders(step.headers)
172
175
  }
@@ -214,7 +214,16 @@ class ServiceReadinessValidator {
214
214
 
215
215
  // Generate test input based on schema
216
216
  const testInput = this.generateTestInput(operation.input);
217
- const headers = resolveHeaders(operation.headers);
217
+
218
+ // Validation context headers:
219
+ // 1. x-validation-request: signals this is a validation probe
220
+ // 2. account-id: required by multitenancy middleware for /api/** endpoints
221
+ const validationAccountId = process.env.OA_VALIDATION_ACCOUNT_ID || '99999';
222
+ const headers = {
223
+ 'x-validation-request': 'true',
224
+ 'account-id': validationAccountId,
225
+ ...resolveHeaders(operation.headers)
226
+ };
218
227
 
219
228
  // Make request
220
229
  const response = await axios({