Normandy.Guardrails.Builtins.MaxLength
(normandy v0.6.2)
View Source
Rejects values whose string length exceeds :limit.
Options
:limit(required) — positive integer, maximum length in graphemes.:field(optional) — atom naming a field to extract from a struct or map before checking. If omitted, the value itself must be a string.
If the configured field is missing or nil the guard is a no-op (nothing to
check). If the resolved value is not a string, the guard raises
ArgumentError — a string-length guard applied to a non-string is a
configuration bug, not a runtime violation.