pact-python icon indicating copy to clipboard operation
pact-python copied to clipboard

Support for specific type matchers

Open samdjstephens opened this issue 4 years ago • 1 comments

The 3.0.0 Pact specification mentioned specific type matchers.

This doesn't appear to be supported when using pact-python, either in generation of the pact in the consumer (there's no API to specify integer, for example) or in verifying the pact (I tried editing the pact json with info from the spec, but I get: WARN: Ignoring unsupported matchers [{"match"=>"integer"}] for path $['payload']['metricsUpdated'])

Have I missed something, or is the above correct? Have there been any discussions or efforts to add this functionality?

samdjstephens avatar Dec 21 '21 11:12 samdjstephens

Pact Python currently doesn't support the v3 specification.

There is some [work](https://github.com/pact-foundation/pact-python/tree/feat/ffi-provider] going on to move to our new shared core, but that is progressing slowly.

If you just want to do provider verification of a Pact generated with the v3 specification, you could download the Verifier CLI and use that.

It wouldn't take much to replace the existing verifier CLI (Ruby based) with the new CLI (rust based), which might be a good intermediate step if you're willing/able.

This information might be slightly out of date, so i'll leave it to the core maintainers to provide a better update in time.

mefellows avatar Dec 21 '21 12:12 mefellows