{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/akeda-ru/json-schema/akeda-ru-core-accounting-period-reopen-schema.json",
  "title": "CoreAccountingPeriodReopen",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/akeda-ru-core-accounting-api-openapi.yml#/components/schemas/CoreAccountingPeriodReopen",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "business",
    "closed_through",
    "reason"
  ],
  "properties": {
    "business": {
      "$ref": "#/$defs/UUID",
      "description": "Бизнес, чей учёт открывается; без него — параметр business адреса, иначе отказ 400"
    },
    "closed_through": {
      "type": "string",
      "description": "Новая закрытая дата раньше текущей (ГГГГ-ММ-ДД) или пустая строка — открыть учёт бизнеса полностью"
    },
    "reason": {
      "type": "string",
      "minLength": 1,
      "description": "Почему открывается закрытый период; обязательна"
    }
  },
  "$defs": {
    "UUID": {
      "type": "string",
      "format": "uuid"
    }
  }
}