{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/revyl/json-schema/revyl-code-execution-script-create-schema.json",
  "title": "CodeExecutionScriptCreate",
  "description": "Model for creating a new 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/CodeExecutionScriptCreate",
  "properties": {
    "code": {
      "description": "Script code content",
      "title": "Code",
      "type": "string"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Script description",
      "title": "Description"
    },
    "name": {
      "description": "Script name",
      "title": "Name",
      "type": "string"
    },
    "runtime": {
      "description": "Runtime language",
      "enum": [
        "python",
        "javascript",
        "typescript",
        "bash"
      ],
      "title": "Runtime",
      "type": "string"
    }
  },
  "required": [
    "name",
    "code",
    "runtime"
  ],
  "type": "object"
}