googleapis / googleapis/api-linter

AIP-213: Recommend use of common types

Open
#1,130 1 comment 0 reactions 0 assignees View on GitHub
type: feature request
Dominant language
Go
Stars
765
Forks
181
Avg merge
2d 12h
Merged PRs (30d)
3

Description

I often see the following fields during API review:
* `start_time/end_time`
* `string color`

These would be better represented using the common types we support e.g. `google.type.Interval` and `google.type.Color` respectively.

Perhaps we should add some rules to recommend those types when it _looks_ like they are mimicking them.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.