-
-
Notifications
You must be signed in to change notification settings - Fork 207
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
BodyAsFile .json files interferes with WatchStaticMappings #179
Comments
The ReadStaticMappings and WatchStaticMappings are meant to be used for the complete mappings. A complete mapping contains both the request and the response. For an example, see https://github.com/WireMock-Net/WireMock.Net/wiki/Admin-API-Reference#__adminmappings-1. If you want to use Note that you probably need to set caching to false, (BodyAsFileIsCached = false) for that specific mapping. |
@markdebruijne does above text answer your question? Or do you still have more questions? |
@markdebruijne Closing this issue. If you still have questions, comment here or create a new issue. |
ReadStaticMappings(myMappingsFolder)
to import request matchers from static.json
filesWatchStaticMappings(myMappingsFolder)
BodyAsFile
myResponseBodyFile.json
Result: Unhandled exception occurs
It breaks because the
.json
file only contains the Body of the response, while the deserializer is expecting both aRequest: {}
andResponse: {}
elementThis feels like a bug because I want to have my request .json and responseBody .json stored close together on my file system. Is there another approach to store them differently which is compatible with the file watchers. I do want (during development) want to be able to watch both.
The text was updated successfully, but these errors were encountered: