Skip to content
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 JSON schema of COSCUP schedule #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
101 changes: 101 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "COSCUP session schedule",
"type": "object",
"properties": {
"sessions": {
"type": "array",
"description": "A list of sessions with detailed information.",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The unique identifier for the session."
},
"type": {
"type": "string",
"description": "The type code representing the session category."
},
"room": {
"type": "string",
"description": "The room code where the session will take place."
},
"start": {
"type": "string",
"format": "date-time",
"description": "The start time of the session in ISO 8601 format."
},
"end": {
"type": "string",
"format": "date-time",
"description": "The end time of the session in ISO 8601 format."
},
"language": {
"type": "string",
"description": "The language in which the session will be conducted."
},
"zh": {
"$ref": "#/definitions/sessionContent"
},
"en": {
"$ref": "#/definitions/sessionContent"
},
"speakers": {
"type": "array",
"description": "A list of speaker IDs associated with the session.",
"items": {
"type": "string"
}
},
"tags": {
"type": "array",
"description": "A list of tags associated with the session.",
"items": {
"type": "string"
}
},
"co_write": {
"type": ["string", "null"],
"description": "Co-writing information, if applicable."
},
"qa": {
"type": ["string", "null"],
"description": "Q&A information, if applicable."
},
"slide": {
"type": ["string", "null"],
"description": "Slide information, if applicable."
},
"record": {
"type": ["string", "null"],
"description": "Recording information, if applicable."
},
"uri": {
"type": "string",
"description": "The URI linking to more information about the session."
}
},
"required": ["id", "type", "room", "start", "end", "language", "zh", "en", "speakers", "tags", "uri"]
}
}
},
"required": ["sessions"],
"definitions": {
"sessionContent": {
"type": "object",
"description": "The session details in a specific language.",
"properties": {
"title": {
"type": "string",
"description": "The title of the session."
},
"description": {
"type": "string",
"description": "The description of the session."
}
},
"required": ["title", "description"]
}
}
}