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

Rename organic certification to certificate #934

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$linkedData:
term: OrganicCertification
'@id': https://w3id.org/traceability#OrganicCertification
term: OrganicCertificate
'@id': https://w3id.org/traceability#OrganicCertificate
title: Organic Certificate
description: Information regarding the organic certificate.
type: object
Expand All @@ -9,13 +9,13 @@ properties:
type: array
readOnly: true
const:
- OrganicCertification
- OrganicCertificate
default:
- OrganicCertification
- OrganicCertificate
items:
type: string
enum:
- OrganicCertification
- OrganicCertificate
countryOfIssuance:
title: Country of Issuance
description: The country issuing the organic certificate. This value should be a two letter country code as defined in ISO 3166 (e.g., "US" for United States, "CA" for Canada).
Expand Down Expand Up @@ -79,7 +79,7 @@ required:
- type
example: |-
{
"type": ["OrganicCertification"],
"type": ["OrganicCertificate"],
"countryOfIssuance": "US",
"certifiedOperation": {
"type": ["Organization"],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
$linkedData:
term: OrganicProductCertification
'@id': https://w3id.org/traceability#OrganicProductCertification
title: Organic Product Certification
term: OrganicProductCertificate
'@id': https://w3id.org/traceability#OrganicProductCertificate
title: Organic Product Certificate
description: Information regarding an agriculture product's organic certification status.
type: object
properties:
type:
type: array
readOnly: true
const:
- OrganicProductCertification
- OrganicProductCertificate
default:
- OrganicProductCertification
- OrganicProductCertificate
items:
type: string
enum:
- OrganicProductCertification
- OrganicProductCertificate
agricultureProduct:
title: Agriculture Product
description: The product certified as organic.
$ref: ./AgricultureProduct.yml
$linkedData:
term: agricultureProduct
'@id': https://www.gs1.org/voc/certificationSubject
organicCertification:
organicCertificate:
title: Organic Certificate
description: The product's organic certification.
$ref: ./OrganicCertification.yml
description: The product's organic certificate.
$ref: ./OrganicCertificate.yml
$linkedData:
term: organicCertification
term: organicCertificate
'@id': https://www.gs1.org/voc/certification
isCertified:
title: Is Certified
Expand All @@ -42,7 +42,7 @@ required:
- type
example: |-
{
"type": ["OrganicProductCertification"],
"type": ["OrganicProductCertificate"],
"agricultureProduct": {
"type": [
"AgricultureProduct"
Expand Down Expand Up @@ -81,8 +81,8 @@ example: |-
"labelImageUrl": "https://img.example.org/033383401508/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"organicCertification": {
"type": ["OrganicCertification"],
"organicCertificate": {
"type": ["OrganicCertificate"],
"certifiedOperation": {
"type": ["Organization"],
"name": "John's Produce",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$linkedData:
term: OrganicCertificationCredential
'@id': https://w3id.org/traceability#OrganicCertificationCredential
term: OrganicCertificateCredential
'@id': https://w3id.org/traceability#OrganicCertificateCredential
title: Organic Certificate Credential
tags:
- Agriculture
Expand Down Expand Up @@ -35,15 +35,15 @@ properties:
readOnly: true
const:
- VerifiableCredential
- OrganicCertificationCredential
- OrganicCertificateCredential
default:
- VerifiableCredential
- OrganicCertificationCredential
- OrganicCertificateCredential
items:
type: string
enum:
- VerifiableCredential
- OrganicCertificationCredential
- OrganicCertificateCredential
id:
type: string
name:
Expand All @@ -64,15 +64,15 @@ 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/OrganicCertificationCredential.yml
default: https://w3id.org/traceability/openapi/components/schemas/credentials/OrganicCertificationCredential.yml
example: https://w3id.org/traceability/openapi/components/schemas/credentials/OrganicCertificateCredential.yml
default: https://w3id.org/traceability/openapi/components/schemas/credentials/OrganicCertificateCredential.yml
readOnly: true
type:
title: Type
description: The type of validation to be run against the defined schema
const: OpenApiSpecificationValidator2022
credentialSubject:
$ref: ../common/OrganicCertification.yml
$ref: ../common/OrganicCertificate.yml
proof:
$ref: ../snippets/proof.yml
relatedLink:
Expand All @@ -97,7 +97,7 @@ example: |-
"id": "https://example.com/credential/123",
"type": [
"VerifiableCredential",
"OrganicCertificationCredential"
"OrganicCertificateCredential"
],
"name": "Organic Certificate Credential",
"issuanceDate": "2021-12-11T03:50:55Z",
Expand Down Expand Up @@ -129,7 +129,7 @@ example: |-
},
"credentialSubject": {
"type": [
"OrganicCertification"
"OrganicCertificate"
],
"countryOfIssuance": "US",
"certifiedOperation": {
Expand Down
8 changes: 4 additions & 4 deletions docs/openapi/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ paths:
$ref: './components/schemas/common/OrderItem.yml'


/schemas/common/OrganicCertification.yml:
/schemas/common/OrganicCertificate.yml:
get:
tags:
- common
Expand All @@ -1313,7 +1313,7 @@ paths:
content:
application/yml:
schema:
$ref: './components/schemas/common/OrganicCertification.yml'
$ref: './components/schemas/common/OrganicCertificate.yml'


/schemas/common/OrganicInspection.yml:
Expand All @@ -1340,7 +1340,7 @@ paths:
$ref: './components/schemas/common/OrganicOSPSectionReview.yml'


/schemas/common/OrganicProductCertification.yml:
/schemas/common/OrganicProductCertificate.yml:
get:
tags:
- common
Expand All @@ -1349,7 +1349,7 @@ paths:
content:
application/yml:
schema:
$ref: './components/schemas/common/OrganicProductCertification.yml'
$ref: './components/schemas/common/OrganicProductCertificate.yml'


/schemas/common/OrganicReview.yml:
Expand Down
Loading