From 5fbbd9ac080c7d11c670b822b5265e5c5e2e65ba Mon Sep 17 00:00:00 2001 From: Jens Reimann Date: Tue, 5 Nov 2024 14:38:15 +0100 Subject: [PATCH] fix: we normally use camel case --- modules/importer/src/model/mod.rs | 1 + openapi.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/importer/src/model/mod.rs b/modules/importer/src/model/mod.rs index e5122157f..2a3aa778b 100644 --- a/modules/importer/src/model/mod.rs +++ b/modules/importer/src/model/mod.rs @@ -107,6 +107,7 @@ pub struct ImporterData { } #[derive(Clone, Debug, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)] +#[serde(rename_all = "camelCase")] pub struct Progress { /// The current processed items. pub current: u32, diff --git a/openapi.yaml b/openapi.yaml index c9f46c563..e2a3394bf 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -3054,19 +3054,19 @@ components: - total - percent - rate - - estimated_seconds_remaining - - estimated_completion + - estimatedSecondsRemaining + - estimatedCompletion properties: current: type: integer format: int32 description: The current processed items. minimum: 0 - estimated_completion: + estimatedCompletion: type: string format: date-time description: The estimated time of completion. - estimated_seconds_remaining: + estimatedSecondsRemaining: type: integer format: int64 description: The estimated remaining time in seconds.