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

Why are there no examples of ‘Content-Type=application/x-www-form-urlencoded’? #63

Open
Yipartner opened this issue Mar 27, 2019 · 1 comment

Comments

@Yipartner
Copy link

"request": { "method": "POST", "path": "/driver", "headers": { "token": "xxxxx", "content-type": "application/x-www-form-urlencoded" }, "body": "ticket=xxxxx", "matchingRules": { "$.headers.token": { "match": "type" }, "$.body.ticket": { "match": "type" } } }
The main part like that ↑,and the other parts have been omitted
When I use this contract for the verification of the service provider:

console.error: err > WARN: Ignoring unsupported matching rules {"match"=>"type"} for path $['body']['ticket'] [] []

Is my "json" file error, or is "pact" not supporting "Content-Type=application/x-www-form-urlencoded"?I see many examples of "Json" and "XML",but no "form"

@bethesque
Copy link
Member

Forms are not used very often these days. If the behaviour is as expected, I think you can ignore that warning.

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