Skip to content

Add OpenAPI Schema Generation Test to CI Workflow #78

Description

@hardikkaurani

🟡 Intermediate Issue

Problem

There is no automated test verifying that the FastAPI OpenAPI schema generates correctly. Schema generation errors can silently break API docs.

Why It Matters

A simple test calling app.openapi() catches schema generation bugs before they reach production API documentation consumers.

Suggested Files

  • backend/tests/test_openapi_schema.py (new file)

Definition of Done

  • Test calling app.openapi() added.
  • Test verifies valid OpenAPI 3.1 output structure.
  • pytest passes cleanly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedExtra attention is neededtestingUnit, integration, and component testing

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions