{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/layero-ru/json-schema/layero-ru-project-build-config-out-schema.json",
  "title": "ProjectBuildConfigOut",
  "description": "ПОЛНОЕ разрешение конфигурации сборки — один ответ на весь экран.\n\n═══ ЗАЧЕМ ОТДЕЛЬНАЯ РУЧКА ═══\n\nДо 25.08.2026 разрешение считали ДВА независимых кода: `presets.resolve` на\nAPI (порядок «человек > детект > пресет», про файл не знал) и три\n`or`-выражения в билдере («файл > панель > умолчание»). Панель поверх этого\nсклеивала `layero.json` уже в интерфейсе — и склеить удалось одно поле из\nпяти. Результат виден на проде: у `layero-docs` настройки говорят\n`generic / dist`, а собирается `docusaurus / build`.\n\nЗдесь ответ считается ОДИН раз и целиком, включая ярус файла: панель его\nрисует, а не выводит заново своим набором условий. Свой набор условий у неё\nуже был, и он разошёлся (`T-20260824-16`).",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/layero-ru-openapi.json#/components/schemas/ProjectBuildConfigOut",
  "properties": {
    "framework": {
      "type": "string",
      "title": "Framework"
    },
    "label": {
      "type": "string",
      "title": "Label"
    },
    "fields": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Fields"
    },
    "resolved": {
      "additionalProperties": {
        "$ref": "#/$defs/BuildConfigFieldOut"
      },
      "type": "object",
      "title": "Resolved",
      "default": {}
    },
    "declared": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Declared",
      "default": []
    },
    "halves": {
      "anyOf": [
        {
          "additionalProperties": {
            "$ref": "#/$defs/ProjectBuildConfigHalfOut"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Halves"
    },
    "layero_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Layero Path"
    },
    "layero_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Layero Url"
    },
    "layero_warnings": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Layero Warnings",
      "default": []
    },
    "last_build": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Last Build",
      "default": {}
    },
    "last_build_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Build At"
    }
  },
  "type": "object",
  "required": [
    "framework",
    "label",
    "fields"
  ],
  "$defs": {
    "BuildConfigFieldOut": {
      "properties": {
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Value"
        },
        "source": {
          "type": "string",
          "title": "Source"
        },
        "policy": {
          "type": "string",
          "title": "Policy"
        },
        "default_of": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Default Of"
        },
        "candidates": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Candidates"
        }
      },
      "type": "object",
      "required": [
        "source",
        "policy"
      ],
      "title": "BuildConfigFieldOut",
      "description": "Одно поле конфигурации сборки: что подставится и что с ним можно."
    },
    "ProjectBuildConfigHalfOut": {
      "properties": {
        "framework": {
          "type": "string",
          "title": "Framework"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "fields": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Fields"
        },
        "resolved": {
          "additionalProperties": {
            "$ref": "#/$defs/BuildConfigFieldOut"
          },
          "type": "object",
          "title": "Resolved",
          "default": {}
        },
        "declared": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Declared",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "framework",
        "label",
        "fields"
      ],
      "title": "ProjectBuildConfigHalfOut",
      "description": "Разрешение конфигурации ОДНОЙ половины фуллстека.\n\nТа же форма, что у корневого ответа, минус поля про сам файл: путь, ссылка\nи замечания у половин общие с корнем — файл-то один.\n\n🚨 Заведено 26.08.2026 (`T-20260826-28`), потому что половины разрешала\nПАНЕЛЬ своим набором условий: показывала `npm ci` там, где файл объявляет\n`npm install --no-audit --no-fund`, без бейджа и с карандашом. Файл\nпобеждает на сборке — значит форма обещала значение, которого не будет."
    }
  }
}