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.
()
| 154 | // Clearing macros will ensure CEL expressions can only contain linear evaluation paths, as |
| 155 | // comprehensions such as `all` and `exists` are enabled only via macros. |
| 156 | func ClearMacros() EnvOption { |
| 157 | return func(e *Env) (*Env, error) { |
| 158 | e.macros = NoMacros |
| 159 | return e, nil |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | // CustomTypeAdapter swaps the default types.Adapter implementation with a custom one. |
| 164 | // |
no outgoing calls