You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
body_from_file does not work in Standalone mock server #185
Currently, the mock server will parse this but not throw any errors, so at first it seems to be acceptable.
When a request matches the when clause, the response returns 200, but no data is returned and no error is thrown in the mock server logs.
As far as I understand, @aaronenberg wants to be able to provide a file name/path as in
then:
...body_from_file: data.zip
The server would read the file contents and use them as the response body. This lets multiple YAML definitions reuse the same payload without duplicating the content across files.
Activity
alexliesenfeld commentedon Oct 15, 2025
Could be related to #183
jayvdb commentedon Oct 15, 2025
@aaronenberg , #183 has been merged to
master; does that solve your problem?alexliesenfeld commentedon Oct 17, 2025
As far as I understand, @aaronenberg wants to be able to provide a file name/path as in
The server would read the file contents and use them as the response body. This lets multiple YAML definitions reuse the same payload without duplicating the content across files.