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

Add predicates to test value types #94

Closed
fabricereix opened this issue Nov 26, 2020 · 1 comment
Closed

Add predicates to test value types #94

fabricereix opened this issue Nov 26, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@fabricereix
Copy link
Collaborator

Add the predicates isInteger, isFloat, isBoolean, isString, isCollection

for example, for the following json response

{
    "count": 4,
}

The following asserts fails

jsonpath "$.count" isString
jsonpath "$.count" isFloat

while the following assert is successful
jsonpath "$.count" isInteger

@fabricereix fabricereix added the enhancement New feature or request label Nov 26, 2020
@fabricereix
Copy link
Collaborator Author

implemented in #98

@fabricereix fabricereix changed the title Add Predicate to test value types Add predicates to test value types Dec 18, 2020
@lepapareil lepapareil added this to the 1.0.0 milestone Jun 11, 2021
@lepapareil lepapareil removed the 1.0.0 label Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants