X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=spring-consumer%2Ftarget%2Fpacts%2FSpringConsumer-Siren%20Order%20Provider.json;h=1b6384744614285c323c6bda6c2a493fe70a41ae;hb=c4518c1bc18bcd594fe1a2b79be399877ce1c9b5;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..1b63847 100644 --- a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json +++ b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json @@ -11,11 +11,56 @@ }, "response": { "body": { - + "actions": [ + { + "foo": "string" + } + ] + }, + "generators": { + "body": { + "$[0].foo": { + "size": 20, + "type": "RandomString" + } + } }, "headers": { "Content-Type": "application/vnd.siren+json" }, + "matchingRules": { + "body": { + "$.actions": { + "combine": "AND", + "matchers": [ + { + "match": "arrayContains", + "variants": [ + { + "generators": { + "$.foo": { + "size": 20, + "type": "RandomString" + } + }, + "index": 0, + "rules": { + "$.foo": { + "combine": "AND", + "matchers": [ + { + "match": "type" + } + ] + } + } + } + ] + } + ] + } + } + }, "status": 200 } },