pact-foundation / pact-reference

Reference implementations for the pact specifications
https://pact.io
MIT License
91 stars 46 forks source link

FFI: Headers configured with provider state generator have invalid paths in Pact file #355

Closed rholshausen closed 5 months ago

rholshausen commented 5 months ago

Headers configure with JSON like

{"expression":"${seToken}","pact:generator:type":"ProviderState","pact:matcher:type":"type","value":"ABC123"}

end up with incorrect generators and matchers in the generated Pact file

"$['se-token'][0]": {
    "expression": "${seToken}",
    "type": "ProviderState"
}

Downstream issue https://github.com/pact-foundation/pact-js/issues/1144

rholshausen commented 5 months ago

Pact FFI Library 0.4.12 released