-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metadata annotations behavior is different than the spec #6742
Comments
@johanfylling is this expected behavior that needs a doc update or a bug? |
I believe this is a matter of the documentation needing further clarification. If a user wants to have comments inside the
This might need explicit documentation too 🤔 . |
Yeah would be good to document the expected behavior here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: