{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/enterprise-wikimedia-com/json-schema/enterprise-wikimedia-com-project-schema.json",
  "title": "project",
  "description": "Wikimedia project a resource belongs to",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/enterprise-wikimedia-com-projects-api-openapi.yml#/components/schemas/project",
  "type": "object",
  "properties": {
    "identifier": {
      "type": "string",
      "description": "Unique identifier of the project, combining language and project code, e.g. `enwiki` for English Wikipedia"
    },
    "code": {
      "type": "string",
      "description": "Code of the project type, e.g. `wiki` for Wikipedia projects"
    },
    "name": {
      "type": "string",
      "description": "Name of the project"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "URL of the project"
    },
    "in_language": {
      "$ref": "#/$defs/language",
      "description": "Primary language of the project"
    }
  },
  "$defs": {
    "language": {
      "type": "object",
      "description": "Language of a Wikimedia project or article",
      "properties": {
        "identifier": {
          "type": "string",
          "description": "Wikimedia [language code](https://www.wikidata.org/wiki/Help:Wikimedia_language_codes/lists/all) of the language"
        },
        "name": {
          "type": "string",
          "description": "Full name of the language"
        },
        "alternate_name": {
          "type": "string",
          "description": "Alternate name of the language"
        },
        "direction": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "ltr",
            "rtl",
            null
          ],
          "description": "Direction the language is written in, `ltr` (left-to-right) or `rtl` (right-to-left)"
        }
      }
    }
  }
}