eclipse-edc / IdentityHub

IdentityHub
Apache License 2.0
21 stars 25 forks source link

fix(api): gracefully handle missing type in query credential by type #490

Closed paullatzelsperger closed 1 week ago

paullatzelsperger commented 1 week ago

What this PR changes/adds

The "query-by-credential-type" endpoint now gracefully handles the case where the credential type is not specified. In that case, all credentials are returned (within the constraints of the default QuerySpec).

Why it does that

providing an incomplete criterion caused a Nullpointer Exception

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Linked Issue(s)

Closes # <-- insert Issue number if one exists

_Please be sure to take a look at the contributing guidelines and our etiquette for pull requests._