Ory Permission Language: support Array syntax
nidomiro opened this issue · comments
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- This issue affects my Ory Network project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
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.