YoshiyukiKato / grpc-mock

A simple mock gRPC server on Node.js
MIT License
85 stars 24 forks source link

RegExp doesn't work #26

Open darknessp opened 4 years ago

darknessp commented 4 years ago

I tried: { input: { param: "^[a-zA-Z]+" } } and I set param to "uuid" in the request , but it doesn't work and throws "io.grpc.StatusRuntimeException: INVALID_ARGUMENT: unexpected input pattern"

celesteking commented 4 years ago

In order to make wildcard matches work, you should use:

input: '{"param":".+"}'

This lib is badly coded, very convoluted.