Skip to content

Commit

Permalink
Update ResourceRef name documentation to not reference dashless ids.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksnyder committed Apr 1, 2024
1 parent e740b7b commit 6618cfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buf/registry/module/v1/resource.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ message ResourceRef {
// - If an id, this is equivalent to setting the id field on ResourceRef. However,
// backends can choose to validate that the owner and module fields match the resource
// referenced, as additional validation.
// - If a name, this is interpreted to be a Label name or an ID of a Commit without any dashes.
// - If a name, this is interpreted to be a Label name.
// - If there is a conflict between names across resources (for example, there is a Commit id
// and Label name of the same value), the following order of precedence is applied:
// - Commit
Expand Down
2 changes: 1 addition & 1 deletion buf/registry/module/v1beta1/resource.proto
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ message ResourceRef {
// - If an id, this is equivalent to setting the id field on ResourceRef. However,
// backends can choose to validate that the owner and module fields match the resource
// referenced, as additional validation.
// - If a name, this is interpreted to be a Label name or an ID of a Commit without any dashes.
// - If a name, this is interpreted to be a Label name.
// - If there is a conflict between names across resources (for example, there is a Commit id
// and Label name of the same value), the following order of precedence is applied:
// - Commit
Expand Down

0 comments on commit 6618cfd

Please sign in to comment.