Skip to content

Commit 0fe0b30

Browse files
committed
fixing tests
1 parent ee73e9e commit 0fe0b30

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

crates/builder/src/lib.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,17 @@ pub fn load_subsystem_builders(
179179

180180
if builder.is_none() {
181181
// Then try to load a dynamic builder
182-
subsystem_builders.push(
183-
core_plugin_interface::interface::load_subsystem_builder(
184-
&entry.path(),
185-
)?,
186-
);
182+
match core_plugin_interface::interface::load_subsystem_builder(
183+
&entry.path(),
184+
) {
185+
Ok(builder) => subsystem_builders.push(builder),
186+
Err(err) => {
187+
eprintln!(
188+
"Skipping dynamic subsystem builder {:?} due to error: {err}",
189+
entry.path()
190+
);
191+
}
192+
}
187193
};
188194
}
189195
}

crates/postgres-subsystem/postgres-core-builder/src/resolved_type.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ pub struct ResolvedField {
9494
pub default_value: Option<ResolvedFieldDefault>,
9595
pub update_sync: bool,
9696
pub readonly: bool,
97+
#[serde(skip_serializing_if = "Option::is_none")]
9798
pub relation_path: Option<Vec<String>>,
9899
pub doc_comments: Option<String>,
99100
pub computed: Option<ResolvedComputedField>,

0 commit comments

Comments
 (0)