open-policy-agent / open-policy-agent/java-opa-sdk

Replace Map<String,Object> manifest with typed model

Open
#69 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bundles evaluator
Dominant language
Java
Stars
16
Forks
24
Avg merge
8h 17m
Merged PRs (30d)
15

Description

Bundle.manifest is Map<String,Object>, parsed from .manifest by the BundleParser SPI. Every consumer (manifest enforcement, status events, decision logs) has to navigate the untyped tree and re-validate field types. A typed model would centralize that and let the compiler catch field-name typos.

  • Define a Manifest value type with revision, roots, metadata, and a place for delta indicators (#64) and signing fields (#39).
  • Have BundleParser produce Manifest directly; keep the raw map only if needed for round-tripping.
  • Update Bundle, BundlePlugin, and downstream consumers.
  • Should land before — or alongside — #63, #64, #68 to avoid each one inventing its own ad-hoc accessors.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Bundle.manifest and the BundleParser SPI, then trace manifest enforcement, status events, decision logs, BundlePlugin, and downstream consumers. Define the Manifest shape around revision, roots, metadata, delta indicators, and signing fields, and update the listed consumers so typed access replaces ad-hoc map navigation; completion means the affected components use the model consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.