Skip to content

Commit c6d479e

Browse files
committed
refactor: renames schema to dto
i had been looking for a more appropriate name for the schema package which holds our pyndatic models for marshalling and unmarshalling payloads while models represent the persistent data models, schema was an ambigious name for the function the pyndantic models bring to the app. data transfer objects or dto is a much more appropriate name, thanks @s3rius and the @taskiq-python project for springing this idea. CLOSES #83
1 parent 9d1d558 commit c6d479e

File tree

7 files changed

+1
-1
lines changed

7 files changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Directory structure for our application:
118118
| └─ routers/ -- FastAPI routers
119119
| └─ tasks/ -- TaskIQ
120120
| └─ models/ -- SQLAlchemy models
121-
| └─ schema/ -- Pydantic schemas
121+
| └─ dto/ -- Data Transfer Objects
122122
| └─ alembic/ -- Alembic migrations
123123
| └─ __init__.py
124124
| └─ api.py
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)