docs(openapi): add examples for analysis endpoints#1032
Conversation
|
Hi @imDarshanGK, I've implemented the OpenAPI examples for the analysis endpoints as requested in #205. Changes
Verification
Could you please review the PR and approve the pending workflows when convenient? Thank you! |
|
👋 This PR has had no activity for 7 days. Please push updates or comment if you still need more time. Inactive PRs may be closed automatically after 7 more days. |
|
give me some time |
|
Hi @imDarshanGK, Just following up on this PR. The branch has been updated with the latest Whenever convenient, could you please review the PR and approve the pending workflows? If any changes or improvements are required, I'd be happy to address them. Thank you for your time and support! |
|
"Hi @imDarshanGK, I have formatted schemas.py with black and isort and pushed the updates. The formatting/lint checks should pass now. Could you please approve the workflows to run?" |

📝 Description
This PR adds OpenAPI request and response examples for the analysis endpoints to improve the Swagger UI experience and make it easier for users to test the API using the built-in "Try it out" feature.
🚀 Endpoints Covered
/explanation//debugging//suggestions//analyze/✨ Changes Made
Added request payload examples for
CodeRequestAdded realistic response examples for:
ExplanationResponseDebuggingResponseSuggestionsResponseAnalyzeResponseZipAnalyzeResponseConfigured examples using Pydantic v2 schema metadata (
json_schema_extra)Improved Swagger UI documentation and usability
✅ Verification
55/55)Fixes #205