-
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 #926 from Mavennet/TSCACertification
Tsca certification
- Loading branch information
Showing
5 changed files
with
310 additions
and
87 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
69 changes: 69 additions & 0 deletions
69
docs/openapi/components/schemas/common/TSCACertification.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,69 @@ | ||
$linkedData: | ||
term: TSCACertification | ||
'@id': https://w3id.org/traceability/TSCACertification | ||
title: TSCA Certification | ||
description: TSCA Import Certification Statement | ||
type: object | ||
properties: | ||
type: | ||
type: array | ||
readOnly: true | ||
const: | ||
- TSCACertification | ||
default: | ||
- TSCACertification | ||
items: | ||
type: string | ||
enum: | ||
- TSCACertification | ||
certificationType: | ||
title: Certification Type | ||
description: >- | ||
The type of TSCA certification. This can be either 'Positive' to certify | ||
compliance with all applicable TSCA rules and orders, or 'Negative' to | ||
certify that the chemical shipment is not subject to TSCA. | ||
type: string | ||
enum: | ||
- Positive | ||
- Negative | ||
$linkedData: | ||
term: certificationType | ||
'@id': https://schema.org/DefinedTerm | ||
certifierDetails: | ||
title: Certifier's Details | ||
description: >- | ||
Provide the certifier’s name, title, address (including country), telephone | ||
number and email address. | ||
$ref: ./Organization.yml | ||
$linkedData: | ||
term: certifierDetails | ||
'@id': https://w3id.org/traceability#certifierDetails | ||
additionalProperties: true | ||
required: | ||
- type | ||
- certificationType | ||
- certifierDetails | ||
example: |- | ||
{ | ||
"type": ["TSCACertification"], | ||
"certificationType": "Positive", | ||
"certifierDetails": { | ||
"type": ["Organization"], | ||
"id": "did:key:z6MkjR12D3456sn2yBAyqj5gqckDjvyAbNSusehsxtkvknfa", | ||
"name": "Chemical Import Co", | ||
"description": "Specialist in importing and distributing chemical products", | ||
"location": { | ||
"type": ["Place"], | ||
"address": { | ||
"type": ["PostalAddress"], | ||
"streetAddress": "123 Industry Blvd", | ||
"addressLocality": "Chemtown", | ||
"addressRegion": "CA", | ||
"postalCode": "90001", | ||
"addressCountry": "USA" | ||
} | ||
}, | ||
"email": "[email protected]", | ||
"phoneNumber": "+1-555-123-4567" | ||
} | ||
} |
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
126 changes: 126 additions & 0 deletions
126
docs/openapi/components/schemas/credentials/TSCACertificationCredential.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,126 @@ | ||
$linkedData: | ||
term: TSCACertificationCredential | ||
'@id': https://w3id.org/traceability#TSCACertificationCredential | ||
title: TSCA Certification Credential | ||
tags: | ||
- Environmental Compliance | ||
description: A credential for compliance with the Toxic Substances Control Act (TSCA) regulations | ||
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 | ||
- TSCACertificationCredential | ||
default: | ||
- VerifiableCredential | ||
- TSCACertificationCredential | ||
items: | ||
type: string | ||
enum: | ||
- VerifiableCredential | ||
- TSCACertificationCredential | ||
id: | ||
type: string | ||
name: | ||
type: string | ||
description: | ||
type: string | ||
issuanceDate: | ||
type: string | ||
expirationDate: | ||
type: string | ||
issuer: | ||
type: string | ||
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/TSCACertificationCredential.yml | ||
default: https://w3id.org/traceability/openapi/components/schemas/credentials/TSCACertificationCredential.yml | ||
readOnly: true | ||
type: | ||
title: Type | ||
description: The type of validation to be run against the defined schema | ||
const: OpenApiSpecificationValidator2022 | ||
credentialSubject: | ||
$ref: ../common/TSCACertification.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' | ||
- type | ||
- issuanceDate | ||
- issuer | ||
- credentialSubject | ||
example: |- | ||
{ | ||
"@context": [ | ||
"https://www.w3.org/2018/credentials/v1", | ||
"https://w3id.org/traceability/v1" | ||
], | ||
"id": "http://example.org/credentials/", | ||
"type": [ | ||
"VerifiableCredential", | ||
"TSCACertificationCredential" | ||
], | ||
"issuanceDate": "2024-01-04T20:29:37+00:00", | ||
"issuer": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U", | ||
"credentialSubject": { | ||
"type": [ | ||
"TSCACertification" | ||
], | ||
"certificationType": "Positive", | ||
"certifierDetails": { | ||
"type": [ | ||
"Organization" | ||
], | ||
"id": "did:key:z6MkjR12D3456sn2yBAyqj5gqckDjvyAbNSusehsxtkvknfa", | ||
"name": "Chemical Import Co", | ||
"description": "Specialist in importing and distributing chemical products", | ||
"location": { | ||
"type": [ | ||
"Place" | ||
], | ||
"address": { | ||
"type": [ | ||
"PostalAddress" | ||
], | ||
"streetAddress": "123 Industry Blvd", | ||
"addressLocality": "Chemtown", | ||
"addressRegion": "CA", | ||
"postalCode": "90001", | ||
"addressCountry": "USA" | ||
} | ||
}, | ||
"email": "[email protected]", | ||
"phoneNumber": "+1-555-123-4567" | ||
} | ||
} | ||
} |
Oops, something went wrong.