-
Notifications
You must be signed in to change notification settings - Fork 509
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
AIP-136 is missing guidance about when to use {name=
#955
Comments
AFAICT the pattern is to use |
Also, for clarity, this issue manifests in the linting of the |
Just an update, we discussed this as a team and are still trying to come to a consensus. Hope to have something next week for you. |
Hi folks, IIRC while standard methods use Because of this, and the ambiguity of whether to use This means we'd have:
It's possible the linter rule made an assumption that custom methods were like the standard methods (because of the first example in AIP-136 being Archive) and it's only now being noticed. We should probably remove this check while we work on replacement checks, but it could be quite challenging to do these checks properly... |
Thanks JJ, that's really helpful context. I will disable the checks in the api-linter (and follow up on the linter issue itself). I would like to leave this open so that we can distill what you've laid out here into some guidance for AIP-136. |
Oops, just noticed that I forgot to respond to this, even though I did take action based on it. Thanks JJ and Noah for the answers here. |
In this linter issue, @noahdietz asked me to file an issue to update AIP-136 with guidance about when to use
{name=
in agoogle.api.http
annotation.Contrary to the linter's
core::136::http-name-variable
rule, the actual AIP has nothing to say about not using name= in the URI. It does say "The name of the method should be a verb followed by a noun.", but it doesn't say not to use name= in the URI when there's a good reason not to follow that guidance.The text was updated successfully, but these errors were encountered: