{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Update Component",
  "description": "Update an existing component's name, description, and attributes. The component ID and underlying bundle cannot be changed.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "title": "Component Name",
      "description": "Display name for this component (e.g., 'Billing Database')",
      "minLength": 1,
      "examples": ["Billing Database", "Session Cache", "API Gateway"]
    },
    "description": {
      "type": "string",
      "title": "Component Description",
      "description": "Optional description of this component's purpose",
      "maxLength": 255,
      "examples": ["Redis instance for caching API responses", "PostgreSQL database for user data"]
    },
    "attributes": {
      "type": "object",
      "title": "Attributes",
      "description": "Key-value attributes for this component. Keys and values must be strings. Must conform to the organization's custom attributes for the component scope.",
      "additionalProperties": { "type": "string" },
      "x-gql-type": "map"
    }
  }
}
