Only copying the annotations.proto file is not enough. Copying all .proto files under grpc-gateway/protoc-gen-openapiv2/options will fix this issue:
Only copying the annotations.proto file is not enough. Copying all .proto files under grpc-gateway/protoc-gen-openapiv2/options will fix this issue: