Skip to content

Commit

Permalink
fix: we normally use camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Nov 5, 2024
1 parent b413951 commit 5fbbd9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions modules/importer/src/model/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5fbbd9a

Please sign in to comment.