on main help sign in
fix: add $schema to jsonschema

closes #620 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> Co-authored-by: Sam Mohr <smores56@users.noreply.github.com>

commitb0b85e6e8108ef3f9fc46714759a3e25648324b5 authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com> dateWed 6 Aug 2025, 22:17 (1 year ago) parent243da98
2 files changed+5−1
internal/config/config.go+2−1 schema.json+3
internal/config/config.go+2−1
@@ -20,7 +20,6 @@ import (
2020const (
2121 appName = "crush"
2222 defaultDataDirectory = ".crush"
23− defaultLogLevel = "info"
2423)
2524
2625var defaultContextPaths = []string{
@@ -244,6 +243,8 @@ type Agent struct {
244243
245244// Config holds the configuration for crush.
246245type Config struct {
246+ Schema string `json:"$schema,omitempty"`
247+
247248 // We currently only support large/small as values here.
248249 Models map[SelectedModelType]SelectedModel `json:"models,omitempty" jsonschema:"description=Model configurations for different model types,example={\"large\":{\"model\":\"gpt-4o\",\"provider\":\"openai\"}}"`
249250
schema.json+3
@@ -5,6 +5,9 @@
55 "$defs": {
66 "Config": {
77 "properties": {
8+ "$schema": {
9+ "type": "string"
10+ },
811 "models": {
912 "additionalProperties": {
1013 "$ref": "#/$defs/SelectedModel"