-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
json_body
doesn't seem to be working for YAML mocks (standalone)
#118
Comments
I've installed version Replaced package `httpmock v0.7.0` with `httpmock v0.7.0` (executable `httpmock`)
mdevino:mocks$ httpmock --version
httpmock 0.6 |
@mdevino Thank you for opening this issue. I encountered the same problem today while starting to use the library for the first time. Hope the new image will be available soon. |
You can safely use You are right though @mdevino, it seems at the moment The only difference I see that We should also add a check that returns an error in case YAML files contain unknown attributes. This way users would be informed about unknown / invalid YAML fields. |
Hi @alexliesenfeld. Thanks for the reply. Would |
No, it will respond with the original content. Example: This definition: when:
method: GET
then:
status: 200
body: ' hello ' Will respond with: curl localhost:5050
hello observe the two spaces before and after "hello". |
Hi, I've just found the library and am trying to spin up a quick mock server.
I have the following YAML, but it doesn't seem to work as expected:
When I invoke the endpoint, I do get a 200 back, but the response body is empty. Am I missing anything?
The text was updated successfully, but these errors were encountered: