Skip to content

Commit

Permalink
chore(FFI): Update the doc comment for multiple query parameter value…
Browse files Browse the repository at this point in the history
…s with a matcher #332
  • Loading branch information
rholshausen committed Oct 24, 2023
1 parent 3240fa9 commit 7a1d6b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rust/pact_ffi/src/mock_server/handles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,13 @@ pub extern fn pactffi_with_query_parameter(
/// ```
/// See [IntegrationJson.md](https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/IntegrationJson.md)
///
/// If you want the matching rules to apply to all values (and not just the one with the given
/// index), make sure to set the value to be an array.
///
/// ```c
/// const char* value = "{\"value\":[\"2\"], \"pact:matcher:type\":\"regex\", \"regex\":\"\\\\d+\"}";
/// pactffi_with_query_parameter_v2(handle, "id", 0, value);
/// ```
/// # Safety
/// The name and value parameters must be valid pointers to NULL terminated strings.
/// ```
Expand Down

0 comments on commit 7a1d6b3

Please sign in to comment.