Skip to content

Writing pact file results in non spec v3 compatible matching rules #157

@Danny02

Description

@Danny02

I'm using Pact-JS (+pact-js-karma) to test my consumer tests and want to generate Pact files according to version 3 of the Pact spec.
I think that I have set the spec option correctly, because the resulting pact file includes

"metadata": {
    "pactSpecification": {
      "version": "3.0.0"
    }
  }

The generated matching rules are in v2 format:

"$.body._embedded.schuleList[*].*": {
            "match": "type"
 }

Our expectation regarding the generated output according to spec v3 was something like:

"body" : {
"$._embedded.schuleList[*].*": {
    "matchers": [
                {"match": "type" }
     ]       
 }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    v3pact v3 specification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions