-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(key-manager): wrong schema reference in plugin #22
Comments
Importing the schema json file with
and then setting the schema like: Should work. However we need to update the This leads to a problem:
Beside the current file is generated outside of the rootDir of the project so it can not be referenced (I tried to include it with the file command is the tsconfig but without success) |
In the meantime it can be patched like:
We cannot just overwrite it, it needs to be appended. |
The SphereonKeyManager is appending the Veramo Keymanager with some functions like
SSI-SDK-crypto-extensions/packages/key-manager/src/agent/SphereonKeyManager.ts
Line 40 in 650b1f4
However the schema value from
VeramoKeyManager
is not overwritten, it is still pointing to the schema of the veramo pluging that is not including these new functions. This will lead to an error when exposing the methods via the remote service since the objectkeyManagerVerify
does not exist in the schema.Solution:
override the schema in
SSI-SDK-crypto-extensions/packages/key-manager/src/agent/SphereonKeyManager.ts
Line 7 in 650b1f4
plugin.schema.json
that is including the function.The text was updated successfully, but these errors were encountered: