{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://speczashchita.com/media/orion-v1/record.schema.json",
  "title": "Единая карточка документа, отчёта и реестра · проект 1.0",
  "description": "Проект единого формата для согласования. Пустые поля заполняет ответственная сторона; шаблон не подтверждает утверждение документа или результат проверки.",
  "type": "object",
  "properties": {
    "record_id": {
      "type": "string",
      "minLength": 1,
      "title": "Идентификатор"
    },
    "title": {
      "type": "string",
      "minLength": 1,
      "title": "Название"
    },
    "record_type": {
      "type": "string",
      "enum": [
        "document",
        "report",
        "registry"
      ],
      "title": "Тип записи"
    },
    "source": {
      "type": "string",
      "minLength": 1,
      "title": "Источник / ссылка на оригинал"
    },
    "version": {
      "type": "string",
      "minLength": 1,
      "title": "Версия"
    },
    "date": {
      "type": "string",
      "format": "date",
      "title": "Дата"
    },
    "responsible": {
      "type": "string",
      "minLength": 1,
      "title": "Ответственная роль или организация"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "under_review",
        "approved",
        "archived"
      ],
      "title": "Статус",
      "description": "Статус approved требует отдельного документального основания."
    },
    "related_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true,
      "title": "Связанные идентификаторы"
    },
    "verification_basis": {
      "type": "string",
      "title": "Основание проверки"
    }
  },
  "required": [
    "record_id",
    "title",
    "record_type",
    "source",
    "version",
    "date",
    "responsible",
    "status",
    "related_ids",
    "verification_basis"
  ],
  "additionalProperties": false
}
