You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'allow_multiple` allows returning multiple CredentialItems but the current response structure doesn't support this #70
Assuming that the ScenarioRef and CredentialRef refer to the corresponding identifiers in the request (which is implied, but not actually said). While this works for the ScenarioRef, it has issues for the CredentialRef. Not only because of the issue you mentioned, but also in the case where a single CredentialItem is a response to multiple CredentielQueries.
Your solution works for the case of allow_multiple, but I think we should probably also fix the other case.
Some possible solutions:
Option 1
Each CredentialItem has an array that describes which CredentialQuery it's an answer to.
For each scenario, reference all the credentialItems that are relevant.
Each CredentialItem has an array that describes which credentialQuery its an answer to
Each Scenario references the credentialQueries that are relevant
Activity
martijnharing commentedon Oct 8, 2026
Looking at the current structureI think the problem is actually a bit bigger.
In the response there is the following structure:
Assuming that the ScenarioRef and CredentialRef refer to the corresponding identifiers in the request (which is implied, but not actually said). While this works for the ScenarioRef, it has issues for the CredentialRef. Not only because of the issue you mentioned, but also in the case where a single CredentialItem is a response to multiple CredentielQueries.
Your solution works for the case of allow_multiple, but I think we should probably also fix the other case.
Some possible solutions:
Option 1
Each CredentialItem has an array that describes which CredentialQuery it's an answer to.
For each scenario, reference all the credentialItems that are relevant.
This would look like:
option 2
Each CredentialItem has an array that describes which credentialQuery its an answer to
Each Scenario references the credentialQueries that are relevant
This would look like:
option3
Each credentialItem has an array which describes which CredentialQuery and which Scenario it's an answer to
This would look like:
I think I have a slight preference for option 2.
martijnharing commentedon Oct 8, 2026
So I made this comment before reading #69 , I propose continuing the discussion there and check if it also addresses the issue mentioned here.
Response: list CredentialItems with query_refs; rename CredentialRef …
Response: list CredentialItems with query_refs; rename CredentialRef …