{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://aiosforge.dev/schemas/init.schema.json",
  "title": "AIOSON init --json output",
  "type": "object",
  "required": ["ok", "targetDir", "existingInstall", "copied", "skipped", "backedUp", "dryRun", "localeApply"],
  "properties": {
    "ok": { "type": "boolean", "const": true },
    "targetDir": { "type": "string" },
    "existingInstall": { "type": "boolean" },
    "copied": {
      "type": "array",
      "items": { "type": "string" }
    },
    "skipped": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["path", "reason"],
        "properties": {
          "path": { "type": "string" },
          "reason": { "type": "string" }
        },
        "additionalProperties": true
      }
    },
    "backedUp": {
      "type": "array",
      "items": { "type": "string" }
    },
    "dryRun": { "type": "boolean" },
    "localeApply": {
      "type": ["object", "null"],
      "required": ["locale", "copied", "missing", "dryRun"],
      "properties": {
        "locale": { "type": "string" },
        "copied": { "type": "array" },
        "missing": {
          "type": "array",
          "items": { "type": "string" }
        },
        "dryRun": { "type": "boolean" }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}
