open-policy-agent / opa-idea-plugin

Open Policy Agent plugin for IntelliJ
MIT License
56 stars 23 forks source link

Error reported when defining a Rule using dot notation #142

Open ograycode opened 1 year ago

ograycode commented 1 year ago

Here is an example that have an error reported if used in the plugin: https://play.openpolicyagent.org/p/NFSHCFUZsg

The plugin expects Rules to be defined by foo["bar"] and doesn't recognize foo.bar as also being correct.

anderseknert commented 1 year ago

Thanks for reporting this @ograycode 👍 It’s a recent feature in OPA, which is likely why it’s not supported here yet. CC @vgramer :)