You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/TECHNICAL_DEBT_IMPROVEMENT_GUIDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ This guide sets baseline expectations for security, performance, and maintainabi
64
64
- Use `axum-valid` with `validator` for payloads. Email fields are validated with `#[validate(email)]` and a custom check; keep one source of truth to avoid drift (see `src/modules/auth_v1/validator.rs`).
65
65
66
66
- Request limits
67
-
- Enforce body size caps per module: the global default is 64 KiB (`src/router.rs:21`, `src/router.rs:43`), post payloads allow up to 256 KiB (`src/router.rs:32-35`), and `/media/v1` supports 2 MiB multipart uploads (`src/router.rs:39`). Keep media validation consistent with these ceilings (`src/modules/media_v1/controller.rs`).
67
+
- Enforce body size caps per module: global default is 64 KiB (`src/config.rs:2`, `src/main.rs:244`), post payloads allow up to 256 KiB (`src/modules/post_v1/mod.rs:15-19`), and `/media/v1` supports 2 MiB multipart uploads (`src/modules/media_v1/mod.rs:15-17`). Keep media validation consistent with these ceilings (`src/modules/media_v1/controller.rs`).
0 commit comments