diff options
Diffstat (limited to 'server/src/api_model.rs')
| -rw-r--r-- | server/src/api_model.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/src/api_model.rs b/server/src/api_model.rs index b08ad5c..1b0d7b2 100644 --- a/server/src/api_model.rs +++ b/server/src/api_model.rs @@ -62,6 +62,10 @@ pub struct Review { pub state: ReviewState, #[schema(example = 37.5)] pub progress: f32, + #[schema(example = "r/user/TASK-123456")] + pub branch: String, + #[schema(example = false)] + pub archived: bool, } #[derive(Serialize, ToSchema)] @@ -115,6 +119,10 @@ pub struct Project { pub title: String, #[schema(example = "Example project")] pub description: String, + #[schema(example = "ssh://git.example.org/srv/git/")] + pub remote: String, + #[schema(example = "main")] + pub main_branch: String, pub users: Vec<ProjectUserEntry>, } @@ -124,6 +132,10 @@ pub struct ProjectData<'r> { pub title: Option<&'r str>, #[schema(example = "Example project")] pub description: Option<&'r str>, + #[schema(example = "ssh://git.example.org/srv/git/")] + pub remote: Option<&'r str>, + #[schema(example = "main")] + pub main_branch: Option<&'r str>, } #[derive(Deserialize, Serialize, ToSchema)] |
