diff --git a/starky/src/types.rs b/starky/src/types.rs index 79510ce3..2e822278 100644 --- a/starky/src/types.rs +++ b/starky/src/types.rs @@ -18,6 +18,7 @@ pub struct Public { #[derive(Serialize, Deserialize, Debug, Clone)] pub struct Reference { + #[serde(skip_serializing_if = "Option::is_none")] pub polType: Option, #[serde(rename = "type")] pub type_: String,