openid / openid/dchp

path in query cannot address array elements

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

Nobody has claimed this yet.

Dominant language
Python
Stars
19
Forks
3
PR merge metrics
No merged PRs in 30d

Description

DataElementDef.path is [ + tstr ] in the core CDDL. For SD-JWT VC that means a path can only walk JSON object keys; it cannot select an element of an array claim or "all elements" of one. OpenID4VP's claims path pointer allows strings, null (all elements of the current array) and non-negative integers (a specific index) for this, and SD-JWT VC claim metadata uses the same path syntax, so array claims that are common in SD-JWT VCs (e.g. nationalities, address arrays) are not requestable with the current type.

We could widen the type to [ + (tstr / null / uint) ] and give each format definition the semantics of the non-string elements? (mdoc would continue to only use the two-string form).

Raised while moving the format-specific details into annexes (#21 / #22); the SD-JWT VC annex carries an editor's note pointing at this issue.

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 DataElementDef.path in the core CDDL and the SD-JWT VC annex, including the editor's note. Compare the OpenID4VP claims path pointer rules for strings, null, and non-negative integers, then determine how each format definition handles the added values while mdoc remains unchanged. Done means the type and format-specific semantics are agreed and the note is resolved.

Written by the indexing model from the issue text.

Assessment

Domain
api, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.