add json schemas for json feed extensions

This commit is contained in:
James Brumond 2022-10-27 16:50:31 -07:00
parent 3fcdf76837
commit 8bec2df86e
Signed by: james
GPG Key ID: 24BA25B8B303B023
4 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,18 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://gitea.jbrumond.me/minimal/docs/raw/branch/master/json-schema/json-feed-extensions/events/v1.json",
"type": "object",
"description": "Contains additional Item metadata for Items that represent events",
"properties": {
"date_start": {
"type": "string",
"format": "date-time",
"description": "The date and time that the event starts"
},
"date_end": {
"type": "string",
"format": "date-time",
"description": "The date and time that the event ends"
}
}
}

View File

@ -0,0 +1,13 @@
$schema: http://json-schema.org/draft-07/schema
$id: https://gitea.jbrumond.me/minimal/docs/raw/branch/master/json-schema/json-feed-extensions/events/v1.json
type: object
description: Contains additional Item metadata for Items that represent events
properties:
date_start:
type: string
format: date-time
description: The date and time that the event starts
date_end:
type: string
format: date-time
description: The date and time that the event ends

View File

@ -0,0 +1,19 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://gitea.jbrumond.me/minimal/docs/raw/branch/master/json-schema/json-feed-extensions/rsvps/v1.json",
"type": "object",
"description": "Contains additional Item metadata for Items that represent RSVPs to events",
"properties": {
"rsvp": {
"type": "string",
"enum": [
"invited",
"yes",
"no",
"maybe",
"interested"
],
"description": "The type of RSVP response, based on https://microformats.org/wiki/h-entry#Core_Properties and https://microformats.org/wiki/rsvp-brainstorming\n"
}
}
}

View File

@ -0,0 +1,16 @@
$schema: http://json-schema.org/draft-07/schema
$id: https://gitea.jbrumond.me/minimal/docs/raw/branch/master/json-schema/json-feed-extensions/rsvps/v1.json
type: object
description: Contains additional Item metadata for Items that represent RSVPs to events
properties:
rsvp:
type: string
enum:
- "invited"
- "yes"
- "no"
- "maybe"
- "interested"
description: >
The type of RSVP response, based on https://microformats.org/wiki/h-entry#Core_Properties
and https://microformats.org/wiki/rsvp-brainstorming