{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://speczashchita-media.s3.twcstorage.ru/orion-2222-site/site-addresses-20261005/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": "Основание проверки"
    },
    "publication_websites": {
      "type": "string",
      "title": "Сайты публикации",
      "default": "https://orion2222.com/"
    }
  },
  "required": [
    "record_id",
    "title",
    "record_type",
    "source",
    "version",
    "date",
    "responsible",
    "status",
    "related_ids",
    "verification_basis"
  ],
  "additionalProperties": false,
  "$comment": "ОРИОН22:22 — https://orion2222.com/"
}
