@ondc/automation-mock-runner 1.3.31 → 1.3.33

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.
@@ -253,7 +253,12 @@ async function buildConfigFromFlowConfig(payloads, flowConfig, domain, version,
253
253
  }
254
254
  else {
255
255
  stepConfig.mock.inputs = {};
256
- stepConfig.mock.inputs.oldInputs = step.input;
256
+ if (step.input && step.input.length > 0 && step.input[0].jsonSchema) {
257
+ stepConfig.mock.inputs = step.input[0];
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ondc/automation-mock-runner",
3
- "version": "1.3.31",
3
+ "version": "1.3.33",
4
4
  "description": "A TypeScript library for ONDC automation mock runner",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",