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
I cannot match an array in the JSON request body.
gock.New("https://example.com"). Post("/api/v1/projects/PROJECT_ID/notifications"). MatchType("json"). JSON(map[string]interface{}{"body": "Hello user1", "uids": []string{"user1"}}). Reply(201)
It seems that JSON matching works only with type map[string]string but not with more complex objects (like array fields).
map[string]string
I always get: gock: cannot match any request.
gock: cannot match any request
Any suggestions?
Thank you
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I cannot match an array in the JSON request body.
It seems that JSON matching works only with type
map[string]string
but not with more complex objects (like array fields).I always get:
gock: cannot match any request
.Any suggestions?
Thank you
The text was updated successfully, but these errors were encountered: