Skip to content

Instantly share code, notes, and snippets.

@Renddslow
Created June 1, 2023 23:47
Show Gist options
  • Save Renddslow/8425ef936d6658e86458ff08c569facd to your computer and use it in GitHub Desktop.
Save Renddslow/8425ef936d6658e86458ff08c569facd to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/Schema",
"definitions": {
"Schema": {
"type": "object",
"additionalProperties": false,
"properties": {
"movement-readings": {
"$ref": "#/definitions/MovementReading"
},
"podcast-episodes": {
"$ref": "#/definitions/PodcastEpisode"
},
"resources": {
"$ref": "#/definitions/Resource"
},
"video-episodes": {
"$ref": "#/definitions/VideoEpisode"
}
},
"required": [],
"title": "Schema"
},
"MovementReading": {
"type": "object",
"additionalProperties": false,
"properties": {
"book_name": {
"description": "The book name that maps to the approximate location in the movement.",
"type": "string"
},
"chapter_number": {
"description": "The chapter number that maps to the approximate location in the movement.",
"type": "integer"
},
"completed": {
"description": "Indicates a movement has been maked as completed.",
"type": "boolean"
},
"favorited": {
"description": "Indicates a movement has been bookmarked. This was never renamed to avoid having to write a data migration.",
"type": "boolean"
},
"location": {
"description": "A number ranging from 0-1 indicating the scroll percentage of the movement.",
"type": "number"
},
"updated_at": {
"description": "Timestamp of the last time the document was updated.",
"format": "date-time",
"type": "string"
},
"verse_id": {
"description": "The verse id that maps to the approximate location in the movement.",
"type": "integer"
}
},
"required": [],
"title": "MovementReadingUserDocument"
},
"PodcastEpisode": {
"type": "object",
"additionalProperties": false,
"properties": {
"favorited": {
"description": "Indicates a podcast has been bookmarked. This was never renamed to avoid having to write a data migration.",
"type": "boolean"
},
"played_at": {
"description": "Timestamp of the last time this podcast was played.",
"format": "date-time",
"type": "string"
},
"played": {
"description": "Indicates a podcast has been marked as played.",
"type": "boolean"
},
"progress": {
"description": "A number ranging from 0-1 indicating the current location in the podcast.",
"type": "number"
},
"updated_at": {
"description": "Timestamp of the last time the document was updated.",
"format": "date-time",
"type": "string"
}
},
"required": [],
"title": "PodcastEpisodeUserDocument"
},
"Resource": {
"type": "object",
"additionalProperties": false,
"properties": {
"completed": {
"description": "Indicates a resource has been maked as completed.",
"type": "boolean"
},
"favorited": {
"description": "Indicates a resource has been bookmarked. This was never renamed to avoid having to write a data migration.",
"type": "boolean"
},
"updated_at": {
"description": "Timestamp of the last time the document was updated.",
"format": "date-time",
"type": "string"
}
},
"required": [],
"title": "ResourceUserDocument"
},
"VideoEpisode": {
"type": "object",
"additionalProperties": false,
"properties": {
"favorited": {
"description": "Indicates a video has been bookmarked. This was never renamed to avoid having to write a data migration.",
"type": "boolean"
},
"played_at": {
"description": "Timestamp of the last time this video was played.",
"format": "date-time",
"type": "string"
},
"played": {
"description": "Indicates a video has been marked as played.",
"type": "boolean"
},
"progress": {
"description": "A number ranging from 0-1 indicating the current location in the video.",
"type": "number"
},
"updated_at": {
"description": "Timestamp of the last time the document was updated.",
"format": "date-time",
"type": "string"
}
},
"required": [],
"title": "VideoEpisodeUserDocument"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment