PeerTube · Schema

VideoRating

VideoDecentralizedFederationOpen SourceActivityPubSelf-HostedStreaming

Properties

Name Type Description
video object
rating string Rating of the video
View JSON Schema on GitHub

JSON Schema

VideoRating.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/peertube/main/json-schema/VideoRating.json",
  "title": "VideoRating",
  "properties": {
    "video": {
      "$ref": "#/components/schemas/Video"
    },
    "rating": {
      "type": "string",
      "enum": [
        "like",
        "dislike",
        "none"
      ],
      "description": "Rating of the video"
    }
  },
  "required": [
    "video",
    "rating"
  ]
}