1.2 KiB
1.2 KiB
apps/api/src/schemas/user
dir: apps/api/src/schemas/user
index: apps/api/src/schemas/user/.pi-map.index.md
role
Defines Pydantic schemas for user-related request/response data serialization and validation in the API layer.
files
- __init__.py | Exports user-related Pydantic schemas from submodules to provide a clean public API for the user schemas package. | dep: src.schemas.user.user, src.schemas.user.user_config
- user.py | Defines Pydantic request/response schemas for user profile data in an API | exp: class:UserProfileResponse, class:UserProfileUpdate | dep: uuid, pydantic
- user_config.py | Defines Pydantic request/response schemas for user configuration data in an API. | exp: class:UserConfigResponse, class:UserConfigUpdate | dep: pydantic
arch
Modular package pattern with clean public API via __init__.py exports, separating domain concerns (user profile vs. user configuration) into distinct schema modules.
tags
user, schemas, response, config, pydantic, profile, update, api
symbols
- UserProfileResponse
- UserProfileUpdate
- UserConfigResponse
- UserConfigUpdate
workflows
- change user behavior read: __init__.py, user.py, user_config.py
- change user config read: user_config.py