Skip to content

fix(AIP-122): drop uuid disallowance in user-specified ID#1491

Merged
noahdietz merged 2 commits intoaip-dev:masterfrom
noahdietz:aip-122-user-specified-uuid
Mar 13, 2025
Merged

fix(AIP-122): drop uuid disallowance in user-specified ID#1491
noahdietz merged 2 commits intoaip-dev:masterfrom
noahdietz:aip-122-user-specified-uuid

Conversation

@noahdietz
Copy link
Copy Markdown
Collaborator

API designers have been asking why user-specified IDs shouldn't be allowed to be UUID, and there is no defensible rationale for doing so. Users should be able to provide whatever value they deem meaningful for their purposes, within the allowed character set and any API-specific restrictions.

@noahdietz noahdietz requested a review from a team as a code owner March 10, 2025 19:36
@noahdietz noahdietz requested a review from jskeet March 10, 2025 19:36
@noahdietz noahdietz changed the title fix(AIP-122): drop uuid disallowance fix(AIP-122): drop uuid disallowance in user-specified ID Mar 10, 2025
@noahdietz noahdietz removed the request for review from jskeet March 13, 2025 17:29
@noahdietz noahdietz enabled auto-merge (squash) March 13, 2025 17:29
@noahdietz noahdietz merged commit 8714ee3 into aip-dev:master Mar 13, 2025
thall added a commit to einride/protoc-gen-go-aip-test that referenced this pull request Jun 16, 2025
thall added a commit to einride/aip-go that referenced this pull request Jun 16, 2025
Since this [PR](aip-dev/google.aip.dev#1491),
usersettable id can now take the form of an UUID, this commit reflects
that.
thall added a commit to einride/aip-go that referenced this pull request Jun 16, 2025
Since this [PR](aip-dev/google.aip.dev#1491),
usersettable id can now take the form of an UUID, this commit reflects
that.
thall added a commit to einride/protoc-gen-go-aip-test that referenced this pull request Jun 16, 2025
thall added a commit to einride/aip-go that referenced this pull request Jun 16, 2025
Since this [PR](aip-dev/google.aip.dev#1491),
usersettable id can now take the form of an UUID, this commit reflects
that.
@kristofferwanglund
Copy link
Copy Markdown

Hey, I think this is a good change. Reading AIP-122 it still says:

User-specified resource IDs should conform to RFC-1034; which restricts to letters, numbers, and hyphen, with the first character a letter, the last a letter or a number, and a 63 character maximum.

I was thinking about the "... the first character a letter" part. Is that something that should be revised now as well (given that uuids can start with numbers)?

Thanks you.

@kristofferwanglund
Copy link
Copy Markdown

@slevenick sorry to ping you like this, but have you seen my question above ☝️ regarding the AIP-122? No rush, it would just be interesting to get your take on it.

@slevenick
Copy link
Copy Markdown
Contributor

Yeah, it would make sense to revise that guidance now that UUIDs are allowed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants