{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/witwiki-app/json-schema/witwiki-app-source-schema.json",
  "title": "Source",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/witwiki-app-openapi.yaml#/components/schemas/Source",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "project_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "content_type": {
      "type": "string"
    },
    "size": {
      "type": "integer"
    },
    "ingested": {
      "type": "boolean"
    },
    "origin": {
      "type": "string",
      "enum": [
        "upload",
        "import"
      ],
      "description": "import marks an original saved by an import; those do not count against the source quota"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": true
}