You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace json.NewDecoder(r.Body).Decode(&payload) with a decoder that calls decoder.DisallowUnknownFields(). This prevents accidental extra fields from being silently ignored and improves API robustness.
Replace json.NewDecoder(r.Body).Decode(&payload) with a decoder that calls decoder.DisallowUnknownFields(). This prevents accidental extra fields from being silently ignored and improves API robustness.