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:
2026-05-21 19:32:35 -06:00
parent e8adc266a6
commit ccfa3d1527
6 changed files with 20 additions and 6 deletions

View File

@@ -5,6 +5,17 @@ All notable changes to this module will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this module adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.0.1] - 2026-05-22
### Fixed
- `errorBody` JSON key corrected from `"platformCode"` to `"platform_code"` to
match the OpenAPI spec snake_case convention. All HTTP error responses now
emit `"platform_code"` in the JSON body.
- Dependency `xerrors` bumped to v1.0.2.
[1.0.1]: https://code.nochebuena.dev/go/httputil/compare/v1.0.0...v1.0.1
## [1.0.0] - 2026-05-12
### Changed