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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: generate providerStates as in V3 when PactVersion is UNSPECIFIED #1706

Closed
wants to merge 1 commit into from

Conversation

VictorEnaud
Copy link

fix #1705

I chose the path of least modifications.
A more definitive solution might be to change the default pactVersion to V3 in PactSpectVersion instead of UNSPECIFIED, but that would change the philosophy of how it is done.

@rholshausen
Copy link
Contributor

rholshausen commented Jul 31, 2023

I'm thinking that, rather than changing the order of the enum values, I'm going to remove UNSPECIFIED and make PactSpectVersion an optional value. That way it will be unspecified when there is no value, and then the default choice can be made as necessary.

@rholshausen
Copy link
Contributor

Fixed with bd2f380

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

Successfully merging this pull request may close these issues.

[BUG] ProviderStates is not generated when no pact version is defined
2 participants