-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
String-values for Enums in request object are not recognized. #150
Comments
Afternoon, after checking out again today (2016/05/10), the problem has been resolved. PS: The only thing I had to do is CamelCase the client-calls. Makefile-rule:
|
Evening @igateno, Do not forget to regenerate all go-files, to make sure that the files are consistent. |
So my issue was that I didn't run |
Good Morning, first off, great work! And thanks for making it available.
I seem to have a problem with enums in request-objects, passing the string-representation does not work. If I change the value to the assigned integer the curl-post-request passes.
I saw some issues about jsonpb but I am not go-proficient enough (yet) to debug more.
Any help would be greatly appreciated.
Example curl-calls to show the behavior:
FAILURE-case.
$ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
PASSING-case:
$ curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{
"enum_value": 0,
"identifier": {
"identifier": 0
}
}' 'http://localhost:8080/trial/v1/setEnumAndId'
{}
PS: Tested with latest master from 9 mai 2016.
The text was updated successfully, but these errors were encountered: