-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add person, calendar, event schemas #28
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
There are no files selected for viewing
This file contains 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,78 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://common.schemas.example.com/social/calendar/v0.1.0/schema.json", | ||
"title": "Calendar", | ||
"titlePlural": "Calendars", | ||
"description": "Calendar information", | ||
"type": "object", | ||
"appearance": { | ||
"style": { | ||
"color": "#42A5F5", | ||
"icon": "./calendar-icon.svg" | ||
} | ||
}, | ||
"database": { | ||
"name": "calendar_data", | ||
"indexes": { | ||
"name": [ | ||
"name" | ||
], | ||
"insertedAt": [ | ||
"insertedAt" | ||
], | ||
"source": [ | ||
"sourceApplication", | ||
"sourceId" | ||
] | ||
} | ||
}, | ||
"layouts": { | ||
"create": [ | ||
"calendarId", | ||
"name", | ||
"timezone", | ||
"location" | ||
], | ||
"view": [ | ||
"calendarId", | ||
"name", | ||
"description", | ||
"location", | ||
"insertedAt" | ||
] | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "https://core.schemas.verida.io/base/v0.1.0/schema.json" | ||
}, | ||
{ | ||
"properties": { | ||
"calendarId": { | ||
"description": "Reference ID of the calendar object", | ||
"type": "string" | ||
}, | ||
"description": { | ||
"title": "Description", | ||
"description": "Description of the calendar", | ||
"type": "string" | ||
}, | ||
"timeZone": { | ||
"type": "string", | ||
"description": "UTC offset format", | ||
"pattern": "^([+-](?:2[0-3]|[01][0-9]):[0-5][0-9])$", | ||
"example": "+02:30" | ||
}, | ||
"location": { | ||
"title": "Location", | ||
"description": "Geographic location of the calendar as free-form text.", | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"calendarId", | ||
"name", | ||
"timezone" | ||
] | ||
} | ||
] | ||
} |
This file contains 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,163 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://common.schemas.verida.io/social/event/v0.1.0/schema.json", | ||
"title": "Event", | ||
"description": "Schema for a calendar event", | ||
"type": "object", | ||
"appearance": { | ||
"style": { | ||
"color": "#4285F4", | ||
"icon": "./icon.svg" | ||
} | ||
}, | ||
"database": { | ||
"name": "social_event", | ||
"indexes": { | ||
"name": ["name"], | ||
"startTime": ["start.date"], | ||
"endTime": ["end.date"], | ||
"source": ["sourceApplication", "sourceId"] | ||
} | ||
}, | ||
"layouts": { | ||
"create": ["name", "start.date", "end.date", "location"], | ||
"view": ["name", "description", "start.date", "end.date", "location", "organizer", "attendees", "status"] | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "https://core.schemas.verida.io/base/v0.1.0/schema.json" | ||
}, | ||
{ | ||
"properties": { | ||
"status": { | ||
"title": "Status", | ||
"description": "Status of the event", | ||
"type": "string", | ||
"enum": ["confirmed", "tentative", "cancelled"] | ||
}, | ||
"description": { | ||
"title": "Description", | ||
"description": "Detailed description of the event", | ||
"type": "string" | ||
}, | ||
"location": { | ||
"title": "Location", | ||
"description": "Location of the event", | ||
"type": "string" | ||
}, | ||
"creator": { | ||
"title": "Creator", | ||
"description": "Details of the event creator", | ||
"$ref": "#/$defs/person" | ||
}, | ||
"organizer": { | ||
"title": "Organizer", | ||
"description": "Details of the event organizer", | ||
"$ref": "#/$defs/person" | ||
}, | ||
"start": { | ||
"title": "Start", | ||
"description": "Start time of the event", | ||
"type": "object", | ||
"properties": { | ||
"dateTime": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"date": { | ||
"type": "string", | ||
"format": "date" | ||
}, | ||
"timeZone": { | ||
tahpot marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"type": "string", | ||
"description": "UTC offset format", | ||
"pattern": "^([+-](?:2[0-3]|[01][0-9]):[0-5][0-9])$", | ||
"example": "+02:30" | ||
} | ||
} | ||
}, | ||
"end": { | ||
tahpot marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"title": "End", | ||
"description": "End time of the event", | ||
"type": "object", | ||
"properties": { | ||
"dateTime": { | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"date": { | ||
"type": "string", | ||
"format": "date" | ||
}, | ||
"timeZone": { | ||
"type": "string", | ||
"description": "UTC offset format", | ||
"pattern": "^([+-](?:2[0-3]|[01][0-9]):[0-5][0-9])$", | ||
"example": "+02:30" | ||
} | ||
} | ||
}, | ||
"attendees": { | ||
"title": "Attendees", | ||
"description": "List of attendees for the event", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/$defs/person" | ||
} | ||
}, | ||
"conferenceData": { | ||
"title": "Conference Data", | ||
"description": "Details about the conference associated with the event", | ||
tahpot marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"type": "object" | ||
}, | ||
"attachments": { | ||
"title": "Attachments", | ||
"description": "Attachments for the event", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"fileUrl": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"title": { | ||
"type": "string" | ||
}, | ||
"mimeType": { | ||
"type": "string" | ||
}, | ||
"iconLink": { | ||
"type": "string", | ||
"format": "uri" | ||
}, | ||
"fileId": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"required": ["name", "start.date", "end.date"] | ||
} | ||
], | ||
"$defs": { | ||
"person": { | ||
"type": "object", | ||
"title": "Person", | ||
"description": "Schema representing a person", | ||
"properties": { | ||
"email": { | ||
"type": "string", | ||
"format": "email", | ||
"description": "Email address of the person" | ||
}, | ||
"displayName": { | ||
"type": "string", | ||
"description": "Display name of the person" | ||
} | ||
}, | ||
"required": ["email"] | ||
} | ||
} | ||
} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add
calendarId
that references the calendar object.