{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/configure-dev/json-schema/configure-dev-file-write-request-schema.json",
  "title": "FileWriteRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/configure-dev-files-api-openapi.yml#/components/schemas/FileWriteRequest",
  "type": "object",
  "required": [
    "path",
    "content"
  ],
  "properties": {
    "path": {
      "$ref": "#/$defs/FilePath"
    },
    "content": {
      "type": "string",
      "maxLength": 1000000
    },
    "type": {
      "type": "string",
      "enum": [
        "json",
        "markdown"
      ],
      "default": "markdown"
    },
    "mode": {
      "type": "string",
      "enum": [
        "overwrite",
        "append",
        "merge"
      ],
      "default": "overwrite"
    }
  },
  "$defs": {
    "FilePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500,
      "pattern": "^/[a-zA-Z0-9._/-]*$"
    }
  }
}