-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #968 from w3c-ccg/web-lei-credential-schema
WebLEI credential
- Loading branch information
Showing
6 changed files
with
529 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,6 @@ required: | |
- lei | ||
- entity | ||
- registration | ||
- bic | ||
example: |- | ||
{ | ||
"type": ["WebLEI"], | ||
|
161 changes: 161 additions & 0 deletions
161
docs/openapi/components/schemas/credentials/QualifiedWebLeiIssuerCredential.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." | ||
} | ||
} |
Oops, something went wrong.