{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aginera-ai/json-schema/aginera-ai-project-schema.json",
  "title": "Project",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aginera-ai-projects-api-openapi.yml#/components/schemas/Project",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/ProjectId"
    },
    "name": {
      "type": "string"
    },
    "reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "end_customer_ref": {
      "type": [
        "string",
        "null"
      ]
    },
    "external_ref": {
      "type": [
        "string",
        "null"
      ]
    },
    "address": {
      "type": [
        "string",
        "null"
      ]
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "document_count": {
      "type": "integer"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "name",
    "reference",
    "end_customer_ref",
    "external_ref",
    "address",
    "metadata",
    "document_count",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "ProjectId": {
      "type": "string",
      "pattern": "^prj_[0-9A-Za-z]{22}$"
    }
  }
}