Skip to content
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
5 changes: 5 additions & 0 deletions .changeset/make-activity-dates-optional.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hypercerts-org/lexicon": patch
---

Make startDate and endDate optional in activity lexicon
4 changes: 2 additions & 2 deletions ERD.puml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ dataclass activity <<largeBold>> #B4E5D0 {
description?
image?
workScope?
startDate
endDate
startDate?
endDate?
contributions[]?
locations[]?
rights?
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,8 @@ Hypercerts-specific lexicons for tracking impact work and claims.
| `description` | `string` | ❌ | Optional longer description of the impact work done. | |
| `image` | `union` | ❌ | The hypercert visual representation as a URI or image blob | |
| `workScope` | `object` | ❌ | Logical scope of the work using label-based conditions | Object with `withinAllOf`, `withinAnyOf`, `withinNoneOf` arrays of labels |
| `startDate` | `string` | | When the work began | |
| `endDate` | `string` | | When the work ended | |
| `startDate` | `string` | | When the work began | |
| `endDate` | `string` | | When the work ended | |
| `contributions` | `array` | ❌ | A strong reference to the contributions done to create the impact in the hypercerts | References must conform to `org.hypercerts.claim.contribution` |
| `rights` | `ref` | ❌ | A strong reference to the rights that this hypercert has | References must conform to `org.hypercerts.claim.rights` |
| `locations` | `ref` | ❌ | An array of strong references to the locations where the work for done hypercert was located | References must conform to `app.certified.location` |
Expand Down
8 changes: 1 addition & 7 deletions lexicons/org/hypercerts/claim/activity.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@
"key": "any",
"record": {
"type": "object",
"required": [
"title",
"shortDescription",
"createdAt",
"startDate",
"endDate"
],
"required": ["title", "shortDescription", "createdAt"],
"properties": {
"title": {
"type": "string",
Expand Down