{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tuqo-ru/json-schema/tuqo-ru-git-config-input-schema.json",
  "title": "GitConfigInput",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tuqo-ru-openapi.json#/components/schemas/GitConfigInput",
  "type": "object",
  "properties": {
    "clone_url": {
      "type": "string",
      "format": "uri",
      "description": "https URL of the repository (required). https only, no userinfo; the host must resolve to public addresses (anti-SSRF), otherwise 400."
    },
    "branch": {
      "type": [
        "string",
        "null"
      ],
      "default": "main",
      "description": "Live branch (default `main`). Must be a short, valid git branch name (git check-ref-format, not `HEAD`/`refs/…`), otherwise 400."
    },
    "auth_user": {
      "type": [
        "string",
        "null"
      ],
      "description": "User name for HTTP Basic (default oauth2). Not needed for a public repository."
    },
    "token": {
      "type": [
        "string",
        "null"
      ],
      "description": "PAT/token for a private repository. Encrypted on the server, never returned. Empty → public repository."
    },
    "install_command": {
      "type": [
        "string",
        "null"
      ]
    },
    "build_command": {
      "type": [
        "string",
        "null"
      ]
    },
    "output_dir": {
      "description": "Build output folder inside the project (relative to root_dir, or to the repository root when root_dir is empty): no leading /, no .., no backslash. It must contain index.html (or TanStack Start's _shell.html, which becomes index.html); otherwise the deploy fails and the previous version, if any, stays live. Empty: auto-detect (dist, dist/client, build, build/client, out, .vitepress/dist, .output/public, _site, site, storybook-static, public as a fallback), preferring the first folder with a home page.",
      "type": [
        "string",
        "null"
      ]
    },
    "root_dir": {
      "description": "Project subfolder inside the repository (monorepo), relative to the repository root: no leading /, no .., no backslash. Empty: the repository root.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "clone_url"
  ]
}