Skip to content

Commit

Permalink
change to thing
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhraisha committed May 11, 2023
1 parent 20fb3b2 commit 9dec993
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
8 changes: 4 additions & 4 deletions docs/credentials-with-issuer-dependent-terms.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
"type": "USMCACertificationOfOrigin",
"count": 0
},
{
"type": "ThingCredential",
"count": 2
},
{
"type": "SoftwareBillofMaterialsCredential",
"count": 200
Expand Down Expand Up @@ -191,10 +195,6 @@
"type": "FSMACreatingCTECredential",
"count": 0
},
{
"type": "ExternalIdentifierCredential",
"count": 2
},
{
"type": "EventCredential",
"count": 9
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
$linkedData:
term: ExternalIdentifierCredential
'@id': https://w3id.org/traceability#ExternalIdentifierCredential
title: External Identifier Credential
term: ThingCredential
'@id': https://w3id.org/traceability#ThingCredential
title: Thing Credential
tags:
- Steel
- eCommerce
- Agriculture
- Oil and Gas
- Other
description: A credential that contains an identifier that exists on an external system.
description: A credential that contains a thing.
type: object
properties:
'@context':
Expand All @@ -30,15 +30,15 @@ properties:
readOnly: true
const:
- VerifiableCredential
- ExternalIdentifierCredential
- ThingCredential
default:
- VerifiableCredential
- ExternalIdentifierCredential
- ThingCredential
items:
type: string
enum:
- VerifiableCredential
- ExternalIdentifierCredential
- ThingCredential
id:
type: string
name:
Expand All @@ -59,37 +59,37 @@ properties:
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/EventCredential.yml
example: https://w3id.org/traceability/openapi/components/schemas/credentials/ThingCredential.yml
type:
title: Type
description: The type of validation to be run against the defined schema
const: OpenApiSpecificationValidator2022
credentialSubject:
title: External Identifier Credential
description: A credential that contains an identifier that exists on an external system.
title: Thing Credential
description: A credential that contains a thing.
type: object
properties:
type:
type: array
readOnly: true
const:
- ExternalIdentifier
- Thing
default:
- ExternalIdentifier
- Thing
items:
type: string
enum:
- ExternalIdentifier
- Thing
name:
identifier:
description: the external identifier.
description: The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See background notes for more details
type: string
$linkedData:
term: uri
'@id': https://schema.org/identifier
name:
title: URI
description: Name of identifier.
title: Name
description: The name of the item.
type: string
$linkedData:
term: uri
Expand All @@ -112,7 +112,7 @@ example: |-
"id": "http://example.com/dd0c6f9a-5df6-40a3-bb34-863cd1fda606",
"type": [
"VerifiableCredential",
"ExternalIdentifierCredential"
"ThingCredential"
],
"issuer": {
"type": [
Expand All @@ -123,16 +123,16 @@ example: |-
"issuanceDate": "2022-11-01T10:58:45-04:00",
"credentialSubject": {
"type": [
"ExternalIdentifier"
"Thing"
],
"identifier": "123",
"name": "entrySummaryId"
},
"proof": {
"type": "Ed25519Signature2018",
"created": "2023-05-09T16:44:23Z",
"created": "2023-05-11T17:00:26Z",
"verificationMethod": "did:key:z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U#z6MktHQo3fRRohk44dsbE76CuiTpBmyMWq2VVjvV6aBSeE3U",
"proofPurpose": "assertionMethod",
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..hbpVdSIF_yLpMhtEjjF-q12DsX88GFhiKNie1J4KmxmdNgPXo-ghrNR3JM6W2wVWP9VOwPsXigamGmq5vUImCg"
"jws": "eyJhbGciOiJFZERTQSIsImI2NCI6ZmFsc2UsImNyaXQiOlsiYjY0Il19..kE7K-gOtVod_A9A0wX29y1S4HJdXDAdU2QUj4pMHyLg_sIwyi8ddwyagqDfN-WagS25nUq7ak1l0tC8ki1v4CQ"
}
}
24 changes: 12 additions & 12 deletions docs/openapi/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2264,18 +2264,6 @@ paths:
$ref: './components/schemas/credentials/EventCredential.yml'


/schemas/credentials/ExternalIdentifierCredential.yml:
get:
tags:
- credentials
responses:
'200':
content:
application/yml:
schema:
$ref: './components/schemas/credentials/ExternalIdentifierCredential.yml'


/schemas/credentials/FSMACreatingCTECredential.yml:
get:
tags:
Expand Down Expand Up @@ -2804,6 +2792,18 @@ paths:
$ref: './components/schemas/credentials/SoftwareBillofMaterialsCredential.yml'


/schemas/credentials/ThingCredential.yml:
get:
tags:
- credentials
responses:
'200':
content:
application/yml:
schema:
$ref: './components/schemas/credentials/ThingCredential.yml'


/schemas/credentials/USMCACertificationOfOrigin.yml:
get:
tags:
Expand Down

0 comments on commit 9dec993

Please sign in to comment.