Skip to content

Commit

Permalink
Merge pull request #933 from mesur-io/feat/misc-ag-fixes
Browse files Browse the repository at this point in the history
Misc ag fixes (AgPackage dates, GAPInspection harvestCompany)
  • Loading branch information
mkhraisha authored Feb 20, 2024
2 parents eb8f1b2 + 2385774 commit d9bf7f2
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ example: |-
"phoneNumber": "+1-383-555-4822"
},
"voicePickCode": "4642",
"date": "2021-03-14",
"harvestDate": "2021-03-14",
"labelImageUrl": "https://img.example.org/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"agricultureProduct": [
Expand Down
29 changes: 22 additions & 7 deletions docs/openapi/components/schemas/common/AgriculturePackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,29 @@ properties:
$linkedData:
term: voicePickCode
'@id': https://w3id.org/traceability#voicePickCode
date:
title: Packing, Harvest, or Best By Date
packingDate:
title: Packing Date
description: >-
Human readable date describing the date the package was packed, harvested,
or is 'best by.'
Human readable date describing the date the package was packed.
type: string
$linkedData:
term: date
term: packingDate
'@id': https://schema.org/DateTime
harvestDate:
title: Harvest Date
description: >-
Human readable date describing the date the package was harvested.
type: string
$linkedData:
term: harvestDate
'@id': https://schema.org/DateTime
bestByDate:
title: Best By Date
description: >-
Human readable date describing the date the package is 'best by'.
type: string
$linkedData:
term: bestByDate
'@id': https://schema.org/DateTime
labelImageUrl:
title: Label Image URL
Expand Down Expand Up @@ -108,7 +123,7 @@ example: |-
"phoneNumber": "+1-632-555-6601"
},
"voicePickCode": "4642",
"date": "2021-03-14",
"harvestDate": "2021-03-14",
"labelImageUrl": "https://img.example.org/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"agricultureProduct": [
Expand Down Expand Up @@ -189,4 +204,4 @@ example: |-
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ example: |-
"phoneNumber": "+1-470-555-7721"
},
"voicePickCode": "4642",
"date": "2021-03-14",
"harvestDate": "2021-03-14",
"labelImageUrl": "https://img.example.org/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"agricultureProduct": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ properties:
type: string
$linkedData:
term: plantParts
'@id': https://schema.org/description
'@id': https://schema.org/description
labelImageUrl:
title: Label Image URL
description: Image of the package label.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ example: |-
"phoneNumber": "+1-130-555-2218"
},
"voicePickCode": "4642",
"date": "2021-03-14",
"harvestDate": "2021-03-14",
"labelImageUrl": "https://img.example.org/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"agricultureProduct": [
Expand Down
2 changes: 1 addition & 1 deletion docs/openapi/components/schemas/common/GAPInspection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ properties:
harvestCompany:
title: Harvest Company
description: The harvest company if a separate contracted company is used to harvest the crop.
type: string
$ref: ./Organization.yml
$linkedData:
term: harvestCompany
'@id': https://vocabulary.uncefact.org/associatedParty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ example: |-
"phoneNumber": "+1-224-555-4962"
},
"voicePickCode": "4642",
"date": "2021-03-14",
"harvestDate": "2021-03-14",
"labelImageUrl": "https://img.example.org/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"agricultureProduct": [
Expand Down Expand Up @@ -334,4 +334,4 @@ example: |-
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ example: |-
"phoneNumber": "+1-426-555-4205"
},
"voicePickCode": "4642",
"date": "2021-03-14",
"harvestDate": "2021-03-14",
"labelImageUrl": "https://img.example.org/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"agricultureProduct": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ example: |-
"phoneNumber": "+1-120-555-3811"
},
"voicePickCode": "4642",
"date": "2021-03-14",
"harvestDate": "2021-03-14",
"labelImageUrl": "https://img.example.org/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"agricultureProduct": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ example: |-
"phoneNumber": "+1-642-555-2793"
},
"voicePickCode": "4642",
"date": "2021-03-14",
"harvestDate": "2021-03-14",
"labelImageUrl": "https://img.example.org/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"agricultureProduct": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ example: |-
"phoneNumber": "+1-445-555-2091"
},
"voicePickCode": "4642",
"date": "2021-03-14",
"harvestDate": "2021-03-14",
"labelImageUrl": "https://img.example.org/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"agricultureProduct": [
Expand Down Expand Up @@ -212,4 +212,4 @@ example: |-
"jobTitle": "Import Specialist"
},
"date": "2022-04-21"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ example: |-
"phoneNumber": "+1-750-555-5996"
},
"voicePickCode": "4642",
"date": "2021-03-14",
"harvestDate": "2021-03-14",
"labelImageUrl": "https://img.example.org/640/480/",
"labelImageHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"agricultureProduct": [
Expand Down

0 comments on commit d9bf7f2

Please sign in to comment.