fix(scripts/apitypings): force health.Message and health.Severity to correct types (#11043)

* Force typegen types for some fields of derp health report
* Explicitly allocate slices for RegionReport.{Errors,Warnings} to avoid nulls in API response
This commit is contained in:
Cian Johnston
2023-12-05 16:31:48 +00:00
committed by GitHub
parent a235644046
commit 2e4e0b2d2c
5 changed files with 24 additions and 18 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ func (*AGPLWorkspaceProxiesFetchUpdater) Update(context.Context) error {
func (r *WorkspaceProxyReport) Run(ctx context.Context, opts *WorkspaceProxyReportOptions) {
r.Healthy = true
r.Severity = health.SeverityOK
r.Warnings = []health.Message{}
r.Warnings = make([]health.Message, 0)
r.Dismissed = opts.Dismissed
if opts.WorkspaceProxiesFetchUpdater == nil {