Skip to content
This repository was archived by the owner on Oct 19, 2026. It is now read-only.

Commit bb88551

Browse files
authored
lfs: rename internal User to LockUser & reorder structs to fix OpenAPI schema (#1741)
Signed-off-by: Hongze Gao <15101764808@163.com>
1 parent 1049c15 commit bb88551

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎ceres/src/lfs/lfs_structs.rs‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,19 @@ pub struct RequestObject {
100100
pub authorization: String,
101101
}
102102

103-
#[derive(Serialize, Deserialize, Debug, Clone, ToSchema)]
103+
/// User information for lock ownership
104+
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, ToSchema)]
105+
pub struct LockUser {
106+
pub name: String,
107+
}
108+
104109
/// LFS lock information
110+
#[derive(Serialize, Deserialize, Debug, Clone, ToSchema)]
105111
pub struct Lock {
106112
pub id: String,
107113
pub path: String,
108114
pub locked_at: String,
109-
pub owner: Option<User>,
110-
}
111-
112-
/// User information for lock ownership
113-
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, ToSchema)]
114-
pub struct User {
115-
pub name: String,
115+
pub owner: Option<LockUser>,
116116
}
117117

118118
#[derive(Serialize, Deserialize, Debug, ToSchema)]

0 commit comments

Comments
 (0)