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

V4 Pact Specification Metadata format changed #103

Open
PogopunkXIII opened this issue May 25, 2023 · 3 comments
Open

V4 Pact Specification Metadata format changed #103

PogopunkXIII opened this issue May 25, 2023 · 3 comments

Comments

@PogopunkXIII
Copy link

PogopunkXIII commented May 25, 2023

Previous Pact Specification versions all follow A.B.C format, even if both B and C were just 0. 4.0 specification breaks this. Now I recognize that a semantic version parser should be able to handle such a thing, but shouldn't the version be 4.0.0 regardless to main consistency with past versions?

Unfortunately the sem ver library I have access to fails to parse this :(

EDIT: upon further investigation, proper semantic version format must include the patch version: https://semver.org/

@mefellows
Copy link
Member

mefellows commented May 25, 2023 via email

@PogopunkXIII
Copy link
Author

PogopunkXIII commented May 25, 2023

well it's not me specifically, we have a library we use to pull pact files from elsewhere and read them into memory, and that library tries to read the PactSpecification as a semantic version, which up until 4.0 has been a fine thing to do.

The library is also third party, so it's not something I have direct access to.

@mefellows
Copy link
Member

mefellows commented May 25, 2023 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

No branches or pull requests

2 participants