Sync OpenAPI error responses for hardened routes#80
Open
mintlify[bot] wants to merge 1 commit intomainfrom
Open
Sync OpenAPI error responses for hardened routes#80mintlify[bot] wants to merge 1 commit intomainfrom
mintlify[bot] wants to merge 1 commit intomainfrom
Conversation
Generated-By: mintlify-agent
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 responsesapp/api/locker-room/[id]/comments/route.ts— added 400/500 error handlingapp/api/locker-room/[id]/react/route.ts— added 400 for missing type, 500 for errorsapp/api/locker-room/stream/route.ts— added 401 for unauthenticated usersapp/api/teams/[id]/follow/route.ts— added 401, 404, 500 error responsesapp/api/teams/followed/route.ts— added 401, 500 error responsesapp/api/user/toggle-star/route.ts— added 400, 401 validation and auth errorsapp/api/user/star-status/route.ts— added 400, 401, marked userId as requiredDocs 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