refact(api): complete response_model= coverage — 100% of FastAPI endpoints (#5317)#5834
Merged
mrveiss merged 1 commit intoDev_new_guifrom Apr 25, 2026
Merged
refact(api): complete response_model= coverage — 100% of FastAPI endpoints (#5317)#5834mrveiss merged 1 commit intoDev_new_guifrom
mrveiss merged 1 commit intoDev_new_guifrom
Conversation
… 100% coverage (#5317) Annotates 412 previously-unannotated route handlers across 83 API files with response_model=DataResponse (generic dict/JSON responses) or response_model=SuccessResponse (simple success messages). Adds `from api.schemas_common import DataResponse, SuccessResponse` to each file that lacked the import. Coverage goes from 75% (1,243/1,655) to 100% (1,655/1,655). All files parse cleanly (ast.parse passes on every modified file). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This was referenced Apr 25, 2026
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
response_model=DataResponseorresponse_model=SuccessResponsefrom api.schemas_common import DataResponse, SuccessResponseimports where missingValidation
ast.parseverified)response_model=DataResponseandresponse_model=SuccessResponseare existing schema classes fromapi/schemas_common.pyresponse_model=Noneon streaming endpoints was left untouched from prior PRs)Related
Completes #5317. Prior batches: #5821 (23 endpoints), #5820, earlier PRs in the series.
🤖 Generated with Claude Code