Skip to content

Commit

Permalink
Merge pull request #36 from peridio/ENG-3877
Browse files Browse the repository at this point in the history
do not serialize null disabled field
  • Loading branch information
andresperi authored Nov 9, 2024
2 parents 5c51fec + 76d265b commit 17972f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "peridio-sdk"
description = "Peridio SDK"
homepage = "https://peridio.com"
repository = "https://github.com/peridio/reishi"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
build = "build.rs"

Expand Down
2 changes: 2 additions & 0 deletions src/api/releases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ pub struct CreateReleaseParams {
pub bundle_prn: String,
pub cohort_prn: String,
pub description: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(default)]
pub disabled: Option<bool>,
pub name: String,
#[serde(skip_serializing_if = "Option::is_none")]
Expand Down

0 comments on commit 17972f9

Please sign in to comment.