Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebLEI credential #968

Merged
merged 14 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: Issuing organization identifier, typically a Decentralized Identifier (DID).
nissimsan marked this conversation as resolved.
Show resolved Hide resolved
type: string
format: uri
name:
title: Name
description: Issuing organization name.
nissimsan marked this conversation as resolved.
Show resolved Hide resolved
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 a Qualified WebLEI Issuer authority to issued WebLEI credentials.
nissimsan marked this conversation as resolved.
Show resolved Hide resolved
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: Issuing organization identifier, typically a Decentralized Identifier (DID).
nissimsan marked this conversation as resolved.
Show resolved Hide resolved
type: string
format: uri
name:
title: Name
description: Issuing organization name.
nissimsan marked this conversation as resolved.
Show resolved Hide resolved
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: The url of the schema file to validate the shape of the json object
description: The URL of the schema file to be used 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: The type of validation to be run against the defined schema
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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Qualified GLEIF approved Legal Entity Identifier issuer.
description: Qualified GLEIF-approved issuer of Legal Entity Identifiers.

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).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Issuing organization identifier, typically a Decentralized Identifier (DID).
description: Identifier of the issuing organization, typically a Decentralized Identifier (DID).

type: string
format: uri
name:
title: Name
description: Issuing organization name.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: Issuing organization name.
description: Name of the issuing organization.

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
Loading