refactor: remove legacy models/schema/auth.py re-export file
Some checks failed
Some checks failed
All 84 import sites now use the canonical path app.modules.tenancy.schemas.auth directly — no need for backwards-compatibility re-exports. Update audit validator to check module schemas locations instead of only the legacy models/schema/ path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -23,7 +23,6 @@ Import schemas from their canonical module locations instead of this package.
|
||||
|
||||
# Infrastructure schemas that remain here
|
||||
from . import (
|
||||
auth,
|
||||
base,
|
||||
)
|
||||
|
||||
@@ -32,5 +31,4 @@ from .base import * # Base Pydantic models
|
||||
|
||||
__all__ = [
|
||||
"base",
|
||||
"auth",
|
||||
]
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
# models/schema/auth.py
|
||||
"""
|
||||
LEGACY LOCATION — re-exports from canonical location.
|
||||
|
||||
All auth schemas have been moved to app/modules/tenancy/schemas/auth.py
|
||||
per MOD-019 (schemas belong in their module).
|
||||
|
||||
This file provides backwards compatibility re-exports.
|
||||
New code should import from: app.modules.tenancy.schemas.auth
|
||||
|
||||
Schemas use Pydantic Field and field_validator for input validation.
|
||||
"""
|
||||
|
||||
from app.modules.tenancy.schemas.auth import ( # noqa: F401
|
||||
LoginResponse,
|
||||
LogoutResponse,
|
||||
OwnedMerchantSummary,
|
||||
PasswordResetRequestResponse,
|
||||
PasswordResetResponse,
|
||||
PlatformSelectResponse,
|
||||
StoreMembershipSummary,
|
||||
StoreUserResponse,
|
||||
UserContext,
|
||||
UserCreate,
|
||||
UserDeleteResponse,
|
||||
UserDetailResponse,
|
||||
UserListResponse,
|
||||
UserLogin,
|
||||
UserResponse,
|
||||
UserSearchItem,
|
||||
UserSearchResponse,
|
||||
UserStatusToggleResponse,
|
||||
UserUpdate,
|
||||
)
|
||||
Reference in New Issue
Block a user