Skip to content

Commit

Permalink
Update api-linter for workflow to 1.52.0. (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjayVas authored Jun 13, 2023
1 parent e7de052 commit 46b3905
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

- name: Set up api-linter
env:
VERSION: 1.48.0
VERSION: 1.52.0
run: |
cd ~
curl -L "https://github.com/googleapis/api-linter/releases/download/v${VERSION}/api-linter-${VERSION}-linux-amd64.tar.gz" -o api-linter.tar.gz
Expand Down
1 change: 1 addition & 0 deletions src/main/proto/api-linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@
- 'core::0146::any'
- 'core::0133::request-id-field'
- 'core::0121::resource-must-support-get'
- 'core::0203::field-behavior-required'
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ message RevokeCertificateRequest {
// Revocation state to set.
//
// (-- api-linter: core::0216::state-field-output-only=disabled
// api-linter: core::0203::output-only=disabled
// aip.dev/not-precedent: This is not a resource state field. --)
Certificate.RevocationState revocation_state = 2
[(google.api.field_behavior) = REQUIRED];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ message FinishExchangeStepAttemptRequest {

// The ultimate state of the `ExchangeStepAttempt`. Must be a terminal state.
// (-- api-linter: core::0216::state-field-output-only=disabled
// api-linter: core::0203::output-only=disabled
// aip.dev/not-precedent: This is not a resource state field. --)
ExchangeStepAttempt.State final_state = 2
[(google.api.field_behavior) = REQUIRED];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ message ListExchangeStepsRequest {
// Matches against the `state` field.
//
// (-- api-linter: core::0216::state-field-output-only=disabled
// api-linter: core::0203::output-only=disabled
// aip.dev/not-precedent: This is not a resource state field. --)
repeated ExchangeStep.State states = 2;
// Matches against the `event_data_provider` field of the ancestor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ message ExchangeWorkflow {
int32 shard_count = 4;
int32 buckets_per_shard = 5;
// (-- TODO: Consider making this optional once its not experimental. --)
// (-- api-linter: core::0203::optional=disabled
// aip.dev/not-precedent: Linter incorrectly identifies this. --)
int32 queries_per_shard = 6;
bool add_padding_queries = 7;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ message ListMeasurementsRequest {
// Matches against the `state` field.
//
// (-- api-linter: core::0216::state-field-output-only=disabled
// api-linter: core::0203::output-only=disabled
// aip.dev/not-precedent: This is not a resource state field. --)
repeated Measurement.State states = 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ message ListRequisitionsRequest {
// Matches against the `state` field.
//
// (-- api-linter: core::0216::state-field-output-only=disabled
// api-linter: core::0203::output-only=disabled
// aip.dev/not-precedent: This is not a resource state field. --)
repeated Requisition.State states = 1;
// Matches against the `measurement` field.
Expand All @@ -87,7 +86,6 @@ message ListRequisitionsRequest {
// Matches against the `measurement_state` field.
//
// (-- api-linter: core::0216::state-field-output-only=disabled
// api-linter: core::0203::output-only=disabled
// aip.dev/not-precedent: This is not a resource state field. --)
repeated Measurement.State measurement_states = 3;
}
Expand Down

0 comments on commit 46b3905

Please sign in to comment.