You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, all numbers were converted to strings before invoking
fmt.Sprintf. As a result, policies could not use fmt verbs for integer
and floating point values.
With these changes, OPA will try to convert numbers to int or float64
before falling back to string for values greater than max/min
int64/float64.
Fixesopen-policy-agent#748
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
The sprintf built-in is converting all operands to strings before running sprintf. As a result, number verbs (e.g., %d) do not work correctly.
Example:
Expected:
The text was updated successfully, but these errors were encountered: