{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/firma-dev/main/json-schema/firma-dev-workspace-custom-field-schema.json",
  "title": "WorkspaceCustomField",
  "description": "A custom field definition for a workspace",
  "x-generated": "2026-09-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/firma-dev-custom-fields-api-openapi.yml#/components/schemas/WorkspaceCustomField",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique identifier"
    },
    "field_name": {
      "type": "string",
      "description": "Machine-readable field name (auto-generated from label)"
    },
    "field_label": {
      "type": "string",
      "description": "Human-readable display label"
    },
    "is_preset": {
      "type": "boolean",
      "description": "If true, this field has a preset value for all users"
    },
    "preset_value": {
      "type": [
        "string",
        "null"
      ],
      "description": "Preset value (only used when is_preset=true)"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "field_name",
    "field_label"
  ]
}