Skip to content

not allowed hyphen in dot notation? #82

Discussion options

You must be logged in to vote

Hyphen isn't valid in Rego identifiers, but is in JSON. If you have attributes in YAML/JSON containing hyphens in their names, you can reference them like:

data.configuration.root_module.module_calls["foo-baa"]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zucoinshur
Comment options

Answer selected by zucoinshur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants