{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commentary-dev/json-schema/commentary-dev-form-submission-request-schema.json",
  "title": "FormSubmissionRequest",
  "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/FormSubmissionRequest",
  "type": "object",
  "properties": {
    "values": {
      "type": "object",
      "additionalProperties": true
    },
    "sourceContext": {
      "$ref": "#/$defs/FormSourceContext"
    },
    "submissionId": {
      "type": "string"
    },
    "submissionOrigin": {
      "type": "string",
      "enum": [
        "api",
        "mcp",
        "cli",
        "agent_api"
      ]
    },
    "agentAlias": {
      "type": "string"
    },
    "clientName": {
      "type": "string"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "FormSourceContext": {
      "type": "object",
      "description": "Embedded review context such as repository owner/repo plus prNumber or branchRef, draftReviewSessionId, filePath, documentVersionId, formInstanceId, and route.",
      "additionalProperties": true
    }
  }
}