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: ConsumerVersionSelector interface (BREAKING CHANGE) #286

Conversation

tonynguyenit18
Copy link
Contributor

@tonynguyenit18 tonynguyenit18 commented May 7, 2021

Fix incompatible ConsumerVersionSelector interface attributes based on new pact_broker docs

Fix: pact-foundation/pact-js#649 and #285

@TimothyJones
Copy link
Contributor

Thanks for the PR! I haven’t had the chance to get to this issue yet, so it’s much appreciated. I hope to have a look over the weekend. Unless I’m mistaken, this is a breaking change, yes?

Based on document of pact_broker:pact-foundation/pact_broker#307, ConsumerVersionSelector interface attributes are not compatible
This fix is to update it

BREAKING CHANGE: fix pact-foundation#285
@tonynguyenit18 tonynguyenit18 force-pushed the fix/consumer-version-selector-interface branch from 9cd3df5 to b1e5afe Compare May 7, 2021 23:47
@tonynguyenit18 tonynguyenit18 changed the title fix: ConsumerVersionSelector interface fix: ConsumerVersionSelector interface (BREAKING CHANGE) May 7, 2021
@tonynguyenit18
Copy link
Contributor Author

Thanks @TimothyJones
Yeah it seem to be a breaking change, so I rebase to make commit message follow conventional commit.

@tonynguyenit18
Copy link
Contributor Author

Hi @TimothyJones
How is this going? Have you had time to have a look at this?

@mefellows
Copy link
Member

See pact-foundation/pact-js#649 (comment). We'll aim to do this next week.

For now Tony, the workaround in TS would be to specify the correct underlying JSON data structure and do a cast to force it in.

@TimothyJones
Copy link
Contributor

@mefellows : I reckon it would be a good time to do #263 when we merge this. I can take a look this weekend if you haven't had the chance yet.

@TimothyJones TimothyJones merged commit 7ee1b49 into pact-foundation:master May 21, 2021
@mefellows
Copy link
Member

mefellows commented May 21, 2021 via email

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.

ConsumerVersionSelectors interface does support fallbackTags (which is defined in document)
3 participants