Data Action JSONPath evaluation failing on WFM shift schedule endpoint

Running a Data Action against /api/v2/wfm/scheduling/schedules/{scheduleId}/shifts keeps bombing out during JSONPath evaluation. The response looks clean in Postman, but it’s dropping with Expression evaluation failed: Expected array but found null at path $.items. We’re on v2023.12 with the standard MT offset config.

Here’s the exact mapping that’s throwing the error: {{ $.data.response.body.items[*].{id, startTime, endTime} }} The parser just chokes on the nested array expansion.

{{ $.data.response.body.items[*].id }}

Switch to explicit key extraction. The /api/v2/wfm/scheduling/schedules/{scheduleId}/shifts response nests pagination objects that break array coercion when the contract verifier hits an empty page.

You’ll get stable payloads by mapping fields individually. Pact provider checks reject the shorthand syntax anyway.