Skip to content

Implement yaml.is_valid builtin #144

Description

@sspaink

Missing builtin

  • yaml.is_valid

Context

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

Belongs with the YAML builtins; yaml.marshal/yaml.unmarshal support lives in the JSON/YAML area.

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 requestevaluatorgood first issueGood for newcomers

    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