{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/run402-com/json-schema/run402-com-app-repo-commit-result-schema.json",
  "title": "AppRepoCommitResult",
  "description": "201 with `committed: true` for a new commit; 200 `{ committed: false, head }` when the change matches what is there (no commit is made).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/run402-com-app-repos-api-openapi.yml#/components/schemas/AppRepoCommitResult",
  "type": "object",
  "required": [
    "committed",
    "head"
  ],
  "properties": {
    "committed": {
      "type": "boolean"
    },
    "commit": {
      "type": "string"
    },
    "parent": {
      "type": [
        "string",
        "null"
      ]
    },
    "head": {
      "type": [
        "string",
        "null"
      ]
    },
    "seq": {
      "type": "integer"
    },
    "paths": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "author": {
      "$ref": "#/$defs/AppRepoPerson"
    }
  },
  "$defs": {
    "AppRepoPerson": {
      "type": "object",
      "required": [
        "name",
        "email"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}