{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://littlescreen.online/littlescreen-reference/schema/topic-card.schema.json",
  "title": "LittleScreen Topic Card",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "id",
    "name",
    "roomRisk",
    "whatItIs",
    "commonClaims",
    "commonFallacies",
    "reliableResources",
    "bestHostRule",
    "starterQuestions"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
    },
    "name": {
      "type": "string",
      "minLength": 3
    },
    "roomRisk": {
      "type": "string",
      "enum": ["Low", "Medium", "High"]
    },
    "popularity": {
      "type": "string",
      "enum": ["Low", "Medium", "High"]
    },
    "controversy": {
      "type": "string",
      "enum": ["Low", "Medium", "High"]
    },
    "moderationDifficulty": {
      "type": "string",
      "enum": ["Low", "Medium", "High"]
    },
    "keywords": {
      "type": "array",
      "items": { "type": "string" },
      "uniqueItems": true
    },
    "whatItIs": {
      "type": "string",
      "minLength": 12
    },
    "whyPeopleDebateIt": {
      "type": "string"
    },
    "commonClaims": {
      "type": "array",
      "items": { "type": "string", "minLength": 4 },
      "minItems": 1
    },
    "commonFallacies": {
      "type": "array",
      "items": { "type": "string", "minLength": 3 },
      "minItems": 1
    },
    "reliableResources": {
      "type": "array",
      "items": { "type": "string", "minLength": 3 },
      "minItems": 1
    },
    "bestHostRule": {
      "type": "string",
      "minLength": 12
    },
    "starterQuestions": {
      "type": "array",
      "items": { "type": "string", "minLength": 8 },
      "minItems": 1
    }
  }
}
