Skip to content

Commit 467e0af

Browse files
authored
Remove alpine disk source from OpenAPI schema (#7863)
Removing `YouCanBootAnythingAsLongAsItsAlpine` fully (#4222) requires changing the tests that rely on it. There aren't that many ([repo search](https://github.com/search?q=repo%3Aoxidecomputer%2Fomicron%20YouCanBootAnythingAsLongAsItsAlpine&type=code)) but I'd have to puzzle it out. What I can do trivially, however, is get it out the OpenAPI schema so API and CLI users don't have to see it.
1 parent 36430ee commit 467e0af

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

nexus/types/src/external_api/params.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2112,6 +2112,7 @@ pub enum ImageSource {
21122112

21132113
/// Boot the Alpine ISO that ships with the Propolis zone. Intended for
21142114
/// development purposes only.
2115+
#[schemars(skip)] // keep it out of the OpenAPI schema
21152116
YouCanBootAnythingAsLongAsItsAlpine,
21162117
}
21172118

openapi/nexus.json

-15
Original file line numberDiff line numberDiff line change
@@ -17698,21 +17698,6 @@
1769817698
"id",
1769917699
"type"
1770017700
]
17701-
},
17702-
{
17703-
"description": "Boot the Alpine ISO that ships with the Propolis zone. Intended for development purposes only.",
17704-
"type": "object",
17705-
"properties": {
17706-
"type": {
17707-
"type": "string",
17708-
"enum": [
17709-
"you_can_boot_anything_as_long_as_its_alpine"
17710-
]
17711-
}
17712-
},
17713-
"required": [
17714-
"type"
17715-
]
1771617701
}
1771717702
]
1771817703
},

0 commit comments

Comments
 (0)