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

Add structured `Mismatch` class

Open JP-Ellis opened this issue 10 months ago • 0 comments

Have you read the Contributing Guidelines on issues?

Description

Replace the generic dict[str, Any] returned by a mismatch with a more informative class:

https://github.com/pact-foundation/pact-python/blob/5e52872b46fd6f959e958c130ebbe08ef8e11bbc/src/pact/v3/pact.py#L407-L412

Has this been requested on Canny?

No response

Motivation

A new class would facilitate the programmatic handling of mismatches, and avoid the use of Any.

Have you tried building it?

No response

Self-service

  • [ ] I'd be willing to contribute this feature to Pact Python myself.

JP-Ellis avatar Apr 02 '24 01:04 JP-Ellis