Releases: googleapis/api-linter
v2.1.0
2.1.0 (2025-12-10)
Features
Bug Fixes
- AIP-134: check word boundaries in synonyms rule (#1564) (f10744f)
- AIP-123: prevent panic in getParentIDVariable with single-variable patterns (#1565) (a09770e)
- AIP-133: avoid returning an error when return type is a message (#1578) (3222ce4)
- AIP-136: Allow SetIamPolicy method (#1559) (7afac03)
- AIP-216: avoid linting state-like fields in response message (#1582) (1760e49)
- lint: allow deprecation rule on deprecated descriptor (#1570) (f89a1b8)
- make Batch naming resource plural aware (#1573) (c820a1c)
Documentation
v2.0.0
2.0.0 (2025-10-22)
⚠ BREAKING CHANGES
- lint: migrate to protobuf-go
- locations: migrate to protobuf-go
- internal: migrate to protobuf-go
- rules: migrate to protobuf-go
- cli: migrate to protobuf-go
- refactor api-linter framework with google.golang.org/protobuf (#1513)
Features
- AIP-133: allow view field in create request (42e6805)
- AIP-134: allow view field in update request (42e6805)
- AIP-135: allow view field in delete request (42e6805)
- cli: migrate to protobuf-go (42e6805)
- internal: migrate to protobuf-go (42e6805)
- lint: migrate to protobuf-go (42e6805)
- locations: migrate to protobuf-go (42e6805)
- refactor api-linter framework with google.golang.org/protobuf (#1513) (42e6805)
- rules: migrate to protobuf-go (42e6805)
Bug Fixes
v1.72.0
v2.0.0-beta.4
What's Changed
Full Changelog: v2.0.0-beta.3...v2.0.0-beta.4
v2.0.0-beta.3
What's Changed
This beta release focuses on improving the CLI's robustness and internal code quality.
-
Fixes:
-
Chores:
Full Changelog: v2.0.0-beta.2...v2.0.0-beta.3
v1.71.0
v2.0.0-beta.2
What's Changed
- fix(cli): resolve linting errors related to incorrect positioning by @quirogas in #1531
- fix(cli): allow disabling all rules and then enabling a single rule, or multiple rules using cli flags by @quirogas in #1531
Full Changelog: v2.0.0-beta.1...v2.0.0-beta.2
v2.0.0-beta.1
What's Changed
This is the first beta release for the upcoming API Linter v2.0.0, which modernizes the linter's core by migrating to the official google.golang.org/protobuf module.
For full details on the v2.0.0 release, please see the main tracking issue: #1529 .
⚠️ BREAKING CHANGES
lintandlocationspackages have been updated to use the descriptor types from google.golang.org/protobuf/reflect/protoreflect instead of
github.com/jhump/protoreflect/desc. This change affects users who programmatically create and use custom linting rules. For detailed migration guidance, please refer to the v2.0.0
tracking issue.
Features
The core of this release is the migration of the entire codebase from jhump/protoreflect to google.golang.org/protobuf. This effort involved changes across all major components of the
linter.
- feat!(lint): migrate public API to google.golang.org/protobuf 0df18d2
- Function signatures in the lint package, such as those in
lint.Rule, now use types likeprotoreflect.MessageDescriptorandprotoreflect.FieldDescriptor.
- Function signatures in the lint package, such as those in
- feat!(locations): migrate public API to google.golang.org/protobuf
- feat!(rules): migrate all AIP rules to google.golang.org/protobuf
- feat!(cli): migrate command-line interface to google.golang.org/protobuf
- feat!(internal): migrate internal packages to google.golang.org/protobuf
How to Report a Bug
If you encounter a bug, please file a new issue. In your report, please indicate that you are using the v2.0.0-beta.1 release candidate and reference the main tracking issue #1529 to help us track v2-related issues