From 8bec2df86e075581dbe8f8d3d000006a94de6da4 Mon Sep 17 00:00:00 2001 From: James Brumond Date: Thu, 27 Oct 2022 16:50:31 -0700 Subject: [PATCH] add json schemas for json feed extensions --- .../json-feed-extensions/events/v1.json | 18 ++++++++++++++++++ .../json-feed-extensions/events/v1.yaml | 13 +++++++++++++ .../json-feed-extensions/rsvps/v1.json | 19 +++++++++++++++++++ .../json-feed-extensions/rsvps/v1.yaml | 16 ++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 json-schema/json-feed-extensions/events/v1.json create mode 100644 json-schema/json-feed-extensions/events/v1.yaml create mode 100644 json-schema/json-feed-extensions/rsvps/v1.json create mode 100644 json-schema/json-feed-extensions/rsvps/v1.yaml diff --git a/json-schema/json-feed-extensions/events/v1.json b/json-schema/json-feed-extensions/events/v1.json new file mode 100644 index 0000000..65fe121 --- /dev/null +++ b/json-schema/json-feed-extensions/events/v1.json @@ -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" + } + } +} \ No newline at end of file diff --git a/json-schema/json-feed-extensions/events/v1.yaml b/json-schema/json-feed-extensions/events/v1.yaml new file mode 100644 index 0000000..b194511 --- /dev/null +++ b/json-schema/json-feed-extensions/events/v1.yaml @@ -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 \ No newline at end of file diff --git a/json-schema/json-feed-extensions/rsvps/v1.json b/json-schema/json-feed-extensions/rsvps/v1.json new file mode 100644 index 0000000..94f66ce --- /dev/null +++ b/json-schema/json-feed-extensions/rsvps/v1.json @@ -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" + } + } +} \ No newline at end of file diff --git a/json-schema/json-feed-extensions/rsvps/v1.yaml b/json-schema/json-feed-extensions/rsvps/v1.yaml new file mode 100644 index 0000000..93a933d --- /dev/null +++ b/json-schema/json-feed-extensions/rsvps/v1.yaml @@ -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 \ No newline at end of file