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

Deal with string/int conversion when validating variables #78

Open
finestructure opened this issue Jun 6, 2019 · 0 comments
Open

Deal with string/int conversion when validating variables #78

finestructure opened this issue Jun 6, 2019 · 0 comments

Comments

@finestructure
Copy link
Owner

  contacts:
    url: ${api_url}/contacts/
    validation:
      status: 200
      json:
        # contacts are listed in reverse order or creation
        1:
          user: ${alice data.id}

The db field is an integer while the resolved variable substitution comes in as a string, leading to a failure:

❌  contacts FAILED : json invalid: index '1' validation error: key 'user' validation error: (2) is not equal to ("2")
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

1 participant