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=323956d6c19eb4ffabcd84dfc4e7d2875e2d8b53;hpb=22c9dfa1b5034c66dcce3dbbb74551c40cdb2e03;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 323956d..9356980 100644 --- a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json +++ b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json @@ -11,11 +11,54 @@ }, "response": { "body": { - + "actions": [ + { + "method": "PUT", + "name": "update" + } + ] }, "headers": { "Content-Type": "application/vnd.siren+json" }, + "matchingRules": { + "body": { + "$.actions": { + "combine": "AND", + "matchers": [ + { + "match": "arrayContains", + "variants": [ + { + "generators": { + + }, + "index": 0, + "rules": { + "$.method": { + "combine": "AND", + "matchers": [ + { + "match": "type" + } + ] + }, + "$.name": { + "combine": "AND", + "matchers": [ + { + "match": "type" + } + ] + } + } + } + ] + } + ] + } + } + }, "status": 200 } },