Closed dwertent closed 3 months ago
Summarizing your review:
@dwertent build failing and e2e tests as well
something wrong with the UUID verification restclient.go:118: <!! {"error":"FF00126: Unknown identity type: %!!(MISSING)s(MISSING)"}
This PR is no longer needed as we've resolved the issue with a different approach. I will open a new PR to update the FireFly-common tag once it's published.
Overview
Swagger Documentation Issue
The problem occurred when rendering the Swagger documentation. The code is designed to list API paths and generate documentation based on those paths. However, an issue arose in the way the
Find
function was used. This function is agnostic to the specific value of the API keys, which led to the swagger generator pulling in the wrong documentation.Solution
I considered the following potential solutions:
Find
function that is aware of the API key value.identities/{ID}
can accept either a UUID or a DID.I chose the second solution for the following reasons:
Find
function, and it may take time to implement a custom version.Side Note
I recommend deprecating DID support in favor of using UUIDs exclusively. This would simplify our API by providing a single, consistent definition for ID, reducing potential confusion and complexity in future development.
This PR fixes #1528