opa icon indicating copy to clipboard operation
opa copied to clipboard

Arrays are not explained in the language description

Open SpecLad opened this issue 1 year ago • 2 comments
trafficstars

Short description

In https://www.openpolicyagent.org/docs/v0.64.1/policy-language/#sets it says:

In addition to arrays and objects, Rego supports set values.

But this is the first time arrays are mentioned in this document. I would expect to see a section titled "Arrays" under "Composite Values" that specifically explains arrays.

Steps To Reproduce

Not applicable

Expected behavior

Not applicable

Additional context

N/A

SpecLad avatar Apr 29 '24 15:04 SpecLad

Agreed, it does seem like an oversight that arrays are missing entirely from that section. Would you consider adding that to the docs? 🙂 If not, let me know and I can do that.

anderseknert avatar Apr 30 '24 20:04 anderseknert

Sorry, but I'm not well-versed in Rego enough to add something like that myself.

SpecLad avatar Apr 30 '24 21:04 SpecLad

No worries! I'll add something. Thanks for reporting 👍

anderseknert avatar May 03 '24 09:05 anderseknert