Created
April 30, 2020 01:20
-
-
Save eduardopc/8d933fa9c83cbd26da7cf343a031a5d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"consumer": { | |
"name": "web-application" | |
}, | |
"provider": { | |
"name": "characters-api-application" | |
}, | |
"interactions": [ | |
{ | |
"description": "a request to list all characters", | |
"request": { | |
"method": "GET", | |
"path": "/characters" | |
}, | |
"response": { | |
"status": 200, | |
"headers": { | |
"Content-Type": "application/json; charset=utf-8" | |
}, | |
"body": [ | |
{ | |
"id": 1, | |
"name": "Walter White", | |
"age": 58 | |
}, | |
{ | |
"id": 1, | |
"name": "Walter White", | |
"age": 58 | |
}, | |
{ | |
"id": 1, | |
"name": "Walter White", | |
"age": 58 | |
}, | |
{ | |
"id": 1, | |
"name": "Walter White", | |
"age": 58 | |
}, | |
{ | |
"id": 1, | |
"name": "Walter White", | |
"age": 58 | |
} | |
], | |
"matchingRules": { | |
"$.body": { | |
"min": 5 | |
}, | |
"$.body[*].*": { | |
"match": "type" | |
}, | |
"$.body[*].id": { | |
"match": "type" | |
}, | |
"$.body[*].name": { | |
"match": "type" | |
}, | |
"$.body[*].age": { | |
"match": "type" | |
} | |
} | |
} | |
} | |
], | |
"metadata": { | |
"pactSpecification": { | |
"version": "2.0.0" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment