{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eurobase-dev/json-schema/eurobase-dev-function-update-request-schema.json",
  "title": "FunctionUpdateRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eurobase-dev-functions-api-openapi.yml#/components/schemas/FunctionUpdateRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "entryPath": {
      "type": "string"
    },
    "sourceFiles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FunctionSourceFile"
      }
    },
    "triggerType": {
      "type": "string",
      "enum": [
        "http",
        "cron"
      ]
    },
    "authMode": {
      "type": "string",
      "enum": [
        "public",
        "signed"
      ]
    },
    "cronSchedule": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "FunctionSourceFile": {
      "type": "object",
      "required": [
        "path",
        "content"
      ],
      "properties": {
        "path": {
          "type": "string"
        },
        "content": {
          "type": "string"
        }
      }
    }
  }
}