fix(httputil): rename error body field platformCode → platform_code
errorBody() map key corrected from "platformCode" to "platform_code" to match the OpenAPI spec snake_case convention. All HTTP error responses produced by Error(w, err) now emit "platform_code" in the JSON body. PR.md added to .gitignore. Depends on xerrors v1.0.2 (go.mod bumped in follow-up commit after xerrors tag).
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -36,3 +36,4 @@ Thumbs.db
|
||||
# VCS files
|
||||
COMMIT.md
|
||||
RELEASE.md
|
||||
PR.md
|
||||
|
||||
Reference in New Issue
Block a user