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

Function ValidateDurationLiterals

cel/validator.go:226–228  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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

Callers 4

ExtendedValidationsFunction · 0.85

Calls 1

newFormatValidatorFunction · 0.85

Tested by 2