X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=spring-consumer%2Ftarget%2Fpacts%2FSpringConsumer-Siren%20Order%20Provider.json;h=93569802fd6af656b6629d0057463aa9a51a96f6;hb=3586a87b969f61e7d08b4a27e013295040516af8;hp=953d4e6792a35f7aafebd12078deef261f464f55;hpb=d553ddf4d0da98b4999f609422e87fe9881148b1;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 953d4e6..9356980 100644 --- a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json +++ b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json @@ -11,74 +11,49 @@ }, "response": { "body": { - "age": 100, - "happy": true, - "hexCode": "1234a", - "id": 1234567890, - "localAddress": "127.0.0.1", - "name": "string" - }, - "generators": { - "body": { - "$.hexCode": { - "digits": 10, - "type": "RandomHexadecimal" - }, - "$.id": { - "max": 2147483647, - "min": 0, - "type": "RandomInt" - }, - "$.name": { - "size": 20, - "type": "RandomString" + "actions": [ + { + "method": "PUT", + "name": "update" } - } + ] }, "headers": { "Content-Type": "application/vnd.siren+json" }, "matchingRules": { "body": { - "$.happy": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - }, - "$.hexCode": { - "combine": "AND", - "matchers": [ - { - "match": "regex", - "regex": "[0-9a-fA-F]+" - } - ] - }, - "$.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": { + "$.method": { + "combine": "AND", + "matchers": [ + { + "match": "type" + } + ] + }, + "$.name": { + "combine": "AND", + "matchers": [ + { + "match": "type" + } + ] + } + } + } + ] } ] }