Anders Eknert
e43ef0a979
Use any in place of interface{} ( #7566 )
...
Earlier this evening I tried to run the Go
[modernize](https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize )
analyzer on OPA. That didn't go as planned:
- https://github.com/golang/go/issues/73661
- https://github.com/golang/go/issues/73663
While we wait for that to be fixed, I figured an old-fashioned
search-and-replace across the repo may work for at least the
`interface{}` to `any` conversion. That should help make it easier
to see the other fixes as applied by the modernize tool once it has
had those issues resolved.
Signed-off-by: Anders Eknert <anders@styra.com >
2025-05-12 13:57:48 +02:00
Johan Fylling
7bb6dbe36b
Preparing for v1 API
...
Moving (most) source to v1 root package to prepare for v0/v1 API separation.
Signed-off-by: Johan Fylling <johan.dev@fylling.se >
2024-12-12 15:09:03 +01:00
Anders Eknert
3c6a237ab6
docs: ignore deprecated built-ins in reference ( #5697 )
...
Fixes #5607
Signed-off-by: Anders Eknert <anders@styra.com >
2023-02-24 17:27:45 +01:00
Anders Eknert
1e12cc2edf
Add deprecated flag to all deprecated builtins ( #5078 )
...
Additionally, propagate deprecated status (if deprecated = true)
to the builtin_metadata.json file.
Fixes #5072
Signed-off-by: Anders Eknert <anders@eknert.com >
2022-09-01 11:55:08 +02:00
Stephan Renatus
855c6bd44a
ast/builtins: fix 'type_name' type and docs ( #4920 )
...
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com >
2022-07-21 09:41:17 +02:00
Stephan Renatus
d5b8a6130e
release process: fix metadata logic ( #4836 )
...
We got 0.42.0 twice when version/version.go already was "0.42.0".
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com >
2022-07-01 14:19:43 +02:00
Stephan Renatus
3f2f6fa93d
build: omit empty descriptions of function args ( #4810 )
...
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com >
2022-06-23 15:05:29 +02:00
Stephan Renatus
e85190f156
genbuiltinmetadata: suppress known uncategorized builtins ( #4803 )
...
This will suppress the
WARN: not categorized: type_name
lines that we expect.
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com >
2022-06-22 07:22:26 +02:00
Stephan Renatus
687beb7541
build: integrate builtin_metadata.json handling in release process ( #4763 )
...
Fixes #4754 .
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com >
2022-06-20 10:57:17 +02:00
Stephan Renatus
e8deba62bd
types, ast, docs: Add support for named function arg declarations
...
This commit adds support for named argument declarations for built-in
functions as well as additional metadata/annotations on built-in
functions (e.g., descriptions, categories, etc.) This commit allows us
to generate a data file (builtin_metadata.json) that other tools can
consume to improve the Rego authoring experience.
Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com >
Co-authored-by: Torin Sandall <torinsandall@gmail.com >
2022-05-24 09:38:07 -07:00