Skip to content

Sync OpenAPI error responses for hardened routes#80

Open
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/sync-error-responses-1774094977
Open

Sync OpenAPI error responses for hardened routes#80
mintlify[bot] wants to merge 1 commit intomainfrom
mintlify/sync-error-responses-1774094977

Conversation

@mintlify
Copy link

@mintlify mintlify bot commented Mar 21, 2026

Summary

Updates the OpenAPI spec to reflect the hardened error mappings from d-sports-api@5104cf6.

Trigger repo changes

  • app/api/locker-room/route.ts — normalized auth and server error responses
  • app/api/locker-room/[id]/comments/route.ts — added 400/500 error handling
  • app/api/locker-room/[id]/react/route.ts — added 400 for missing type, 500 for errors
  • app/api/locker-room/stream/route.ts — added 401 for unauthenticated users
  • app/api/teams/[id]/follow/route.ts — added 401, 404, 500 error responses
  • app/api/teams/followed/route.ts — added 401, 500 error responses
  • app/api/user/toggle-star/route.ts — added 400, 401 validation and auth errors
  • app/api/user/star-status/route.ts — added 400, 401, marked userId as required

Docs changes

  • api-reference/openapi.json — added missing error response codes (400, 401, 404, 500) to locker-room, teams follow, and star endpoints to match the hardened route implementations

@mintlify
Copy link
Author

mintlify bot commented Mar 21, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
d-sports 🟢 Ready View Preview Mar 21, 2026, 12:11 PM

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.

0 participants