{
  "$id": "vocabulary.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "contentitem.schema.json",
  "additionalProperties": true,
  "title": "Vocabulary",
  "description": "Vocabulary term content component in CTK (Doolittle ComponentType.Vocabulary). One reusable word/definition unit; ingested, then linked to Lesson/Activity carriers.",
  "type": "object",
  "required": [ "type", "word", "definition", "metadata" ],
  "properties": {
    "type": {
      "type": "string",
      "const": "vocabulary"
    },
    "word": {
      "type": "string",
      "minLength": 1,
      "description": "Plain-text vocabulary term (maps to ContentInput.word)"
    },
    "definition": {
      "type": "string",
      "minLength": 1,
      "description": "Plain-text definition (maps to ContentInput.definition)"
    },
    "pronunciation": {
      "$ref": "audio-comp.schema.json",
      "description": "Optional pronunciation audio (maps to DoolittleVocabulary.Pronunciation ComponentInput)"
    },
    "metadata": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": { "$ref": "vocabulary-metadata.schema.json" }
    }
  }
}
