{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Service",
  "title": "Service",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "type": {
      "type": "string",
      "enum": [
        "serverless",
        "workflow",
        "table",
        "proxy"
      ],
      "description": "The type of backend service"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Target URL for proxy services"
    },
    "retries": {
      "type": "integer",
      "description": "Number of retries on failure"
    },
    "connectTimeout": {
      "type": "integer",
      "description": "Connection timeout in milliseconds"
    },
    "readTimeout": {
      "type": "integer",
      "description": "Read timeout in milliseconds"
    },
    "writeTimeout": {
      "type": "integer",
      "description": "Write timeout in milliseconds"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}