mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-25 20:06:53 +00:00
modify schema in a compatible way to maybe fix typescript sdk
This commit is contained in:
@@ -3922,23 +3922,26 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allOf": [
|
"$ref": "#/components/schemas/NodeRoleUpdate"
|
||||||
{
|
}
|
||||||
"$ref": "#/components/schemas/NodeAssignedRole"
|
]
|
||||||
},
|
},
|
||||||
{
|
"NodeRoleUpdate": {
|
||||||
"type": "object",
|
"allOf": [
|
||||||
"required": [
|
{
|
||||||
"id"
|
"$ref": "#/components/schemas/NodeAssignedRole"
|
||||||
],
|
},
|
||||||
"properties": {
|
{
|
||||||
"id": {
|
"type": "object",
|
||||||
"type": "string",
|
"required": [
|
||||||
"description": "ID of the node for which this change applies"
|
"id"
|
||||||
}
|
],
|
||||||
}
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "ID of the node for which this change applies"
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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,
|
||||||
},
|
},
|
||||||
#[serde(rename_all = "camelCase")]
|
Update(NodeRoleUpdate),
|
||||||
Update {
|
}
|
||||||
/// ID of the node for which this change applies
|
|
||||||
id: String,
|
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
|
||||||
#[serde(flatten)]
|
#[serde(rename_all = "camelCase")]
|
||||||
role: NodeAssignedRole,
|
pub struct NodeRoleUpdate {
|
||||||
},
|
/// ID of the node for which this change applies
|
||||||
|
id: String,
|
||||||
|
#[serde(flatten)]
|
||||||
|
role: NodeAssignedRole,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[utoipa::path(post,
|
#[utoipa::path(post,
|
||||||
|
|||||||
Reference in New Issue
Block a user