-
Notifications
You must be signed in to change notification settings - Fork 7
feat: allow for multiple location refs in activity claims #47
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@hypercerts-org/lexicon": minor | ||
| --- | ||
|
|
||
| Add support for multiple locations in an activity claim. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -286,20 +286,20 @@ Hypercerts-specific lexicons for tracking impact work and claims. | |
|
|
||
| #### Properties | ||
|
|
||
| | Property | Type | Required | Description | Comments | | ||
| | ------------------ | -------- | -------- | ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | ||
| | `title` | `string` | ✅ | Title of the hypercert | | | ||
| | `shortDescription` | `string` | ✅ | Short blurb of the impact work done. | | | ||
| | `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 | | | ||
| | `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` | | ||
| | `location` | `ref` | ❌ | A strong reference to the location where the work for done hypercert was located | References must conform to `app.certified.location` | | ||
| | `project` | `string` | ❌ | A reference (AT-URI) to the project record that this activity is part of | References must conform to `org.hypercerts.claim.project` | | ||
| | `createdAt` | `string` | ✅ | Client-declared timestamp when this record was originally created | | | ||
| | Property | Type | Required | Description | Comments | | ||
| | ------------------ | -------- | -------- | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | ||
| | `title` | `string` | ✅ | Title of the hypercert | | | ||
| | `shortDescription` | `string` | ✅ | Short blurb of the impact work done. | | | ||
| | `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 | | | ||
| | `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` | | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat lexicons/org/hypercerts/claim/activity.json | jq '.defs.main.record.properties.locations'Repository: hypercerts-org/hypercerts-lexicon Length of output: 347 Type column should be The Type column currently shows Proposed fix-| `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` |
+| `locations` | `array` | ❌ | An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location. | |🤖 Prompt for AI Agents |
||
| | `project` | `string` | ❌ | A reference (AT-URI) to the project record that this activity is part of | References must conform to `org.hypercerts.claim.project` | | ||
| | `createdAt` | `string` | ✅ | Client-declared timestamp when this record was originally created | | | ||
|
|
||
| #### Defs | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.