Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions core/src/ten_rust/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use tokio::runtime::Runtime;

use crate::{
graph::{graph_info::GraphInfo, Graph},
json_schema::ten_validate_graph_json_string,
pkg_info::manifest::api::ManifestApi,
};

Expand Down Expand Up @@ -502,6 +503,12 @@ pub unsafe extern "C" fn ten_rust_graph_validate_complete_flatten(
Some(src_loc_json_str_rust_str)
};

if let Err(e) = ten_validate_graph_json_string(json_str_rust_str) {
tracing::warn!(
"Graph JSON schema validation failed during start_graph handling, continuing: {e}"
);
}

// Parse the JSON string into a Graph
let graph = {
let rt = Runtime::new().unwrap();
Expand Down
Loading
Loading