From af7d8bfeee6ba999a076c622ebc035af3bbdda37 Mon Sep 17 00:00:00 2001 From: Antheas Kapenekakis Date: Fri, 6 Dec 2024 16:39:51 +0100 Subject: [PATCH] fix camelcase for events Signed-off-by: Antheas Kapenekakis --- lib/src/progress_jsonl.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/progress_jsonl.rs b/lib/src/progress_jsonl.rs index ea249552..37f3d2e9 100644 --- a/lib/src/progress_jsonl.rs +++ b/lib/src/progress_jsonl.rs @@ -65,9 +65,10 @@ pub struct SubTaskStep<'t> { /// An event emitted as JSON. #[derive(Debug, serde::Serialize, serde::Deserialize)] -#[serde(tag = "type", rename_all = "camelCase")] +#[serde(tag = "type")] pub enum Event<'t> { /// An incremental update to a container image layer download + #[serde(rename_all = "camelCase")] ProgressBytes { /// The version of the progress event format. #[serde(borrow)] @@ -100,6 +101,7 @@ pub enum Event<'t> { subtasks: Vec>, }, /// An incremental update with discrete steps + #[serde(rename_all = "camelCase")] ProgressSteps { /// The version of the progress event format. #[serde(borrow)]