---
Validates FastAPI backend code for architectural patterns and best practices.
/plugin marketplace add adelabdelgawad/full-stack/plugin install fastapi-patterns@full-stackRun comprehensive validation of the FastAPI backend to check for pattern violations.
Run the validation script on the backend codebase:
python3 .claude-plugins/fastapi-patterns/scripts/validate_all.py --path src/backend --verbose
After running, analyze the output and:
For ERRORS: These MUST be fixed. They represent violations of critical patterns that will cause issues.
For WARNINGS: These SHOULD be fixed when possible. They indicate potential issues or non-standard patterns.
For INFO: These are suggestions for improvement but not critical.
============================================================
FASTAPI BACKEND VALIDATION REPORT
============================================================
Files checked: 45
Errors: 2
Warnings: 5
Info: 3
------------------------------------------------------------
FINDINGS
------------------------------------------------------------
ERRORS (2):
[X] [SCHEMA_CAMEL_MODEL] Class 'UserCreate' should inherit from CamelModel
File: src/backend/api/schemas/users.py:15
[X] [SERVICE_NO_SESSION_STORAGE] Services should not store session
File: src/backend/api/services/user_service.py:23
WARNINGS (5):
[!] [REPOSITORY_NO_COMMIT] Repository should use flush(), not commit()
File: src/backend/api/repositories/user_repo.py:45
Report the findings to the user with specific file locations and suggested fixes.