feat: add OpenAPI doc for update_profile_fields endpoint
Some checks failed
CI / Check / Test (push) Failing after 43s
CI / Release build (push) Has been skipped

Add ProfileFieldDto and UpdateProfileFieldsRequest to api-types,
annotate update_profile_fields_handler with utoipa::path, register
in UsersDoc. Coverage now 100%.
This commit is contained in:
2026-05-28 04:03:41 +02:00
parent 51bd580a04
commit 4ebd593293
3 changed files with 27 additions and 1 deletions

View File

@@ -83,3 +83,14 @@ pub struct ProfileResponse {
pub bio: Option<String>,
pub avatar_url: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize, utoipa::ToSchema)]
pub struct ProfileFieldDto {
pub name: String,
pub value: String,
}
#[derive(Debug, Clone, Serialize, Deserialize, utoipa::ToSchema)]
pub struct UpdateProfileFieldsRequest {
pub fields: Vec<ProfileFieldDto>,
}