AEP-0157 Linter Rules
Partial responses- Request read mask field
Partial responses: Request read mask field
This rule enforces that all read_mask
fields in requests have the correct
type, as mandated in [AIP-157][].
Details
This rule looks at any message matching *Request
that contains a read_mask
field, and complains if the field is not a singular google.protobuf.FieldMask
.
Examples
Incorrect code for this rule:
Correct code for this rule:
Disabling
If you need to violate this rule, use a leading comment above the field. Remember to also include an aep.dev/not-precedent comment explaining why.
If you need to violate this rule for an entire file, place the comment at the top of the file.