Skip to content

Commit

Permalink
feat: QWI credential
Browse files Browse the repository at this point in the history
  • Loading branch information
nissimsan committed Sep 9, 2024
1 parent 763fb04 commit b60c509
Showing 1 changed file with 161 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
$linkedData:
term: WebLEICredential
'@id': https://w3id.org/traceability#WebLeiCredential
title: WebLEI Credential
tags:
- Steel
- Pesticides
description: >-
Verifiable Web Legal Entity Identifier.
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
- WebLeiCredential
default:
- VerifiableCredential
- WebLeiCredential
items:
type: string
enum:
- VerifiableCredential
- WebLeiCredential
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: 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
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",
"WebLeiCredential"
],
"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."
}
}

0 comments on commit b60c509

Please sign in to comment.