4.0.0
·
109 commits
to master
since this release
Changed
Models - Errors
- Error System Migration to T-Strings - Refactored error system to use t-string template formatting with inline context variables
- Removed
ErrorDetailDTOandErrorMessageTypedependencies - Added class attributes (
code,message_en,message_fa,http_status,grpc_status) toBaseError - Implemented t-string template formatting with context variables in error messages
- Override
get_message()in error classes with explicit variable passing - Applied Persian number conversion for FA language messages
- Removed deprecated
http_status_code_valueandgrpc_status_code_valueproperties - Removed
_get_grpc_status_codemethod, use_convert_int_to_grpc_statusdirectly - Updated all error classes (validation, auth, resource, database, business, network, system, keycloak, temporal)
- Updated FastAPI integration, adapters, and utilities
- Fixed MyPy type errors in
BaseError.to_dict()and gRPC metadata handling
- Removed
Tests
- Comprehensive Error Handling Tests - Added comprehensive error handling tests for FastAPI and gRPC
- Added BDD test scenarios for FastAPI error handling (
fastapi_error_handling.feature) - Added BDD test scenarios for gRPC error handling (
grpc_error_handling.feature) - Implemented test step definitions for error handling scenarios
- Added test servers and utilities for FastAPI and gRPC error testing
- Renamed "exception" to "error" in behave test files and features for consistency
- Added BDD test scenarios for FastAPI error handling (
Chore
- Python Version References - Updated all Python version references to 3.14
- Updated documentation and configuration files to reflect Python 3.14 requirement
- Aligned version references across the codebase
Full Changelog: 3.15.3...4.0.0