{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wikimedia/json-schema/wikimedia-batch-schema.json",
  "title": "batch",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wikimedia-batches-api-openapi.yml#/components/schemas/batch",
  "type": "object",
  "properties": {
    "identifier": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "in_language": {
      "$ref": "#/$defs/language"
    },
    "is_part_of": {
      "$ref": "#/$defs/project"
    },
    "namespace": {
      "$ref": "#/$defs/article_namespace"
    },
    "size": {
      "$ref": "#/$defs/size"
    }
  },
  "$defs": {
    "article_namespace": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": "number"
        }
      }
    },
    "language": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "alternate_name": {
          "type": "string"
        },
        "direction": {
          "type": "string"
        }
      }
    },
    "project": {
      "type": "object",
      "properties": {
        "identifier": {
          "type": "string"
        },
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "in_language": {
          "$ref": "#/$defs/language"
        }
      }
    },
    "size": {
      "type": "object",
      "properties": {
        "unit_text": {
          "type": "string"
        },
        "value": {
          "type": "number"
        }
      }
    }
  }
}