英文:
Wiremock returns 200 OK response even if transformer not found
问题
如果我在存根定义的 JSON 中意外地输入了错别字,而转换器名称不匹配,仍然会收到 200 响应。这是不符合预期的,也是一个问题。是否有办法让 Wiremock 失败,或者至少记录未找到转换器的情况?
我正在使用 wiremock-standalone 版本 2.35.0。
英文:
If I accidentally make a typo in stub definition JSON and transformer name doesn't match I still get a 200 response. It's unexpected and is a problem. Is there any way to make Wiremock to fail or at least log that transformer was not found?
I'm using wiremock-standalone version 2.35.0.
答案1
得分: 2
目前无法使WireMock在这种情况下返回或记录错误。
您可以在此处提交PR /提出问题:https://github.com/wiremock/wiremock
英文:
There's currently no way to make WireMock return or log an error in this case.
You could submit a PR / raise an issue here: https://github.com/wiremock/wiremock
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论