vcr/revocation/statuslist2021_verifier.go
Method StatusList2021.validate
has 51 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (cs *StatusList2021) validate(cred vc.VerifiableCredential) (*StatusList2021CredentialSubject, error) {
// TODO: replace with json schema validator?
{ // Credential checks
// context
// all fields in the StatusList2021Credential must be defined by the contexts