ClearMacros options clears all parser macros. Clearing macros will ensure CEL expressions can only contain linear evaluation paths, as comprehensions such as `all` and `exists` are enabled only via macros.
()
| 160 | // Clearing macros will ensure CEL expressions can only contain linear evaluation paths, as |
| 161 | // comprehensions such as `all` and `exists` are enabled only via macros. |
| 162 | func ClearMacros() EnvOption { |
| 163 | return func(e *Env) (*Env, error) { |
| 164 | e.macros = NoMacros |
| 165 | return e, nil |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | // CustomTypeAdapter swaps the default types.Adapter implementation with a custom one. |
| 170 | // |
no outgoing calls