-
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
feature/SPRIND-61_conformance-fixes #48
Conversation
… Veramo APIs" This reverts commit a6e506b.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Se eremarks. We cannot all of a sudden return less JWS recipients than inputs
}) | ||
) | ||
)).filter(signature => signature !== undefined ) as JwsJsonSignatureWithIdentifier[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This cannot be correct. We now all of a sudden return less objects than we should. Why is this change needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am possibly adding undefined elements on line 432. I need to return JwsJsonSignatureWithIdentifier[] , not (JwsJsonSignatureWithIdentifier | undefined)[]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but the whole point is that you started introducing this. If for whatever reason the signature could be empty (which according to the spec it really can't for a jws json general AFAIK), then it still should return the identifiers, not all of a sudden filter everything out.
But IMO this change reeks of something else going wrong when calling this function. So it should be solved outside of this function. If we really need this then we probably need something like an explicit param that allows the new behaviour (and only when that param is set)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolved
feature/SPRIND-60
Feature/sprind 61 jwe
No description provided.