rego.Function runtime extension json ints/floats are strings #494
Unanswered
shortwavedave
asked this question in
OPA and Rego
Replies: 1 comment
-
Can't claim that's very pretty, though 😅. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a custom rego function that validates json input based on some custom logic. Howeverm the
a
term which is a json object always converts numbers to strings. I tried changing the Args type totypes.A
andtypes.NewObject
but still the same result. Does anyone have any advice?for example, an input like this would erroneously convert the number to a string:
looks like this when I step through and debug:
Beta Was this translation helpful? Give feedback.
All reactions