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

new: add comparisonParams to BodyMatches for Json and XML #117

Merged

Conversation

lansfy
Copy link
Contributor

@lansfy lansfy commented Jan 7, 2022

            - kind: bodyMatchesJSON
              comparisonParams:
                disallowExtraFields: true
              body: >
                {
                  "some_field": "some_value"
                }

@nikgalushko
Copy link

Thank you for your contribution. Please add tests and update the documentation.

for key, val := range values {
skey, ok := key.(string)
if !ok {
return params, errors.New("`comparisonParams` has non-string key")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we may add a key name to the error.

@nikgalushko nikgalushko added the enhancement New feature or request label Jan 10, 2022
@Cdayz Cdayz merged commit aa65d1d into lamoda:master May 11, 2022
@github-actions
Copy link

🚀 PR was released in v1.14.1 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants