Closed orj closed 1 year ago
fn matcher_from_integration_json in mockserver/bodies.rs doesn't support all MatchingRule types.
fn matcher_from_integration_json
mockserver/bodies.rs
MatchingRule
v4 Matching rules like server, boolean, statusCode` etc are not supported using the format described in https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/IntegrationJson.md.
server
boolean
Also, the documentation says pact:matcher:type for date/time values should be datetime but the code uses timestamp.
pact:matcher:type
datetime
timestamp
Just a note that matcher_from_integration_json is marked as deprecated and should be replaced with MatchingRule::create.
matcher_from_integration_json
MatchingRule::create
matcher_from_integration_json has now been refactored and supports all matching rules
fn matcher_from_integration_json
inmockserver/bodies.rs
doesn't support allMatchingRule
types.v4 Matching rules like
server
,boolean
, statusCode` etc are not supported using the format described in https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/IntegrationJson.md.Also, the documentation says
pact:matcher:type
for date/time values should bedatetime
but the code usestimestamp
.