Skip to content

refactor: migrate to flask-smorest with OpenAPI auto-generation#2

Merged
rhythmatician merged 1 commit intomainfrom
flask-smorest-refactor
May 22, 2025
Merged

refactor: migrate to flask-smorest with OpenAPI auto-generation#2
rhythmatician merged 1 commit intomainfrom
flask-smorest-refactor

Conversation

@rhythmatician
Copy link
Contributor

  • Replaced manual Blueprint usage with flask-smorest
  • Introduced marshmallow schemas for structured responses
  • Enabled OpenAPI 3.0 docs at /openapi.json and Swagger UI at /docs
  • Refactored /whoami and /work_item_details to class-based views

- Replaced manual Blueprint usage with flask-smorest
- Introduced marshmallow schemas for structured responses
- Enabled OpenAPI 3.0 docs at /openapi.json and Swagger UI at /docs
- Refactored /whoami and /work_item_details to class-based views
@rhythmatician rhythmatician requested a review from Copilot May 22, 2025 01:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the application to migrate from manual Blueprint handling to flask-smorest for OpenAPI auto-generation, introduces Marshmallow schemas, and refactors routes to class‐based views.

  • Replaces manual Blueprint registration with flask-smorest and class-based views
  • Implements new Marshmallow schemas for structured responses
  • Updates configuration for OpenAPI docs and Swagger UI

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/conftest.py Updated to register new blueprints (blp) for the migrated routes
schemas.py Introduces new Marshmallow schemas
routes/work_item_details.py Refactors route to a class-based view and updates error handling
routes/whoami.py Converts route to a class-based view with flask-smorest integration
app.py Updates application configuration to integrate flask-smorest

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.

2 participants