Skip to content

Commit 0d24cd7

Browse files
committed
use pascal case for the type to match status
Signed-off-by: Antheas Kapenekakis <[email protected]>
1 parent b7cc230 commit 0d24cd7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/src/progress_jsonl.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,13 @@ pub struct SubTaskStep<'t> {
6565

6666
/// An event emitted as JSON.
6767
#[derive(Debug, serde::Serialize, serde::Deserialize)]
68-
#[serde(tag = "type", rename_all = "camelCase")]
68+
#[serde(
69+
tag = "type",
70+
rename_all = "PascalCase",
71+
rename_all_fields = "camelCase"
72+
)]
6973
pub enum Event<'t> {
7074
/// An incremental update to a container image layer download
71-
#[serde(rename_all = "camelCase")]
7275
ProgressBytes {
7376
/// The version of the progress event format.
7477
#[serde(borrow)]
@@ -101,7 +104,6 @@ pub enum Event<'t> {
101104
subtasks: Vec<SubTaskBytes<'t>>,
102105
},
103106
/// An incremental update with discrete steps
104-
#[serde(rename_all = "camelCase")]
105107
ProgressSteps {
106108
/// The version of the progress event format.
107109
#[serde(borrow)]

0 commit comments

Comments
 (0)