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

Function ValidateDurationLiterals

cel/validator.go:216–218  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

214
215// ValidateDurationLiterals ensures that duration literal arguments are valid immediately after type-check.
216func ValidateDurationLiterals() ASTValidator {
217 return newFormatValidator(overloads.TypeConvertDuration, 0, evalCall)
218}
219
220// ValidateTimestampLiterals ensures that timestamp literal arguments are valid immediately after type-check.
221func ValidateTimestampLiterals() ASTValidator {

Callers 4

validator.goFile · 0.85
ExtendedValidationsFunction · 0.85

Calls 1

newFormatValidatorFunction · 0.85

Tested by 2