{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/revyl/json-schema/revyl-code-execution-script-update-schema.json",
  "title": "CodeExecutionScriptUpdate",
  "description": "Model for updating an existing script.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revyl-code-execution-scripts-api-openapi.yml#/components/schemas/CodeExecutionScriptUpdate",
  "properties": {
    "code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Script code content",
      "title": "Code"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Script description",
      "title": "Description"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Script name",
      "title": "Name"
    },
    "runtime": {
      "anyOf": [
        {
          "enum": [
            "python",
            "javascript",
            "typescript",
            "bash"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Runtime language",
      "title": "Runtime"
    }
  },
  "type": "object"
}