Skip to content

Commit

Permalink
Merge pull request #968 from w3c-ccg/web-lei-credential-schema
Browse files Browse the repository at this point in the history
WebLEI credential
  • Loading branch information
brentzundel authored Sep 12, 2024
2 parents 5d1ec74 + d3a42f8 commit d06f32a
Show file tree
Hide file tree
Showing 6 changed files with 529 additions and 7 deletions.
4 changes: 4 additions & 0 deletions docs/credentials-with-issuer-dependent-terms.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"type": "environmentalImpactCredential",
"count": 17
},
{
"type": "WebLeiCredential",
"count": 28
},
{
"type": "VerifiableScorecard",
"count": 144
Expand Down
3 changes: 0 additions & 3 deletions docs/openapi/components/schemas/common/LEIAddress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,6 @@ properties:
additionalProperties: false
required:
- type
- firstAddressLine
- city
- country
example: |-
{
"type": ["LEIAddress"],
Expand Down
12 changes: 9 additions & 3 deletions docs/openapi/components/schemas/common/LEIAuthority.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ properties:
$linkedData:
term: validationAuthorityEntityID
'@id': https://schema.org/leiCode
id:
title: Issuer's Identifier
description: Identifier of the issuing organization , typically a Decentralized Identifier (DID).
type: string
format: uri
name:
title: Name
description: Name of the issuing organization.
type: string
additionalProperties: false
required:
- type
- validationAuthorityID
- otherValidationAuthorityID
- validationAuthorityEntityID
example: |-
{
"type": ["LEIAuthority"],
Expand Down
1 change: 0 additions & 1 deletion docs/openapi/components/schemas/common/WebLEI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ required:
- lei
- entity
- registration
- bic
example: |-
{
"type": ["WebLEI"],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
$linkedData:
term: QualifiedWebLEIIssuerCredential
'@id': https://w3id.org/traceability#QualifiedWebLEIIssuerCredential
title: Qualified WebLEI Issuer Credential
tags:
- Steel
- Pesticides
description: >-
Level 1 Authority granting the authority to issue WebLEI credentials to a Qualified WebLEI Issuer.
type: object
properties:
'@context':
type: array
readOnly: true
const:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
default:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
items:
type: string
enum:
- https://www.w3.org/2018/credentials/v1
- https://w3id.org/traceability/v1
type:
type: array
readOnly: true
const:
- VerifiableCredential
- QualifiedWebLeiIssuerCredential
default:
- VerifiableCredential
- QualifiedWebLeiIssuerCredential
items:
type: string
enum:
- VerifiableCredential
- QualifiedWebLeiIssuerCredential
id:
type: string
format: uri
issuanceDate:
type: string
format: date-time
expirationDate:
type: string
format: date-time
issuer:
title: GLEIF Level 1 Authority
description: GLEIF LEI Record Level 1 LEI Authority
type: object
properties:
type:
type: array
readOnly: true
const:
- LEIAuthority
default:
- LEIAuthority
items:
type: string
enum:
- LEIAuthority
id:
title: Issuer's Identifier
description: Identifier of the issuing organization, typically a Decentralized Identifier (DID).
type: string
format: uri
name:
title: Name
description: Name of the issuing organization.
type: string
additionalProperties: false
required:
- type
- id
credentialSchema:
type: object
properties:
id:
title: Id
description: The url of the schema file to validate the shape of the json object
type: string
format: uri
example: https://w3id.org/traceability/openapi/components/schemas/credentials/WebLEICredential.yml
default: https://w3id.org/traceability/openapi/components/schemas/credentials/WebLEICredential.yml
readOnly: true
type:
title: Type
description: The type of validation to be run against the defined schema
const: OpenApiSpecificationValidator2022
credentialSubject:
title: Qualified WebLEI Issuer
description: Qualified GLEIF approved Legal Entity Identifier issuer.
type: object
properties:
type:
type: array
readOnly: true
const:
- LEIAuthority
default:
- LEIAuthority
items:
type: string
enum:
- LEIAuthority
id:
title: Issuer's Identifier
description: Issuing organization identifier, typically a Decentralized Identifier (DID).
type: string
format: uri
name:
title: Name
description: Issuing organization name.
type: string
additionalProperties: false
required:
- type
- id
additionalProperties: false
required:
- '@context'
- type
- id
- issuanceDate
- issuer
- credentialSubject
- credentialSchema
example: |-
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/traceability/v1"
],
"id": "http://example.com/dd0c6f9a-5df6-40a3-bb34-863cd1fda606",
"credentialSchema": {
"type": "OpenApiSpecificationValidator2022",
"id": "https://w3id.org/traceability/openapi/components/schemas/credentials/WebLEICredential.yml"
},
"type": [
"VerifiableCredential",
"QualifiedWebLeiIssuerCredential"
],
"issuer": {
"type": [
"LEIAuthority"
],
"id": "did:web:gleif.example.org",
"name": "GLEIF"
},
"issuanceDate": "2022-11-01T10:58:45-04:00",
"credentialSubject": {
"type": [
"LEIAuthority"
],
"id": "did:web:qualified-organization.example.com",
"name": "United FinSec Corp."
}
}
Loading

0 comments on commit d06f32a

Please sign in to comment.