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
Change FieldMask OpenAPI type to string. #1820
Change FieldMask OpenAPI type to string. #1820
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Thanks for your contribution, could you confirm that this works when using it with the generated swagger file? Thanks!
Related to #1816 |
Very needed feature
сб, 14 нояб. 2020 г., 14:41 Johan Brandhorst-Satzkorn <
notifications@github.com>:
… Related to #1816
<#1816>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1820 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADVQG6CUUYLPPON5WDWMYLSPZUGTANCNFSM4TU5VKZA>
.
|
Codecov Report
@@ Coverage Diff @@
## master #1820 +/- ##
=======================================
Coverage 57.32% 57.32%
=======================================
Files 34 34
Lines 3616 3616
=======================================
Hits 2073 2073
Misses 1282 1282
Partials 261 261
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! This looks fine, could you just confirm that this fixes your issue before I merge it?
@johanbrandhorst Hi. It fixes it for us. Would you recommend the place where to include some kind of test to make sure it's covered? I have also spotted that |
I don't think we ever actually encourage the user to specify a field mask, we automatically create the field mask from input JSON when possible, so the input format has never been tested. If you want to add a test for this explicit specification, it'd make sense to add it to the integration tests in https://github.com/grpc-ecosystem/grpc-gateway/blob/master/examples/internal/integration/integration_test.go#L801. Looks like we rely on the marshaler, maybe a new test which does it explicitly would make sense. |
@johanbrandhorst Checked and updated the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small question on the new docs.
Thanks for your contribution! |
References to other Issues or PRs
RESOLVES #1816
Have you read the Contributing Guidelines?
Yes
Brief description of what is fixed or changed
FieldMask
to stringpatch.md
doc to contains the corect format for the FieldMask in the example