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.
()
| 139 | // Clearing macros will ensure CEL expressions can only contain linear evaluation paths, as |
| 140 | // comprehensions such as `all` and `exists` are enabled only via macros. |
| 141 | func ClearMacros() EnvOption { |
| 142 | return func(e *Env) (*Env, error) { |
| 143 | e.macros = NoMacros |
| 144 | return e, nil |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | // CustomTypeAdapter swaps the default types.Adapter implementation with a custom one. |
| 149 | // |
no outgoing calls