@@ -92,18 +92,27 @@ pub struct RemotePackage {
9292 #[ serde( default , deserialize_with = "optional_number" ) ]
9393 pub rank : Option < u64 > ,
9494
95+ #[ serde( default , deserialize_with = "empty_is_none" ) ]
9596 pub pkg : Option < String > ,
97+
9698 pub pkg_id : String ,
9799 pub pkg_name : String ,
100+
101+ #[ serde( default , deserialize_with = "empty_is_none" ) ]
98102 pub pkg_family : Option < String > ,
103+
104+ #[ serde( default , deserialize_with = "empty_is_none" ) ]
99105 pub pkg_type : Option < String > ,
100106
101107 #[ serde( default , deserialize_with = "empty_is_none" ) ]
102108 pub pkg_webpage : Option < String > ,
103109
104110 pub description : String ,
105111 pub version : String ,
112+
113+ #[ serde( default , deserialize_with = "empty_is_none" ) ]
106114 pub version_upstream : Option < String > ,
115+
107116 pub download_url : String ,
108117
109118 #[ serde( default , deserialize_with = "optional_number" ) ]
@@ -116,7 +125,11 @@ pub struct RemotePackage {
116125 pub ghcr_size_raw : Option < u64 > ,
117126
118127 pub ghcr_files : Option < Vec < String > > ,
128+
129+ #[ serde( default , deserialize_with = "empty_is_none" ) ]
119130 pub ghcr_blob : Option < String > ,
131+
132+ #[ serde( default , deserialize_with = "empty_is_none" ) ]
120133 pub ghcr_url : Option < String > ,
121134
122135 #[ serde( alias = "src_url" ) ]
@@ -137,7 +150,10 @@ pub struct RemotePackage {
137150 #[ serde( alias = "tag" ) ]
138151 pub tags : Option < Vec < String > > ,
139152
153+ #[ serde( default , deserialize_with = "empty_is_none" ) ]
140154 pub bsum : Option < String > ,
155+
156+ #[ serde( default , deserialize_with = "empty_is_none" ) ]
141157 pub shasum : Option < String > ,
142158
143159 #[ serde( default , deserialize_with = "empty_is_none" ) ]
0 commit comments