openid / openid/OpenID4VCI

Provide examples for array fields for `claims` and `credential_definition` in `credential_configurations_supported`

Open
#340 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
125
Forks
41
PR merge metrics
No merged PRs in 30d

Description

If an array contains strings, booleans, numbers as value then should it be represented as below:

{
  "arrayFieldWithNonObjectOrArrayValue": {}
}

And if array contains object as value, then should it be represented as below:

{
  "arrayFieldWithObjectValue": [
    {
      "field1": {},
      "field2": {},
      "field3": {}
    }
  ]
}

And if array contains array as value, then should it be represented as below:

{
  "arrayFieldWithArrayValue": [
    [
      {
        "field1": {},
        "field2": {},
        "field3": {}
      }
    ]
  ]
}

or is it possible to follow JSON schema here ?

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

Review the issue's examples for arrays containing scalar, object, and nested-array values, then check the surrounding credential_configurations_supported specification and its JSON Schema if available. Confirm the intended representation for claims and credential_definition, and document the agreed examples or schema-based rule so the result is unambiguous.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.