fix(api): restore schema descriptions dropped in the comment cleanup
utoipa uses doc comments on ToSchema types and fields as OpenAPI descriptions. Three of the restating docs removed earlier were load-bearing API docs (IssuePullLinkDto::linked_at, LanguageOptionDto, RepoAiSummaryJobDto::head_sha); openapi.json drifted and the openapi check caught it. Restored; openapi --check passes again.
ZhenYi committed
Modified lib/git/src/handler/ai_languages.rs lib/git/src/handler/ai_languages.rs +1 −0 View lib/git/src/handler/ai_languages.rs
@@ -6,6 +6,7 @@
66use crate::errors::ApiError;
77use crate::service::GitService;
88
9/// 一门可选的输出语言。
910#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
1011pub struct LanguageOptionDto {
1112 /// BCP-47 代码(小写、`-` 分隔),如 `zh-cn`、`en`、`ja`。
Modified lib/git/src/service/ai_summary.rs lib/git/src/service/ai_summary.rs +1 −0 View lib/git/src/service/ai_summary.rs
@@ -54,6 +54,7 @@
5454#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
5555pub struct RepoAiSummaryJobDto {
5656 pub job_id: Uuid,
57 /// 该作业要总结的 head。
5758 pub head_sha: String,
5859 /// `pending`(已入队)或 `running`(执行中)。
5960 pub status: AiJobStatus,
Modified lib/pulls/src/services/relations.rs lib/pulls/src/services/relations.rs +1 −0 View lib/pulls/src/services/relations.rs
@@ -25,6 +25,7 @@
2525pub struct IssuePullLinkDto {
2626 /// 关联行主键(issue_relation_pull.id),解除关联时作为路径参数回传。
2727 pub relation_id: Uuid,
28 /// 建立关联的时间。
2829 pub linked_at: OffsetDateTime,
2930 pub pull: PullDto,
3031}