mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-31 17:28:13 +00:00
modify schema in a compatible way to maybe fix typescript sdk
This commit is contained in:
@@ -3922,6 +3922,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"$ref": "#/components/schemas/NodeRoleUpdate"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"NodeRoleUpdate": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/components/schemas/NodeAssignedRole"
|
"$ref": "#/components/schemas/NodeAssignedRole"
|
||||||
@@ -3939,8 +3944,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"NodeUpdateTrackers": {
|
"NodeUpdateTrackers": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|||||||
@@ -293,13 +293,16 @@ pub enum NodeRoleChangeOpenapi {
|
|||||||
/// Set `remove` to `true` to remove the node from the layout
|
/// Set `remove` to `true` to remove the node from the layout
|
||||||
remove: bool,
|
remove: bool,
|
||||||
},
|
},
|
||||||
|
Update(NodeRoleUpdate),
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
Update {
|
pub struct NodeRoleUpdate {
|
||||||
/// ID of the node for which this change applies
|
/// ID of the node for which this change applies
|
||||||
id: String,
|
id: String,
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
role: NodeAssignedRole,
|
role: NodeAssignedRole,
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[utoipa::path(post,
|
#[utoipa::path(post,
|
||||||
|
|||||||
Reference in New Issue
Block a user