{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "A Project Zomboid Mod",
  "properties": {
    "author": {
      "description": "The author/authors of the mod",
      "type": "string"
    },
    "id": {
      "description": "The ID of the mod",
      "type": "string"
    },
    "incompatible": {
      "description": "A list of mod IDs who cannot be loaded alongside this one",
      "items": {
        "type": "string"
      },
      "type": "array",
      "uniqueItems": true
    },
    "lang": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "A table of language keys and their associated text",
      "type": "object"
    },
    "mutual_exclusives": {
      "description": "A list of trait ID pairs indicating those which are mutually exclusive",
      "items": {
        "description": "A pair of trait IDs that will be mutually exclusive",
        "items": {
          "type": "string"
        },
        "maxItems": 2,
        "minItems": 2,
        "type": "array",
        "uniqueItems": true
      },
      "type": "array",
      "uniqueItems": true
    },
    "name": {
      "description": "The name of the mod",
      "type": "string"
    },
    "professions": {
      "additionalProperties": {
        "$ref": "../schema/profession.json"
      },
      "description": "A table of professions included in this mod",
      "type": "object"
    },
    "requires": {
      "description": "A list of mod IDs who must be loaded alongside this one",
      "items": {
        "type": "string"
      },
      "type": "array",
      "uniqueItems": true
    },
    "shortcut": {
      "description": "A unique integer identifying this mod, used for preset urls",
      "type": "integer"
    },
    "traits": {
      "additionalProperties": {
        "$ref": "../schema/trait.json"
      },
      "description": "A table of traits included in this mod",
      "type": "object"
    },
    "workshop_id": {
      "type": "integer"
    }
  },
  "required": [
    "id",
    "name",
    "author",
    "shortcut",
    "traits",
    "professions",
    "mutual_exclusives",
    "lang"
  ],
  "title": "Mod",
  "type": "object"
}