Skip to content

Harden JSON unmarshalling for API payloads (disallow unknown fields) #19

Description

@emperor42

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Scheduled

Relationships

None yet

Development

No branches or pull requests

Issue actions