pact-foundation / pact-specification

Describes the pact format and verification specifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

V4 Pact Specification Metadata format changed

PogopunkXIII opened this issue · comments

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/

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.