-
Notifications
You must be signed in to change notification settings - Fork 55
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
IsValid should take in a context and return err #395
Comments
I have not been able to find usages of the function that have to be adjusted as the function signature changes, can you advise? |
Thanks for taking a look @vlad-timofeev ! There are no internal uses of this function. The SSI-service consumes this lib, so when it's updated, we'll need to make sure to also update the callers in there. For this issue I would recommend adding a unit test so we know this works as expected. |
Thank you for clarifying @andresuribe87 ! Created #399 |
@andresuribe87 is there anything else that should be updated to account for changes in #399 ? |
There isn't, thanks @vlad-timofeev ! |
The function below is hiding information from the users of the SDK, so it's difficult to understand what failed. The return type should be
error
.Additionally, it should take in a
context.Context
as it's first parameter because it's doing a network lookup.It's debatable whether the name of the function should stay as
IsValid
. If returning an error, consider namingValidate
.ssi-sdk/did/web/web.go
Line 32 in a087372
The text was updated successfully, but these errors were encountered: