X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=spring-consumer%2Ftarget%2Fpacts%2FSpringConsumer-Siren%20Order%20Provider.json;h=d14b5d0ddebdc6d67a80e0ca49856ff68447fe02;hb=bbff8e069b37597c062a39384c18f326ee2d0a7c;hp=2ae8cea9a7d75025295699597d674afd54cb5237;hpb=7a8c1cc6f0ff8a7cc3e1778574310a094c7e9688;p=demos%2Fexample-siren diff --git a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json index 2ae8cea..d14b5d0 100644 --- a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json +++ b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json @@ -11,60 +11,38 @@ }, "response": { "body": { - "age": 100, - "happy": true, - "id": 1234567890, - "localAddress": "127.0.0.1", - "name": "string" - }, - "generators": { - "body": { - "$.id": { - "max": 2147483647, - "min": 0, - "type": "RandomInt" - }, - "$.name": { - "size": 20, - "type": "RandomString" - } - } + "actions": [ + "foo" + ] }, "headers": { "Content-Type": "application/vnd.siren+json" }, "matchingRules": { "body": { - "$.happy": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - }, - "$.id": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - }, - "$.localAddress": { - "combine": "AND", - "matchers": [ - { - "match": "regex", - "regex": "(\\d{1,3}\\.)+\\d{1,3}" - } - ] - }, - "$.name": { + "$.actions": { "combine": "AND", "matchers": [ { - "match": "type" + "match": "arrayContains", + "variants": [ + { + "generators": { + + }, + "index": 0, + "rules": { + "$": { + "combine": "AND", + "matchers": [ + { + "match": "type" + } + ] + } + } + } + ] } ] }