Skip to content

Commit 049cf07

Browse files
committed
fix: broken tests from updating the schema
1 parent 4da6d2b commit 049cf07

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ fn main() -> anyhow::Result<()> {
180180
owner: None,
181181
}),
182182
packager: None,
183-
confi_type: None,
183+
list_connections_result_type: None,
184184
};
185185

186186
if let Some(contents) = &mut config.contents {

src/nfpm_schema.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ use serde::{Deserialize, Serialize};
99
#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)]
1010
pub struct Config {
1111
// Non optional.
12-
pub name: String,
13-
pub arch: String,
14-
pub version: String,
12+
pub name: Option<String>,
13+
pub arch: Option<String>,
14+
pub version: Option<String>,
1515

1616
#[serde(skip_serializing_if = "Option::is_none")]
1717
pub apk: Option<ApkSpecificSettings>,

tests/it/parsing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn roundtrip() {
6868
file_info: None,
6969
packager: Some("deb".to_owned()),
7070
src: Some("/home/ubuntu/cargo-nfpm/target/release/cargo-nfpm".to_owned()),
71-
confi_type: Some(Type::Empty),
71+
list_connections_result_type: Some(Type::Empty),
7272
}]),
7373

7474
deb: Some(DebSpecificSettings {

0 commit comments

Comments
 (0)