Skip to content

Commit 921fe28

Browse files
dylanjeffersclaude
andauthored
[Fix] Add related field to notifications_response swagger spec (#801)
## Summary - [PR #799](#799) added a `related` block (`{ users, tracks, playlists }`) to the `/v1/notifications` response in Go but didn't update the swagger spec to match. - Without this, generated SDK clients (e.g. `@audius/sdk`) don't see the field and consumers can't read it in a type-safe way. - One-line addition — `$ref`s the existing `related` schema (already defined at line 13146 for other endpoints). ## Test plan - [x] Spec lints / parses (single property addition under existing schema) - [ ] Regenerating SDK clients picks up `related?: Related` on `NotificationsResponse` (verified locally against the `@audius/sdk` typescript-fetch generator) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 602f7b0 commit 921fe28

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

api/swagger/swagger-v1.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15212,6 +15212,8 @@ components:
1521215212
$ref: "#/components/schemas/version_metadata"
1521315213
data:
1521415214
$ref: "#/components/schemas/notifications"
15215+
related:
15216+
$ref: "#/components/schemas/related"
1521515217
connected_wallets_response:
1521615218
type: object
1521715219
properties:

0 commit comments

Comments
 (0)