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

Method new

graphlite/src/schema/validator.rs:59–64  ·  view source on GitHub ↗

Create a new schema validator

(catalog_manager: Arc<RwLock<CatalogManager>>)

Source from the content-addressed store, hash-verified

57impl SchemaValidator {
58 /// Create a new schema validator
59 pub fn new(catalog_manager: Arc<RwLock<CatalogManager>>) -> Self {
60 Self {
61 catalog_manager,
62 allow_unknown_properties: false, // Default to strict validation
63 }
64 }
65
66 /// Create a new schema validator with custom configuration
67 #[allow(dead_code)] // ROADMAP v0.4.0 - Configurable validation for different use cases

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected