You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With opa 0.64.1, the metadata is not being processed per the spec; so either opa is wrong or the spec is wrong on this.
Regarding metadata annotations the spec says:
...every line in the comment block containing the annotation must start at Column 1 in the module/file, or otherwise, they will be ignored
Steps To Reproduce
Consider this rego file (note the description line comment does NOT start in column 1):
It should recognize both the title and custom properties.
Actual behavior
opa recognizes only the title property.
Additional context
It is acting as though the “comment block” should stop at the first line that is not in column 1. That is incorrect because the spec goes on to say that there is only one way to end a comment block:
...include a blank line immediately after the comment block containing the YAML document. This tells OPA that the comment block containing the YAML document is finished
The text was updated successfully, but these errors were encountered:
Short description
With opa 0.64.1, the metadata is not being processed per the spec; so either opa is wrong or the spec is wrong on this.
Regarding metadata annotations the spec says:
Steps To Reproduce
Consider this rego file (note the
description
line comment does NOT start in column 1):Run
opa inspect -a .
on that directory.Expected behavior
It should recognize both the
title
andcustom
properties.Actual behavior
opa recognizes only the
title
property.Additional context
It is acting as though the “comment block” should stop at the first line that is not in column 1. That is incorrect because the spec goes on to say that there is only one way to end a comment block:
The text was updated successfully, but these errors were encountered: