From 8aad90cb9b9a83ce365f42e961dd6dd4ea0c926f Mon Sep 17 00:00:00 2001 From: Enrico Risa Date: Tue, 5 Mar 2024 10:23:18 +0100 Subject: [PATCH] chore: credential context fix + fmt (#15) --- .../schema/context/credentials.context.json | 114 +++++++++--------- .../schema/context/policy.context.json | 43 +++---- 2 files changed, 77 insertions(+), 80 deletions(-) diff --git a/cx/credentials/schema/context/credentials.context.json b/cx/credentials/schema/context/credentials.context.json index 8419a10..21bdce7 100644 --- a/cx/credentials/schema/context/credentials.context.json +++ b/cx/credentials/schema/context/credentials.context.json @@ -1,58 +1,60 @@ { - "@version": 1.1, - "@protected": true, - "cred": "https://www.w3.org/2018/credentials#", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "cx-credentials": "https://w3id.org/catenax/credentials/", - "BehavioralTwinCredential": { - "@id": "cx-credentials:BehavioralTwinCredential" - }, - "BpnCredential": { - "@id": "cx-credentials:BpnCredential" - }, - "DismantlerCredential": { - "@id": "cx-credentials:DismantlerCredential" - }, - "MembershipCredential": { - "@id": "cx-credentials:MembershipCredential" - }, - "PcfCredential": { - "@id": "cx-credentials:PcfCredential" - }, - "ResiliencyCredential": { - "@id": "cx-credentials:ResiliencyCredential" - }, - "QualityCredential": { - "@id": "cx-credentials:QualityCredential" - }, - "SustainabilityCredential": { - "@id": "cx-credentials:SustainabilityCredential" - }, - "TraceabilityCredential": { - "@id": "cx-credentials:TraceabilityCredential" - }, - "activityType": { - "@id": "cx-credentials:activityType", - "@type": "xsd:string" - }, - "allowedVehicleBrands": { - "@id": "cx-credentials:allowedVehicleBrands", - "@container": "@set" - }, - "bpn": { - "@id": "cx-credentials:bpn", - "@type": "xsd:string" - }, - "contractTemplate": { - "@id": "cx-credentials:contractTemplate", - "@type": "@id" - }, - "contractVersion": { - "@id": "cx-credentials:contractVersion", - "@type": "@id" - }, - "holderIdentifier": { - "@id": "cx-credentials:holderIdentifier", - "@type": "xsd:string" + "@context": { + "@version": 1.1, + "@protected": true, + "cred": "https://www.w3.org/2018/credentials#", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "cx-credentials": "https://w3id.org/catenax/credentials/", + "BehavioralTwinCredential": { + "@id": "cx-credentials:BehavioralTwinCredential" + }, + "BpnCredential": { + "@id": "cx-credentials:BpnCredential" + }, + "DismantlerCredential": { + "@id": "cx-credentials:DismantlerCredential" + }, + "MembershipCredential": { + "@id": "cx-credentials:MembershipCredential" + }, + "PcfCredential": { + "@id": "cx-credentials:PcfCredential" + }, + "ResiliencyCredential": { + "@id": "cx-credentials:ResiliencyCredential" + }, + "QualityCredential": { + "@id": "cx-credentials:QualityCredential" + }, + "SustainabilityCredential": { + "@id": "cx-credentials:SustainabilityCredential" + }, + "TraceabilityCredential": { + "@id": "cx-credentials:TraceabilityCredential" + }, + "activityType": { + "@id": "cx-credentials:activityType", + "@type": "xsd:string" + }, + "allowedVehicleBrands": { + "@id": "cx-credentials:allowedVehicleBrands", + "@container": "@set" + }, + "bpn": { + "@id": "cx-credentials:bpn", + "@type": "xsd:string" + }, + "contractTemplate": { + "@id": "cx-credentials:contractTemplate", + "@type": "@id" + }, + "contractVersion": { + "@id": "cx-credentials:contractVersion", + "@type": "@id" + }, + "holderIdentifier": { + "@id": "cx-credentials:holderIdentifier", + "@type": "xsd:string" + } } -} +} \ No newline at end of file diff --git a/cx/credentials/schema/context/policy.context.json b/cx/credentials/schema/context/policy.context.json index ca56806..a4d09fc 100644 --- a/cx/credentials/schema/context/policy.context.json +++ b/cx/credentials/schema/context/policy.context.json @@ -1,27 +1,22 @@ { "@context": { - "@version": 1.1, - "@protected": true, - "cred": "https://www.w3.org/2018/credentials#", - "xsd": "http://www.w3.org/2001/XMLSchema#", - "cx-policy": "https://w3id.org/catenax/policy/" , - - "Dismantler": "cx-policy:Dismantler", - "Dismantler.activityType": "cx-policy:Dismantler.activityType", - "Dismantler.allowedBrands": "cx-policy:Dismantler.allowedBrands", - - "Membership": "cx-policy:Membership", - - "UsagePurpose": "cx-policy:UsagePurpose", - - "ContractReference": "cx-policy:ContractReference", - - "FrameworkAgreement": "cx-policy:FrameworkAgreement", - "FrameworkAgreement.behavioraltwin": "cx-policy:FrameworkAgreement.behavioraltwin", - "FrameworkAgreement.pcf": "cx-policy:FrameworkAgreement.pcf" , - "FrameworkAgreement.quality": "cx-policy:FrameworkAgreement.quality", - "FrameworkAgreement.resiliency": "cx-policy:FrameworkAgreement.resiliency", - "FrameworkAgreement.sustainability": "cx-policy:FrameworkAgreement.sustainability", - "FrameworkAgreement.traceability": "cx-policy:FrameworkAgreement.traceability" + "@version": 1.1, + "@protected": true, + "cred": "https://www.w3.org/2018/credentials#", + "xsd": "http://www.w3.org/2001/XMLSchema#", + "cx-policy": "https://w3id.org/catenax/policy/", + "Dismantler": "cx-policy:Dismantler", + "Dismantler.activityType": "cx-policy:Dismantler.activityType", + "Dismantler.allowedBrands": "cx-policy:Dismantler.allowedBrands", + "Membership": "cx-policy:Membership", + "UsagePurpose": "cx-policy:UsagePurpose", + "ContractReference": "cx-policy:ContractReference", + "FrameworkAgreement": "cx-policy:FrameworkAgreement", + "FrameworkAgreement.behavioraltwin": "cx-policy:FrameworkAgreement.behavioraltwin", + "FrameworkAgreement.pcf": "cx-policy:FrameworkAgreement.pcf", + "FrameworkAgreement.quality": "cx-policy:FrameworkAgreement.quality", + "FrameworkAgreement.resiliency": "cx-policy:FrameworkAgreement.resiliency", + "FrameworkAgreement.sustainability": "cx-policy:FrameworkAgreement.sustainability", + "FrameworkAgreement.traceability": "cx-policy:FrameworkAgreement.traceability" } -} +} \ No newline at end of file