-
Notifications
You must be signed in to change notification settings - Fork 7
Lexicons small updates plus attachments and outcomes #54
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
Closed
Closed
Changes from 5 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
a77de7e
new outcome schema, evidence is attachment, smaller lexicon changes
holkexyz 6033609
refine schemas
holkexyz 59b1dc0
add contributors to activity claim
holkexyz 894f51d
adding richtextfacets
holkexyz 9c64abf
adding richtextfacets to badge
holkexyz 16bea62
fix required field errors
holkexyz 21b50b6
fix required field errors for outcome
holkexyz d505bf2
format lexicons with prettier
holkexyz bde580f
Update lexicons/org/hypercerts/claim/attachment.json
holkexyz 805e1ff
update README.md and ERD.puml
holkexyz eabde75
fix readme with prettier
holkexyz 31d47a4
add facet.json from bsky
holkexyz aec966d
prettier for facet.json
holkexyz 8d4d930
add note about facets to README.md
holkexyz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| { | ||
| "lexicon": 1, | ||
| "id": "org.hypercerts.claim.attachment", | ||
| "defs": { | ||
| "main": { | ||
| "type": "record", | ||
| "description": "An attachment providing commentary, context, evidence, or documentary material related to a hypercert record (e.g. an activity, project, claim, or evaluation). Attachments may support, clarify, or challenge the referenced subject.", | ||
| "key": "tid", | ||
| "record": { | ||
| "type": "object", | ||
| "required": ["contributors", "title", "createdAt"], | ||
|
Contributor
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. shouldn't the content also be required? |
||
| "properties": { | ||
| "subjects": { | ||
| "type": "array", | ||
| "description": "References to the subject(s) the attachment is connected to—this may be an activity claim, outcome claim, measurement, evaluation, or even another attachment. This is optional as the attachment can exist before the claim is recorded.", | ||
| "items": { | ||
| "type": "ref", | ||
| "ref": "com.atproto.repo.strongRef" | ||
| }, | ||
| "maxLength": 100 | ||
| }, | ||
| "attachmentType": { | ||
| "type": "string", | ||
| "maxLength": 64, | ||
| "description": "The type of attachment, e.g. report, audit, evidence, testimonial, methodology, etc." | ||
| }, | ||
| "relationType": { | ||
| "type": "string", | ||
| "maxLength": 64, | ||
| "description": "How this attachment relates to the subject. If omitted, the attachment is not asserting a specific relationship.", | ||
| "knownValues": ["supports", "challenges", "clarifies"] | ||
| }, | ||
| "contributors": { | ||
| "type": "array", | ||
| "description": "List of contributors to this attachment with optional relative weights. If omitted, `weight` defaults to 1. For richer semantics, use separate contribution records.", | ||
| "items": { | ||
| "type": "ref", | ||
| "ref": "#weightedContributor" | ||
| } | ||
| }, | ||
|
holkexyz marked this conversation as resolved.
|
||
| "title": { | ||
| "type": "string", | ||
| "maxLength": 256, | ||
| "description": "Title of this attachment." | ||
| }, | ||
| "shortDescription": { | ||
| "type": "string", | ||
| "description": "Short summary of this attachment, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.", | ||
| "maxLength": 3000, | ||
| "maxGraphemes": 300 | ||
| }, | ||
| "shortDescriptionFacets": { | ||
| "type": "array", | ||
| "description": "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).", | ||
| "items": { | ||
| "type": "ref", | ||
| "ref": "app.bsky.richtext.facet" | ||
| } | ||
| }, | ||
| "description": { | ||
| "type": "string", | ||
| "description": "Optional longer description of this attachment, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`.", | ||
| "maxLength": 30000, | ||
| "maxGraphemes": 3000 | ||
| }, | ||
| "descriptionFacets": { | ||
| "type": "array", | ||
| "description": "Rich text annotations for `description` (mentions, URLs, hashtags, etc).", | ||
| "items": { | ||
| "type": "ref", | ||
| "ref": "app.bsky.richtext.facet" | ||
| } | ||
| }, | ||
|
holkexyz marked this conversation as resolved.
|
||
| "content": { | ||
| "type": "array", | ||
| "description": "The files, documents, or external references included in this attachment record.", | ||
| "items": { | ||
| "type": "union", | ||
| "refs": [ | ||
| "org.hypercerts.defs#uri", | ||
| "org.hypercerts.defs#smallBlob" | ||
| ] | ||
| }, | ||
| "maxLength": 100 | ||
| }, | ||
| "locations": { | ||
| "type": "array", | ||
| "description": "Optional geographic references that this attachment relates to. Each referenced record must conform with the app.certified.location lexicon.", | ||
| "items": { | ||
| "type": "ref", | ||
| "ref": "com.atproto.repo.strongRef" | ||
| }, | ||
| "maxLength": 100 | ||
| }, | ||
| "createdAt": { | ||
| "type": "string", | ||
| "format": "datetime", | ||
| "description": "Client-declared timestamp when this record was originally created." | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.