Skip to content

docs(openapi): add examples for analysis endpoints#1032

Open
Neelr1912 wants to merge 4 commits into
imDarshanGK:mainfrom
Neelr1912:docs/openapi-examples-analysis-endpoints
Open

docs(openapi): add examples for analysis endpoints#1032
Neelr1912 wants to merge 4 commits into
imDarshanGK:mainfrom
Neelr1912:docs/openapi-examples-analysis-endpoints

Conversation

@Neelr1912

Copy link
Copy Markdown

📝 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 CodeRequest

  • Added realistic response examples for:

    • ExplanationResponse
    • DebuggingResponse
    • SuggestionsResponse
    • AnalyzeResponse
    • ZipAnalyzeResponse
  • Configured examples using Pydantic v2 schema metadata (json_schema_extra)

  • Improved Swagger UI documentation and usability

✅ Verification

  • OpenAPI schema generation verified successfully
  • Swagger UI displays example request/response payloads
  • Endpoint tests passed (55/55)
  • No changes to API functionality or business logic

Fixes #205

@Neelr1912 Neelr1912 requested a review from imDarshanGK as a code owner June 12, 2026 05:21
@Neelr1912

Copy link
Copy Markdown
Author

Hi @imDarshanGK,

I've implemented the OpenAPI examples for the analysis endpoints as requested in #205.

Changes

  • Added request example for CodeRequest

  • Added response examples for:

    • ExplanationResponse
    • DebuggingResponse
    • SuggestionsResponse
    • AnalyzeResponse
    • ZipAnalyzeResponse

Verification

  • OpenAPI schema generated successfully
  • Swagger UI displays examples correctly
  • Endpoint tests passed locally (55/55)

Could you please review the PR and approve the pending workflows when convenient?

Thank you!

@github-actions

Copy link
Copy Markdown

👋 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.

@github-actions github-actions Bot added the stale label Jun 20, 2026
@Neelr1912

Copy link
Copy Markdown
Author

give me some time

@Neelr1912

Copy link
Copy Markdown
Author

Hi @imDarshanGK,

Just following up on this PR.

The branch has been updated with the latest main branch and is ready for review. It appears that the remaining checks are currently waiting for maintainer approval before the workflows can run.

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!

@github-actions github-actions Bot removed the stale label Jun 21, 2026

@imDarshanGK imDarshanGK left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Neelr1912

Copy link
Copy Markdown
Author

"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?"

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.

Add OpenAPI examples for analysis endpoints

2 participants