api-linter
api-linter copied to clipboard
"Enum unspecified value" rule inaccurate to AIP
Steps to reproduce
- Write an enum with a meaningful zero value
- Enable strict API linter
- Linter flags missing
_UNSPECIFIEDvalue
The issue here is that the AIP itself has an exception for a "clearly useful zero value". This means that even in the strict API linter it should be possible to have an enum with a meaningful zero value because it's an exception to the rule, not just an ignored should.