Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pmsfc opened this issue Mar 17, 2022 · 4 comments

Comments

@pmsfc
Copy link

pmsfc commented Mar 17, 2022

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 pmsfc changed the title GripMock is removing enums with value 0 GripMock is removing default values and it's not able to match stub that contains those Mar 17, 2022
@pmsfc
Copy link
Author

pmsfc commented Mar 17, 2022

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

@ocherniavskyi-lohika-tix

@jekiapp Could you please check this issue?

@nikospetrichos
Copy link

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

@pmsfc
Copy link
Author

pmsfc commented Mar 7, 2023

Nope, we ended up creating our own mock server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants