fix(xerrors): rename MarshalJSON field platformCode → platform_code #3
Reference in New Issue
Block a user
Delete Branch "fix/platform-code-json-tag"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
MarshalJSONJSON tag from"platformCode"to"platform_code"to matchthe OpenAPI spec snake_case convention for error response fields
"platform_code"PR.mdto.gitignoreTest plan
go test ./...passes*Errcontains"platform_code", not"platformCode""platform_code"is omitted when empty (omitempty still applies)