diff --git a/pkg/gateway/schema.go b/pkg/gateway/schema.go index 27ff4e565..68fc64296 100644 --- a/pkg/gateway/schema.go +++ b/pkg/gateway/schema.go @@ -9,12 +9,12 @@ import ( // SchemaField describes a single configuration field. type SchemaField struct { - Key string `json:"key"` - Label string `json:"label"` - Group string `json:"group,omitempty"` - Type string `json:"type"` - Secret bool `json:"secret"` - Default interface{} `json:"default"` + Key string `json:"key"` + Label string `json:"label"` + Group string `json:"group,omitempty"` + Type string `json:"type"` + Secret bool `json:"secret"` + Default interface{} `json:"default"` } // SchemaSection describes a top-level configuration section. diff --git a/pkg/gateway/server_test.go b/pkg/gateway/server_test.go index 763107bf6..3efa10478 100644 --- a/pkg/gateway/server_test.go +++ b/pkg/gateway/server_test.go @@ -198,10 +198,10 @@ func TestBuildSchema_Labels(t *testing.T) { schema := BuildSchema(config.DefaultConfig()) wantLabels := map[string]string{ - "api_key": "API Key", - "base_url": "Base URL", - "defaults.max_tokens": "Max Tokens", - "slack.bot_token": "Bot Token", + "api_key": "API Key", + "base_url": "Base URL", + "defaults.max_tokens": "Max Tokens", + "slack.bot_token": "Bot Token", } for _, sec := range schema.Sections { @@ -338,7 +338,7 @@ func TestBuildSchema_DefaultValues(t *testing.T) { key string want interface{} }{ - {"agents", "defaults.max_tokens", float64(8192)}, // JSON numbers → float64 + {"agents", "defaults.max_tokens", float64(8192)}, // JSON numbers → float64 {"agents", "defaults.context_window", float64(128000)}, {"agents", "defaults.restrict_to_workspace", true}, {"heartbeat", "enabled", true}, @@ -2332,7 +2332,6 @@ func TestBuildSchema_GatewaySectionExcluded(t *testing.T) { } } - // --- #34: goTypeToSchema unknown type --- func TestGoTypeToSchema_UnknownType(t *testing.T) {