Mattersight / pact-net-messages

Pact.Net v3 implementation of message only for services that communicate via event streams and message queues
MIT License
10 stars 5 forks source link

Support correct pact specification version format #6

Open KarinBerg opened 5 years ago

KarinBerg commented 5 years ago

Currently the following pact-specification-version-format is used: "pactSpecificationVersion": "3.0.0"

According to this thread "https://github.com/DiUS/pact-jvm/issues/917", the following format should be used by all Pact libraries: "pactSpecification": { "version": "3.0.0" } Is it possible to support the right format?

Background info: We are currently in the situation that we have a consumer in .NET and a provider in Java which is using the "pact-jvm" library. The provider is not accepting the consumer pact because it uses the wrong "pact-specification-version-format". And according to the linked thread there seems to be an agreement to support only the above format.

KarinBerg commented 5 years ago

This is only a small change in the file PactFile.cs Metadata = new { pactSpecification = new { version = "3.0" } };