From 5ba47b967b38f3d780236345f7dcbea1c256e9d8 Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Thu, 11 Jul 2024 15:52:55 +1000 Subject: [PATCH] docs(pact_verifier_cli): Update README with returning values from provider state callbacks #441 --- rust/pact_verifier_cli/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rust/pact_verifier_cli/README.md b/rust/pact_verifier_cli/README.md index 33f31a08..67e50bd4 100644 --- a/rust/pact_verifier_cli/README.md +++ b/rust/pact_verifier_cli/README.md @@ -200,6 +200,9 @@ content-type: application/json If any parameters are configured for the provider state, they will be passed in the *"params"* attribute. +The provider state callback can return a map (JSON object) of values that can then be used by things like the +Provider State Generator to inject values. The returned map of values will fall back to the provider state parameters. + #### `-s, --state-change-url ` This sets the absolute URL that the POST requests will be made to before each actual request. If this value is not @@ -215,7 +218,7 @@ option forces it to be sent as query parameters instead. This option will cause the verifier to also make a tear down request after the main request is made. It will receive a field in the body or a query parameter named `action` with the value `teardown`. -#### `--consumer-version-selectors` +### `--consumer-version-selectors` Accepts a set of [Consumer Version Selectors](https://docs.pact.io/pact_broker/advanced_topics/consumer_version_selectors/) encoded as JSON.