googleapis / api-linter

A linter for APIs defined in protocol buffers.
https://linter.aip.dev/
Apache License 2.0
602 stars 144 forks source link

feat(AIP-134): update_mask must be OPTIONAL #1394

Closed noahdietz closed 5 months ago

noahdietz commented 6 months ago

Implements enforcement for AIP-134 change https://github.com/aip-dev/google.aip.dev/pull/1327.

Previously, update_mask could be either OPTIONAL or REQUIRED. Now it can and must only be OPTIONAL.

Adds locations.FieldBehavior helper for annotation source code location, and refactors one other place to use it.