@ondc/automation-mock-runner 1.3.31 → 1.3.32
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/lib/configHelper.js +6 -1
- package/package.json +1 -1
package/dist/lib/configHelper.js
CHANGED
|
@@ -253,7 +253,12 @@ async function buildConfigFromFlowConfig(payloads, flowConfig, domain, version,
|
|
|
253
253
|
}
|
|
254
254
|
else {
|
|
255
255
|
stepConfig.mock.inputs = {};
|
|
256
|
-
|
|
256
|
+
if (step.input?.jsonSchema !== undefined) {
|
|
257
|
+
stepConfig.mock.inputs = step.input;
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
stepConfig.mock.inputs.oldInputs = step.input;
|
|
261
|
+
}
|
|
257
262
|
}
|
|
258
263
|
const stepPayloadIndex = payloads.findIndex((p) => p.context.action === step.type);
|
|
259
264
|
if (stepPayloadIndex !== -1) {
|