googleapis / api-linter

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

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

Open noahdietz opened 1 month ago

noahdietz commented 1 month 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.