Skip to content

Commit

Permalink
fix camelcase for events
Browse files Browse the repository at this point in the history
Signed-off-by: Antheas Kapenekakis <[email protected]>
  • Loading branch information
antheas committed Dec 6, 2024
1 parent c14e4af commit af7d8bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/progress_jsonl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -100,6 +101,7 @@ pub enum Event<'t> {
subtasks: Vec<SubTaskBytes<'t>>,
},
/// An incremental update with discrete steps
#[serde(rename_all = "camelCase")]
ProgressSteps {
/// The version of the progress event format.
#[serde(borrow)]
Expand Down

0 comments on commit af7d8bf

Please sign in to comment.