gripmock icon indicating copy to clipboard operation
gripmock copied to clipboard

GripMock is removing default values and it's not able to match stub that contains those

Open pmsfc opened this issue 2 years ago • 4 comments

We use the default enum value 0, and while trying to match a stub with 0 it always fails. The main reason is that the gRPC server is removing that value and passing the data to the stub without that field.

It also removes booleans if their value is false.

pmsfc avatar Mar 17 '22 12:03 pmsfc

I guess a quick fix for this to enable defaults on the server?

pmsfc avatar Mar 17 '22 18:03 pmsfc

@jekiapp Could you please check this issue?

Having the same issue, has there been any solutions to this? @pmsfc

nikospetrichos avatar Feb 06 '23 13:02 nikospetrichos

Nope, we ended up creating our own mock server

pmsfc avatar Mar 07 '23 23:03 pmsfc