ory / keto

The most scalable and customizable permission server on the market. Fix your slow or broken permission system with Google's proven "Zanzibar" approach. Supports ACL, RBAC, and more. Written in Go, cloud native, headless, API-first. Available as a service on Ory Network and for self-hosters.

Home Page:https://www.ory.sh/?utm_source=github&utm_medium=banner&utm_campaign=keto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ory Permission Language: support Array syntax

nidomiro opened this issue · comments

Preflight checklist

Describe your problem

The Ory Permission Language currently supports arrays using the [] syntax.
Some users (or linter) prefer to use the Array<> Syntax but it's currently not supported.

Describe your ideal solution

Also allow Array<User | SubjectSet<Group, "members">> as valid Syntax for (User | SubjectSet<Group, "members">)[]

Workarounds or alternatives

Version

Ory Network (15.11.2022)

Additional Context

No response

I was hesitant if we want to diversify the syntax, but I think in this case it is a nice addition. @zepatrik any objections? Do we need to adapt the types as well?

Everything should work as expected there.