Skip to content

Commit

Permalink
Rename to LinkedDomainsJSONLD
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurdotb committed Sep 10, 2024
1 parent 9e60227 commit 2819534
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion services/diddoc_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (dds DIDDocService) Resolve(did string, version string, contentType types.C

for _, service := range didDoc.Service {
if service.Type == types.LinkedDomains {
didDoc.AddContext(types.DIFDIDConfigurationJSONLD)
didDoc.AddContext(types.LinkedDomainsJSONLD)
break
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/diddoc/common/did_doc_resolve_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var _ = DescribeTable("Test Resolve method", func(testCase resolveDidDocTestCase
(testCase.expectedError == nil) {
testCase.expectedDIDResolution.Did.Context = []string{
types.DIDSchemaJSONLD,
types.DIFDIDConfigurationJSONLD,
types.LinkedDomainsJSONLD,
types.JsonWebKey2020JSONLD,
}
} else if testCase.expectedDIDResolution.Did != nil {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/diddoc/request/diddoc_positive_cases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var _ = DescribeTable("Test Query handlers with versionId and versionTime params
expectedDIDResolution := testCase.expectedResolution.(*types.DidResolution)

if (testCase.resolutionType == "" || testCase.resolutionType == types.DIDJSONLD) && testCase.expectedError == nil {
expectedDIDResolution.Did.Context = []string{types.DIDSchemaJSONLD, types.DIFDIDConfigurationJSONLD, types.JsonWebKey2020JSONLD }
expectedDIDResolution.Did.Context = []string{types.DIDSchemaJSONLD, types.LinkedDomainsJSONLD, types.JsonWebKey2020JSONLD}
} else if expectedDIDResolution.Did != nil {
expectedDIDResolution.Did.Context = nil
}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/diddoc/request/diddoc_transform_key_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var _ = DescribeTable("Test Query handler with transformKeys params", func(testC
expectedDIDResolution := testCase.expectedResolution.(*types.DidResolution)

if (testCase.resolutionType == "" || testCase.resolutionType == types.DIDJSONLD) && testCase.expectedError == nil {
expectedDIDResolution.Did.Context = []string{types.DIDSchemaJSONLD, types.DIFDIDConfigurationJSONLD, types.JsonWebKey2020JSONLD }
expectedDIDResolution.Did.Context = []string{types.DIDSchemaJSONLD, types.LinkedDomainsJSONLD, types.JsonWebKey2020JSONLD}
} else if expectedDIDResolution.Did != nil {
expectedDIDResolution.Did.Context = nil
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var _ = DescribeTable("Test DIDDocEchoHandler function", func(testCase resolveDI
context, rec := utils.SetupEmptyContext(request, testCase.resolutionType, utils.MockLedger)

if (testCase.resolutionType == "" || testCase.resolutionType == types.DIDJSONLD) && testCase.expectedError == nil {
testCase.expectedDIDResolution.Did.Context = []string{types.DIDSchemaJSONLD, types.DIFDIDConfigurationJSONLD, types.JsonWebKey2020JSONLD }
testCase.expectedDIDResolution.Did.Context = []string{types.DIDSchemaJSONLD, types.LinkedDomainsJSONLD, types.JsonWebKey2020JSONLD}
} else if testCase.expectedDIDResolution.Did != nil {
testCase.expectedDIDResolution.Did.Context = nil
}
Expand Down
2 changes: 1 addition & 1 deletion types/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (tKType TransformKeysType) IsSupported() bool {

const (
DIDSchemaJSONLD = "https://www.w3.org/ns/did/v1"
DIFDIDConfigurationJSONLD = "https://identity.foundation/.well-known/did-configuration/v1"
LinkedDomainsJSONLD = "https://identity.foundation/.well-known/did-configuration/v1"
ResolutionSchemaJSONLD = "https://w3id.org/did-resolution/v1"
Ed25519VerificationKey2020JSONLD = "https://w3id.org/security/suites/ed25519-2020/v1"
Ed25519VerificationKey2018JSONLD = "https://w3id.org/security/suites/ed25519-2018/v1"
Expand Down

0 comments on commit 2819534

Please sign in to comment.