Skip to content

Implement walk builtin #141

Description

@sspaink

Missing builtin

  • walk

Context

This OPA builtin is not implemented in the SDK. It is exercised by the Rego compliance suite and currently raises FunctionNotFoundError.

walk(x, [path, value]) recursively yields paths/values; it is a relation that generates multiple bindings.

Implementation notes

Register with an @OpaBuiltin-annotated static method (see io.github.open_policy_agent.opa.ast.builtin.impls). Core builtins are in BuiltinRegistry.BUILTIN_CLASSES; domain-specific ones live in an opa-builtins-* module via the BuiltinProvider SPI.

Reference: https://www.openpolicyagent.org/docs/policy-reference/#built-in-functions

Metadata

Metadata

Assignees

No one assigned

    Labels

    builtinsMissing or in-progress OPA builtin implementationsenhancementNew feature or requestevaluator

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions