-
Notifications
You must be signed in to change notification settings - Fork 34
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
Invalid path value for HTTP header matcher. #34
Comments
According to this example in the specification, it's "headers" not "header" |
Version 2 is headers, version 3 is header. See comment on pact-foundation/pact-jvm#882 |
What was the reason for changing it @uglyog? Pact Ruby doesn't fully support v3, but I'll see if I can get that rule in. |
@uglyog if that's the case, shouldn't pact-jvm use |
You may have a valid point there. |
Oh, are you using v2 @skaggmannen? Looks like we both have to write some dirty code @uglyog :P |
I've opened an issue in pact-support to support the v3 "header", and I'm closing this. @skaggmannen can you raise in issue in pact-jvm for the v2 "headers"? |
Sorry, I did not mean to ghost you, I've just been very busy. I can see that @uglyog has already re-opened the issue I raised on pact-jvm (pact-foundation/pact-jvm#882) so I think that's taken care of. |
Hi,
Apparently pact-ruby-standalone does not use the standard header path format of
$.header.<header name>
when parsing pact files. Instead the non-standard format$.headers.<header name>
is used (notice the extras
). This leads to incompatibility with pact-jvm (as mentioned in e.g. pact-foundation/pact-net#184 (comment)) which generates the paths according to the pact specification.Here's the relevant part of the pact specification:
The text was updated successfully, but these errors were encountered: