pact-foundation / pact-mock_service

Provides a mock service for use with Pact
https://pact.io
MIT License
73 stars 69 forks source link

feat(mock-server) store providerStates in contract file #101

Closed vgrigoruk closed 5 years ago

vgrigoruk commented 5 years ago

Right now,providerStates are not serialized into a contract file if mockserver is started with --pact_specification_version '3'. This PR fixes the issue.

vgrigoruk commented 5 years ago

ping @bethesque

bethesque commented 5 years ago

I think that's the v2 serialiser. I don't think v3 serialisation is supported yet. Also, the provider states array is an array of objects with a name key, and a params key, it's not just an array of strings.