-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: AIP-140 – Field names #33
base: main
Are you sure you want to change the base?
Conversation
|
||
### Consistency | ||
|
||
APIs **should** endeavor to use the same name for the same concept and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mkistler: One thing we do is check type / name consistency.
aip/general/0140/aip.md
Outdated
|
||
### Array fields | ||
|
||
Repeated fields **must** use the proper plural form, such as `books` or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Array
aip/general/0140/aip.md
Outdated
|
||
Repeated fields **must** use the proper plural form, such as `books` or | ||
`authors`. On the other hand, non-array fields **should** use the singular form | ||
such as `book` or `author`.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
such as `book` or `author`.. | |
such as `book` or `author`. |
aip/general/0140/aip.md
Outdated
|
||
### String vs. bytes | ||
|
||
When using `bytes`, the contents of the field are base64-encoded when using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are -> must or should
|
||
### String vs. bytes | ||
|
||
When there is a need to send binary contents over the wire, the contents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Capitalize Base64
throughout.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. 👍
Left one question that might need action before merging.
### URIs | ||
|
||
Field names representing URLs or URIs **should** use `url` for fully-qualified | ||
URLs, and URIs for URI segment. Field names **may** use a prefix in front of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean
URLs, and URIs for URI segment. Field names **may** use a prefix in front of | |
URLs, and `uri` for URI segment. Field names **may** use a prefix in front of |
No description provided.