Skip to content

Commit

Permalink
remove service type validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Oct 1, 2024
1 parent 063b893 commit e573d12
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions x/ssi/types/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ var supportedVerificationMethodTypes []string = func() []string {
}()

// Supported Service Types
var SupportedServiceTypes = []string{
"LinkedDomains",
}
// var SupportedServiceTypes = []string{
// "LinkedDomains",
// }

// Did Document ID
const DocumentIdentifierDid = "did"
Expand Down
18 changes: 9 additions & 9 deletions x/ssi/types/diddoc_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ func validateServices(services []*Service) error {
}

// validate service Type
foundType := false
for _, sType := range SupportedServiceTypes {
if service.Type == sType {
foundType = true
}
}
if !foundType {
return fmt.Errorf("service Type %s is Invalid", service.Type)
}
// foundType := false
// for _, sType := range SupportedServiceTypes {
// if service.Type == sType {
// foundType = true
// }
// }
// if !foundType {
// return fmt.Errorf("service Type %s is Invalid", service.Type)
// }
}

// check if any duplicate service id exists
Expand Down

0 comments on commit e573d12

Please sign in to comment.