Skip to content

Commit

Permalink
skip serialize display_info if None for v2 JSON compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Dec 5, 2024
1 parent 8c30a16 commit 9ee7960
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tlmcmddb/src/tlm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ pub struct Field {
pub conversion_info: ConversionInfo,
/// GS SW などでテレメトリを表示するときの情報
#[serde(default)]
#[serde(skip_serializing_if = "Option::is_none")] // serialize v2 compatible if None
pub display_info: Option<DisplayInfo>,
/// このフィールドの説明(衛星運用者向け)
pub description: String,
Expand Down

0 comments on commit 9ee7960

Please sign in to comment.