Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: add `json` tag to advice struct (#1561)

STEVEN0ad7aa1026bc
diff --git a/plugin/advisor/advisor.go b/plugin/advisor/advisor.go
index 104d23b893..35b04db2e0 100644
--- a/plugin/advisor/advisor.go
+++ b/plugin/advisor/advisor.go
@@ -102,10 +102,10 @@ const (
// Advice is the result of an advisor.
type Advice struct {
- Status Status
- Code common.Code
- Title string
- Content string
+ Status Status `json:"status"`
+ Code common.Code `json:"code"`
+ Title string `json:"title"`
+ Content string `json:"content"`
}
// MarshalLogObject constructs a field that carries Advice.