Skip to content

Commit

Permalink
Merge pull request #798 from w3c-ccg/name-descr-relatedlinks-schema-c…
Browse files Browse the repository at this point in the history
…leanup

Schema cleanup
  • Loading branch information
nissimsan committed Jun 12, 2023
2 parents d1b46d1 + 18879fc commit fb33ec5
Show file tree
Hide file tree
Showing 39 changed files with 64 additions and 317 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ properties:
id:
type: string
format: uri
name:
type: string
description:
type: string

issuanceDate:
type: string
format: date-time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ properties:
- BankAccountCredential
id:
type: string
name:
type: string
description:
type: string

issuer:
type: string
issuanceDate:
Expand All @@ -74,12 +71,6 @@ properties:
$ref: ../common/BankAccount.yml
proof:
type: object
relatedLink:
title: Related Link
description: Links related to this verifiable credential
type: array
items:
$ref: ../common/LinkRole.yml
additionalProperties: false
required:
- '@context'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ properties:
- BillOfLadingCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
expirationDate:
Expand All @@ -78,12 +75,6 @@ properties:
$ref: ../common/BillOfLading.yml
proof:
$ref: ../snippets/proof.yml
relatedLink:
title: Related Link
description: Links related to this verifiable credential
type: array
items:
$ref: ../common/LinkRole.yml
additionalProperties: false
required:
- '@context'
Expand All @@ -102,15 +93,6 @@ example: |-
"VerifiableCredential",
"BillOfLadingCredential"
],
"relatedLink": [
{
"type": [
"LinkRole"
],
"target": "did:example:789",
"linkRelationship": "commercialInvoiceLink"
}
],
"issuanceDate": "2019-12-11T03:50:55Z",
"issuer": {
"type": [
Expand Down Expand Up @@ -495,9 +477,9 @@ example: |-
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2023-05-17T20:21:17Z",
"created": "2023-06-05T16:06:15Z",
"verificationMethod": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U#z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U",
"proofPurpose": "assertionMethod",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..O-WPPKlDuAUPMjPgGuhBG47hHl1AvS8OOtev3PDyKJB-nxnIfocP8mh3ylRMLZZ5lbsMbtWuOn-kc4lZLYjUDA"
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..fCPuq_SyJIsMHOKg3CbDTbF2cqOSS663IsgvonoH6xk7AxbSqn71mkkVz1BKidbUj58c55iLoRgE2ip3FvtBDQ"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ properties:
- CBP3461EntryCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
expirationDate:
Expand All @@ -63,12 +60,6 @@ properties:
$ref: ../common/CBPEntry.yml
proof:
$ref: ../snippets/proof.yml
relatedLink:
title: Related Link
description: Links related to this verifiable credential
type: array
items:
$ref: ../common/LinkRole.yml
additionalProperties: false
required:
- '@context'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ properties:
- CBP7501EntrySummaryCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
expirationDate:
Expand All @@ -63,12 +60,6 @@ properties:
$ref: ../common/CBPEntrySummary.yml
proof:
$ref: ../snippets/proof.yml
relatedLink:
title: Related Link
description: Links related to this verifiable credential
type: array
items:
$ref: ../common/LinkRole.yml
additionalProperties: false
required:
- '@context'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ properties:
- CTPATEIPApplicationCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
issuer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ properties:
- CTPATEIPFulfillmentCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
issuer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ properties:
- CTPATEIPMarketplaceCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
issuer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ properties:
- CTPATEIPSellerCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
issuer:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ properties:
- CertificationOfOrigin
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
expirationDate:
Expand Down Expand Up @@ -90,12 +87,6 @@ properties:
- dateOfExport
proof:
$ref: ../snippets/proof.yml
relatedLink:
title: Related Link
description: Links related to this verifiable credential
type: array
items:
$ref: ../common/LinkRole.yml
additionalProperties: false
required:
- '@context'
Expand All @@ -114,7 +105,6 @@ example: |-
"VerifiableCredential",
"CertificationOfOrigin"
],
"name": "Certificate of Origin",
"issuanceDate": "2019-12-11T03:50:55Z",
"issuer": {
"type": [
Expand Down Expand Up @@ -150,9 +140,9 @@ example: |-
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2023-04-04T21:47:47Z",
"created": "2023-06-05T15:54:32Z",
"verificationMethod": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U#z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U",
"proofPurpose": "assertionMethod",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..3l-lvGm1HzAaWKnn7M_JJu15lmqYSvba_NRHgdUo58ZskFdip7BnmSd8iAO3Y0mA5vMaDuCpfH9mnksNbiCpCg"
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..xAxa0oPcAY7KL3ns3pGr8IaXOhVh49zPzqaQKwsPpjYRpbT1t084RzepqtIxkZDp9Epnn8HH2w3bBSpzAbTzBA"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ properties:
- DCSAShippingInstructionCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
expirationDate:
Expand All @@ -76,12 +73,6 @@ properties:
$ref: ../common/DCSAShippingInstruction.yml
proof:
$ref: ../snippets/proof.yml
relatedLink:
title: Related Link
description: Links related to this verifiable credential
type: array
items:
$ref: ../common/LinkRole.yml
additionalProperties: false
required:
- '@context'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ properties:
- DCSATransportDocumentCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
expirationDate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ properties:
- DeMinimisShipmentCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
expirationDate:
Expand All @@ -66,12 +63,6 @@ properties:
$ref: ../common/DeMinimisShipment.yml
proof:
$ref: ../snippets/proof.yml
relatedLink:
title: Related Link
description: Links related to this verifiable credential
type: array
items:
$ref: ../common/LinkRole.yml
additionalProperties: false
required:
- '@context'
Expand All @@ -90,7 +81,6 @@ example: |-
"VerifiableCredential",
"DeMinimisShipmentCredential"
],
"name": "Ecommerce Import Certificate",
"issuanceDate": "2022-07-12T10:00:00Z",
"issuer": {
"type": [
Expand Down Expand Up @@ -209,9 +199,9 @@ example: |-
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2023-04-04T21:38:45Z",
"created": "2023-06-05T15:54:37Z",
"verificationMethod": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U#z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U",
"proofPurpose": "assertionMethod",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..8N_FrqX0yVw7wp6V7OzjwPNGDCNO521FX7KdwF1pJurRG1rW-TdxDQ2cU2BmL8Vr6QVVQh8dGhFMM87zyya8CQ"
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..6TuvTKz5GYrzV1kWvJH0Iz2TJRgtPtNa7lUyULrW6rWhVji4imLJNEdlm0q7YIwzWT86kV4bEPj9P81I3iVpDw"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ properties:
- EntryNumberCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
expirationDate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@ properties:
- EventCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
expirationDate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ properties:
- FreightManifestCredential
id:
type: string
name:
type: string
description:
type: string
issuanceDate:
type: string
expirationDate:
Expand All @@ -75,12 +71,6 @@ properties:
$ref: ../common/FreightManifest.yml
proof:
$ref: ../snippets/proof.yml
relatedLink:
title: Related Link
description: Links related to this verifiable credential
type: array
items:
$ref: ../common/LinkRole.yml
additionalProperties: false
required:
- '@context'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ properties:
- FulfillmentRegistrationCredential
id:
type: string
name:
type: string
description:
type: string

issuanceDate:
type: string
issuer:
Expand Down
Loading

0 comments on commit fb33ec5

Please sign in to comment.