Lluís Xavier Casals Garcia
05/15/2023, 4:01 PM"body": {
"sort_field": "not permitted value"
}
And I can see that the provider is receiving this body:
"{\"sort_field\":\"not permitted value\"}"=>nil
BUT in case I use the query
instead of body
in the contract json:
"query": "sort_field=invalid"
The request works properly.
Also, mention that I can do the same request using Postman or ‘curl’ and it works properly:
curl --location --request GET 'localhost:3000/placements' \
--header 'Content-Type: application/json' \
--data '{
"sort_field": "not permitted value"
}'
What am I doing wrong?
Thanks a lot for anyone that could help me. 🙏Yousaf Nabi (pactflow.io)
Lluís Xavier Casals Garcia
05/16/2023, 2:49 PM"pactSpecification": {
"version": "2.0.0"
}
• For the gem: pact-provider-verifier (1.36.1)Yousaf Nabi (pactflow.io)
Lluís Xavier Casals Garcia
05/16/2023, 3:00 PMLluís Xavier Casals Garcia
05/16/2023, 3:29 PM