Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Check return value of Unmarshal
  • Loading branch information
sgoedecke committed Jul 21, 2025
commit ec3ceed9faf27f0ddbf3727d2921a995bda2009d
5 changes: 4 additions & 1 deletion pkg/prompt/prompt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ messages:
ResponseFormat: func() *string { s := "json_schema"; return &s }(),
JsonSchema: func() *JsonSchema {
js := &JsonSchema{Raw: jsonSchemaStr}
json.Unmarshal([]byte(jsonSchemaStr), &js.Parsed)
err := json.Unmarshal([]byte(jsonSchemaStr), &js.Parsed)
if err != nil {
t.Fatal(err)
}
return js
}(),
}
Expand Down
Loading