Closed glimchb closed 11 months ago
check also
// Example: `projects/foo/locations/bar/questions/123`
string name = 1 [
(google.api.field_behavior) = OUTPUT_ONLY,
(google.api.field_behavior) = IMMUTABLE
];
should we go with just this for now?
(google.api.field_behavior) = IMMUTABLE
sounds promising... waiting for this to be merged...
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
https://github.com/aip-dev/google.aip.dev/pull/1201 is merged 😉 linter rules to follow if y'all use it...
new linter PR to enforce IDENTIFIER is merged https://github.com/googleapis/api-linter/pull/1241 waiting on the new release https://github.com/googleapis/api-linter/releases comes from https://github.com/googleapis/api-linter/pull/1243
The rules are now available in: https://github.com/googleapis/api-linter/releases/tag/v1.57.0
Edit: typo
This is a hard one... According to the annotation description:
Based on that, a user cannot specify a
name
, since the server must ignore it. But this resource is used in Update call andname
is used to find that resource internally...This might be a resolution: 2 weeks ago a PR from an aip team member was created where it is said that
name
field must not be annotated._Originally posted by @artek-koltun in https://github.com/opiproject/opi-api/pull/317#discussion_r1281526799_