Skip to content
This repository was archived by the owner on Nov 12, 2026. It is now read-only.
This repository was archived by the owner on Nov 12, 2026. It is now read-only.

Port opal validation/inspection (check/verbs/functions/validate-ingest) #4

Open

Description

@beengud

Port opal validation/inspection commands from the Go fork

Source: beengud/observe PR #4 (OPAL lint and reference). Files: cmd_opal.go, cmd_opal_validate.go, ot_opal.go.
New CLI status: Absent. The new CLI has query (OPAL execution) but no lint/validation or language reference.

Old command surface

observe opal check <pipeline>              # validate OPAL via checkQueries API
observe opal check --file <path>           #   -> ERROR line:col: msg (exit 1) | WARN kind: msg (exit 0) | OK + result schema fields
observe opal verbs                         # list all OPAL verbs (category, description), TSV, sorted
observe opal functions                     # list all OPAL functions (category, return type, description), TSV, sorted
observe opal validate-ingest --dataset <id> <pipeline>   # validate ingest filter expr via validateIngestFilterExpression API

Flags: -f/--file, --dataset.

Behavior / API

  • check → checkQueries; validate-ingest → validateIngestFilterExpression; verbs/functions → tenant OPAL metadata queries.
  • Exit codes matter for scripting/CI: non-zero on validation errors.

Acceptance

  • All four subcommands ported preserving the ERROR line:col / WARN / OK output contract and exit codes; tests ported.

Activity

  1. added
    enhancement
    port-from-go
    on Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementport-from-go

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions