fix(route): update HealthJSON field to exclude from JSON serialization

This commit is contained in:
yusing
2025-08-17 00:40:57 +08:00
parent 0862920324
commit 55018c8ab6

View File

@@ -53,7 +53,7 @@ type (
Idlewatcher *types.IdlewatcherConfig `json:"idlewatcher,omitempty" extensions:"x-nullable"`
HealthMon types.HealthMonitor `json:"health,omitempty" swaggerignore:"true"`
// for swagger
HealthJSON *types.HealthJSON `form:"health"`
HealthJSON *types.HealthJSON `json:"-" form:"health"`
Metadata `deserialize:"-"`
}