{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commentary-dev/json-schema/commentary-dev-form-git-results-request-schema.json",
  "title": "FormGitResultsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commentary-dev-forms-api-openapi.yml#/components/schemas/FormGitResultsRequest",
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "import",
        "preview_writeback"
      ]
    },
    "submissionId": {
      "type": "string"
    },
    "submissionIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 50
    },
    "paths": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "target": {
      "type": "object",
      "properties": {
        "owner": {
          "type": "string"
        },
        "repo": {
          "type": "string"
        },
        "ref": {
          "type": "string"
        },
        "branch": {
          "type": "string"
        },
        "sourcePath": {
          "type": "string"
        },
        "baseBranch": {
          "type": "string"
        },
        "createBranch": {
          "type": "boolean"
        }
      },
      "additionalProperties": true
    },
    "summary": {
      "type": "string"
    },
    "commitMessage": {
      "type": "string"
    },
    "openPullRequest": {
      "type": "boolean"
    },
    "pullRequestTitle": {
      "type": "string"
    },
    "pullRequestBody": {
      "type": "string"
    },
    "agentAlias": {
      "type": "string"
    },
    "clientName": {
      "type": "string"
    }
  },
  "additionalProperties": true
}