mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Request Matching Protobuf - Multiple Proto Definition files Fail #732
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Allen0117 on GitHub (Dec 17, 2025).
Describe the bug
I’m trying to enable WireMock.NET gRPC to support multiple Proto definition files.
After reviewing the official documentation, I found that it previously described how to apply this setup, and I followed the configuration order as outlined in the docs.
However, I still encounter errors when running it, so I’d like to confirm whether there is a correct or recommended way to configure this, or if there are any additional considerations I might be missing.
Reference documentation:
https://wiremock.org/dotnet/request-matching-protobuf/
(Section: Multiple Proto Definition files)
Expected behavior:
It should be able to successfully mock multiple proto definitions.
Code to Reproduce
UnitTestCode
greet.proto:
request.proto:
Error
@Allen0117 commented on GitHub (Dec 19, 2025):
After experimenting, I found that the statement mentioned in the article—“A comment is needed for each referenced (imported) proto file”—means that the comment must be added at the very top of the file, as shown in the screenshot.