Skip to content

[Fix] Add related field to notifications_response swagger spec#801

Merged
dylanjeffers merged 1 commit into
mainfrom
fix/swagger-notifications-related-field
May 11, 2026
Merged

[Fix] Add related field to notifications_response swagger spec#801
dylanjeffers merged 1 commit into
mainfrom
fix/swagger-notifications-related-field

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

Summary

  • PR #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 — $refs the existing related schema (already defined at line 13146 for other endpoints).

Test plan

  • 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

PR #799 added the `related` block to the /v1/notifications response
in Go but missed the corresponding swagger schema update. Add the
`$ref` so SDK generators pick it up.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dylanjeffers dylanjeffers merged commit 921fe28 into main May 11, 2026
5 checks passed
@dylanjeffers dylanjeffers deleted the fix/swagger-notifications-related-field branch May 11, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant