mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-05 05:32:59 +00:00
Merge pull request #4574 from jelipo/fix-serde-serializing
oci: fix serde skip serializing condition
This commit is contained in:
commit
b33ad7e57a
@ -43,7 +43,7 @@ pub struct Spec {
|
||||
pub process: Option<Process>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub root: Option<Root>,
|
||||
#[serde(default, skip_serializing_if = "String:: is_empty")]
|
||||
#[serde(default, skip_serializing_if = "String::is_empty")]
|
||||
pub hostname: String,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub mounts: Vec<Mount>,
|
||||
|
Loading…
Reference in New Issue
Block a user