-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
The deprecated
attribute missing from many deprecated builtins
#5072
Comments
When these are properly marked, we can remove this kludge: opa/internal/cmd/genbuiltinmetadata/main.go Lines 159 to 161 in 1841703
|
Thinking about it, a useful follow-up would be to introduce a new category, "deprecated", and render some docs for those deprecated built-in functions, too. After all, if a user finds a use of |
@srenatus won't that kludge still be needed for |
Yeah. But that's less than before 😄 |
Additionally, propagate deprecated status (if deprecated = true) to the builtin_metadata.json file. Fixes open-policy-agent#5072 Signed-off-by: Anders Eknert <[email protected]>
Additionally, propagate deprecated status (if deprecated = true) to the builtin_metadata.json file. Fixes #5072 Signed-off-by: Anders Eknert <[email protected]>
Currently, only the
any
andall
functions have thedeprecated: true
attribute set. There are however many more builtins that have been deprecated, andre_match
in particular seems to be quite prevalent in policies found in the wild. Properly marking them as deprecated will allow the strict mode checker to fail compilation when encountering these functions, which will help users move away from them.In addition to adding the attribute to all deprecated functions, make sure to update the docs for strict mode to reflect this.
The text was updated successfully, but these errors were encountered: