Skip to content

Commit 6e27b98

Browse files
Update changelogs from fern repo (#4565)
Co-authored-by: tstanmay13 <29681256+tstanmay13@users.noreply.github.com>
1 parent bdc4111 commit 6e27b98

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## 1.31.4
2+
**`(fix):`** Fix sub-package ErrorCodes maps being empty when errors are declared in a
3+
different namespace than the endpoints that reference them. The generator now
4+
groups errors by the service namespace that uses them (via endpoint error
5+
references) instead of by where they are declared. This ensures that
6+
sub-packages like `audio/` correctly get populated ErrorCodes with typed
7+
errors (e.g. BadRequestError, UnauthorizedError) instead of an empty map
8+
that would cause API errors to be returned as generic `*core.APIError`.
9+
10+

0 commit comments

Comments
 (0)