MCPcopy Create free account
hub / github.com/cel-expr/cel-go / ValidateDurationLiterals

Function ValidateDurationLiterals

cel/validator.go:227–229  ·  view source on GitHub ↗

ValidateDurationLiterals ensures that duration literal arguments are valid immediately after type-check.

()

Source from the content-addressed store, hash-verified

225
226// ValidateDurationLiterals ensures that duration literal arguments are valid immediately after type-check.
227func ValidateDurationLiterals() ASTValidator {
228 return newFormatValidator(overloads.TypeConvertDuration, 0, evalCall)
229}
230
231// ValidateTimestampLiterals ensures that timestamp literal arguments are valid immediately after type-check.
232func ValidateTimestampLiterals() ASTValidator {

Callers 4

validator.goFile · 0.85
ExtendedValidationsFunction · 0.85

Calls 1

newFormatValidatorFunction · 0.85

Tested by 2