Skip to content

Conversation

sunshowers
Copy link
Contributor

You never have to replace any TypedUuidForFooKind types again! Also acts as a good test for wire-compatibility checking with drift.

Also bumped all the versioned APIs to pick up the x-rust-type change, so that clients work with automatic replacement.

Created using spr 1.3.6-beta.1
Comment on lines +2320 to +2325
"MupdateUuid": {
"x-rust-type": {
"crate": "omicron-uuid-kinds",
"path": "omicron_uuid_kinds::MupdateUuid",
"version": "*"
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The types are much more reasonably named now as well (they use the same type alias as the one defined in uuid-kinds).

Comment on lines +29 to +39
settings = {
attrs = [#[derive(Diffable)]],
schemars08 = {
attrs = [#[cfg(feature = "schemars08")]],
rust_type = {
crate = "omicron-uuid-kinds",
version = "*",
path = "omicron_uuid_kinds",
},
},
},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the x-rust-type magic.

Copy link
Contributor

@karencfv karencfv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sunshowers sunshowers enabled auto-merge (squash) September 30, 2025 22:46
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Comment on lines -179 to +186
"TypedUuidForOmicronZoneKind": {
"OmicronZoneUuid": {
"type": "string",
"format": "uuid"
"format": "uuid",
"x-rust-type": {
"crate": "omicron-uuid-kinds",
"path": "omicron_uuid_kinds::OmicronZoneUuid",
"version": "*"
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth noting that this change is identical on the wire, so there aren't any compatibility concerns.

Created using spr 1.3.6-beta.1
@sunshowers sunshowers merged commit 4d5bdc6 into main Oct 2, 2025
19 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/bump-newtype-uuid-to-131-use-automatic-replacement branch October 2, 2025 02:47
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.

2 participants