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
GET http://httpbin.org/cache > User-Agent: KATT < 200 < Content-Type: application/json { "foo": "{{>bar}}" }
The key foo does not exist so I would have assumed this would fail. It does not and bar will get the value undefined
foo
bar
undefined
So is this an expected behaviour or a bug?
The text was updated successfully, but these errors were encountered:
I would say it's expected. But i can also see how you may want to check for existence AND store value.
The primary reason why i say it's expected is the "AND" above i.e. KATT does one thing today, store the value, not two things.
Sorry, something went wrong.
If it is expected then it would be hard to change as it would break existing tests :-)
It is relative easy to work around: repeat the test - first run check the existence of the value and next time around store it.
Maybe a heads up in the documentation could be helpful? And a new feature {{>>bar}} that will do both? :-)
{{>>bar}}
No branches or pull requests
The key
foo
does not exist so I would have assumed this would fail. It does not andbar
will get the valueundefined
So is this an expected behaviour or a bug?
The text was updated successfully, but these errors were encountered: