{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/runcabin-com/json-schema/runcabin-com-edit-request-schema.json",
  "title": "EditRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/runcabin-com-openapi.json#/components/schemas/EditRequest",
  "type": "object",
  "properties": {
    "edits": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/SiteTextEdit"
      }
    },
    "files": {
      "type": [
        "null",
        "object"
      ],
      "additionalProperties": {
        "type": "string"
      }
    },
    "deletePaths": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "type": "string"
      }
    },
    "expectDeploymentId": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "null",
        "integer",
        "string"
      ],
      "format": "int32"
    }
  },
  "$defs": {
    "SiteTextEdit": {
      "type": "object",
      "properties": {
        "path": {
          "type": [
            "null",
            "string"
          ],
          "description": "The file to change, e.g. 'index.html' (the default) or 'css/style.css'."
        },
        "find": {
          "type": "string",
          "description": "The exact text to find, as it is in the live file now (spaces and line breaks included)."
        },
        "replace": {
          "type": [
            "null",
            "string"
          ],
          "description": "The text to put in its place. Empty removes the found text."
        },
        "all": {
          "type": "boolean",
          "description": "true changes every place the text occurs. false (the default) needs it to occur exactly once."
        }
      }
    }
  }
}