We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue with Jsonpath matcher and in getting data from request body having json field name with dot(.) eg "first.name"
Request json body: { "first.name" : "NAME1"}
Try to get data using tempating as mentioned in hoverfly doc https://docs.hoverfly.io/en/latest/pages/keyconcepts/templating/templating.html { "name" : " {{Request.Body 'jsonpath' '$["first.name"]' }}" }
or
{ "name" : " {{Request.Body 'jsonpath' '$[first.name]' }}" }
Hoverfly error messages seen (If none, say none) none
Hoverfly response { "name" : "" }
If possible, add screenshots to help explain your problem
Hoverfly response { "name" : "NAME1" }
The text was updated successfully, but these errors were encountered:
Unfortunately, the jsonpath library hoverfly uses can't handle this properly: https://github.com/kubernetes/client-go/tree/master/util/jsonpath
Sorry, something went wrong.
No branches or pull requests
Description of the bug
Issue with Jsonpath matcher and in getting data from request body having json field name with dot(.) eg "first.name"
Steps to reproduce the issue
Request json body:
{ "first.name" : "NAME1"}
Try to get data using tempating as mentioned in hoverfly doc https://docs.hoverfly.io/en/latest/pages/keyconcepts/templating/templating.html
{
"name" : " {{Request.Body 'jsonpath' '$["first.name"]' }}"
}
or
{
"name" : " {{Request.Body 'jsonpath' '$[first.name]' }}"
}
Observed result
Hoverfly error messages seen (If none, say none)
none
If possible, add screenshots to help explain your problem
Expected result
Hoverfly response
{
"name" : "NAME1"
}
Additional relevant information
The text was updated successfully, but these errors were encountered: