MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / validate_node

Method validate_node

graphlite/src/schema/validator.rs:80–89  ·  view source on GitHub ↗

ROADMAP v0.4.0 - Node validation for graph type DDL enforcement at INSERT time

(
        &self,
        graph_name: &str,
        label: &str,
        properties: &HashMap<String, Value>,
    )

Source from the content-addressed store, hash-verified

78 /// Validate that a node matches the graph type schema (with graph name)
79 #[allow(dead_code)] // ROADMAP v0.4.0 - Node validation for graph type DDL enforcement at INSERT time
80 pub fn validate_node(
81 &self,
82 graph_name: &str,
83 label: &str,
84 properties: &HashMap<String, Value>,
85 ) -> Result<(), ValidationError> {
86 // Get graph type for graph
87 let graph_type = self.get_graph_type_for_graph(graph_name)?;
88 self.validate_node_with_type(&graph_type, label, properties)
89 }
90
91 /// Validate that a node matches the graph type schema (with graph type directly)
92 pub fn validate_node_with_type(

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected