version: v2
name: buf.build/tidbcloud/tidb-management-service
deps:
  - buf.build/googleapis/googleapis
  - buf.build/grpc-ecosystem/grpc-gateway
lint:
  use:
    - STANDARD
  except:
    # The following rules are disabled because they are not compatible with Google api linter
    - RPC_RESPONSE_STANDARD_NAME
    - RPC_REQUEST_RESPONSE_UNIQUE
    # make enum value clean
    - ENUM_VALUE_PREFIX
    - ENUM_VALUE_UPPER_SNAKE_CASE
  rpc_allow_google_protobuf_empty_requests: true
  enum_zero_value_suffix: _UNSPECIFIED
breaking:
  use:
    - WIRE_JSON
  ignore:
    - global
    - migration
    - regional
  ignore_only:
    # Existing nextgen Aliyun CMEK field renames differ from release-v0.84.
    # Keep this scoped so internal global proto additions can still run breaking checks.
    FIELD_NO_DELETE_UNLESS_NAME_RESERVED:
      - tidb_cloud_open_api/nextgen/v1beta2/cmek.proto
    FIELD_NO_DELETE_UNLESS_NUMBER_RESERVED:
      - tidb_cloud_open_api/nextgen/v1beta2/cmek.proto
    FIELD_SAME_JSON_NAME:
      - tidb_cloud_open_api/nextgen/v1beta2/cmek.proto
    FIELD_SAME_NAME:
      - tidb_cloud_open_api/nextgen/v1beta2/cmek.proto
