Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V3] Set the Pact specification to use for Pact files generation #719

Closed
dernat71 opened this issue Jul 28, 2021 · 3 comments
Closed

[V3] Set the Pact specification to use for Pact files generation #719

dernat71 opened this issue Jul 28, 2021 · 3 comments

Comments

@dernat71
Copy link

Checklist

Before making a feature request, I have:

Feature description

In the context of consumer contract generation, it would be interesting to be able to set the specification version to be used.

Use case

To bring more flexibility in the verification tooling. An example would be consumers being written in JS (with the latest v3 specs) and producers being written/verified in Python (with pact-python currently only supporting v2 specs).

@TimothyJones
Copy link
Contributor

You can do this already. At the moment, the main release only supports v2.

However, if you鈥檙e using the beta branch you can import v2 Pact as normal, or you can import from pact/v3 for the ability to generate v3 pacts
(Apologies, I鈥檓 on mobile, otherwise I鈥檇 link the examples).

When we release, I鈥檇 like to be able to keep much of the same interface from V2 for V3. This would make switching easier.

@mefellows mefellows added the v3 label Aug 6, 2021
@mefellows mefellows changed the title Set the Pact specification to use for Pact files generation [V3] Set the Pact specification to use for Pact files generation Aug 6, 2021
@mefellows
Copy link
Member

You can't do it on the v3 branch at the moment, so I'll update this ticket assuming that's the reques

Also, there is this bug in the current branch:

Screen Shot 2021-08-07 at 8 26 22 am

@mefellows
Copy link
Member

Closing as 10.x.x now supports this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants