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

Function validate_timewindow_format

graphlite/src/ast/validator.rs:2078–2087  ·  view source on GitHub ↗

Validate time window format

(tw: &str, errors: &mut Vec<ValidationError>)

Source from the content-addressed store, hash-verified

2076
2077/// Validate time window format
2078fn validate_timewindow_format(tw: &str, errors: &mut Vec<ValidationError>) {
2079 // Basic TIME_WINDOW format validation
2080 if !tw.starts_with("TIME_WINDOW(") || !tw.ends_with(')') {
2081 errors.push(ValidationError {
2082 message: "TimeWindow must be in format TIME_WINDOW(start, end)".to_string(),
2083 location: None,
2084 error_type: ValidationErrorType::Syntax,
2085 });
2086 }
2087}
2088
2089/// Validate edge patterns
2090fn validate_edge_patterns(query: &Query, errors: &mut Vec<ValidationError>) {

Callers 1

validate_literalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected