mirror of
https://github.com/moghtech/komodo.git
synced 2026-09-11 00:01:21 +00:00
skip serializing profiles when empty
This commit is contained in:
@@ -519,7 +519,11 @@ pub struct CliConfig {
|
||||
#[serde(default)]
|
||||
pub cli_logging: LogConfig,
|
||||
/// Configure additional profiles.
|
||||
#[serde(default, alias = "profile")]
|
||||
#[serde(
|
||||
default,
|
||||
alias = "profile",
|
||||
skip_serializing_if = "Vec::is_empty"
|
||||
)]
|
||||
pub profiles: Vec<CliConfig>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user