|
|
cded14c526
|
fix: force correct mime types for static files after modifying compression middleware's buffering
|
2025-11-24 07:53:08 +01:00 |
|
|
|
279255b587
|
fix: don't let rate limiting fails the test
|
2025-11-23 21:48:11 +01:00 |
|
|
|
b83f8c2228
|
fix: update ValidationMiddleware to return a JSON error response when JSON decoding fails
|
2025-11-23 21:42:27 +01:00 |
|
|
|
aabc48128c
|
fix: use router in handlers integration tests (for dto validation)
|
2025-11-23 15:10:55 +01:00 |
|
|
|
68716b977b
|
fix: verify XSS sanitization in handler response instead of repository stub
|
2025-11-23 15:01:54 +01:00 |
|
|
|
dbe1600632
|
fix: indentation
|
2025-11-23 14:49:31 +01:00 |
|
|
|
458e25cf79
|
fix: modify compression middleware to pass through redirects immediately without buffering
|
2025-11-23 14:48:59 +01:00 |
|
|
|
d4595d8dbf
|
fix: properly encoding the flash message in the redirect URL
|
2025-11-23 14:48:39 +01:00 |
|
|
|
db0369225e
|
refactor: update references to VoteRequest
|
2025-11-23 14:26:45 +01:00 |
|
|
|
07ac965b3d
|
refactor: use consistent naming (VoteRequest -> CastVoteRequest)
|
2025-11-23 14:26:19 +01:00 |
|
|
|
e2e5d42035
|
feat: add SetValidatedDTOInContext to support test helper functions
|
2025-11-23 14:22:59 +01:00 |
|
|
|
6e4b41894f
|
fix: update test cases to use createCreatePostRequests
|
2025-11-23 14:22:35 +01:00 |
|
|
|
0a8ed2e27c
|
fix: add explicite validation check for empty url, title and content length
|
2025-11-23 14:21:30 +01:00 |
|
|
|
216e8657f6
|
feat: add generic createRequestWithDTO along with helpers functions
|
2025-11-23 14:20:59 +01:00 |
|
|
|
fb7206c0a2
|
fix: test context handling
|
2025-11-23 14:20:09 +01:00 |
|
|
|
c25926514b
|
fix: add explicit empty-field validation check in handlers
|
2025-11-23 14:19:54 +01:00 |
|
|
|
9c67cd2a47
|
feat: update vote handler to use dto VoteRequest and update MountRoutes
|
2025-11-23 13:47:31 +01:00 |
|
|
|
8b5cc8e939
|
feat: add VoteRequest with its validation types
|
2025-11-23 13:46:51 +01:00 |
|
|
|
0e71b28615
|
feat: update CreateUser to use dto.RegisterRequest and update MountRoutes to apply validation middleware
|
2025-11-23 13:43:47 +01:00 |
|
|
|
cd740da57a
|
feat: update methods to use validated DTOs and update MountRoutes
|
2025-11-23 13:43:14 +01:00 |
|
|
|
abe4a3dc88
|
feat: update handlers to use GetValidatedDTO instead of manual decoding and update MountRoutes to wrap handlers with WithValidation for all DTO-based routes
|
2025-11-23 13:42:52 +01:00 |
|
|
|
738243d945
|
feat: add ValidationMiddleware to RouteModuleConfig
|
2025-11-23 13:41:55 +01:00 |
|
|
|
4fbdfb6e4a
|
feat: add two helpers function to retrieve validated DTOs from request context and to apply validation middleware
|
2025-11-23 13:41:07 +01:00 |
|
|
|
6bb3a78b88
|
feat: Add ValidationMiddleware to router configuration
|
2025-11-23 13:40:31 +01:00 |
|
|
|
5d4b38ddc4
|
feat: add validation tags to request DTOs
|
2025-11-23 13:34:53 +01:00 |
|
|
|
be91a135bc
|
clean: empty line
|
2025-11-23 13:14:41 +01:00 |
|
|
|
2d7ff9778b
|
feat: update swagger comments following dtos relocation
|
2025-11-23 13:14:07 +01:00 |
|
|
|
4ff3fd3583
|
refactor: remove UpdatePostRequest definition and update swagger comments
|
2025-11-23 13:13:53 +01:00 |
|
|
|
73121cad15
|
refactor: remove all request DTO, update swagger comments and update token related methods to use dto ones
|
2025-11-23 13:13:23 +01:00 |
|
|
|
c5bf1b2fd8
|
feat: locate post-related request DTOs
|
2025-11-23 13:12:36 +01:00 |
|
|
|
eedebe60d1
|
feat: locate auth-related request DTOs
|
2025-11-23 13:12:10 +01:00 |
|
|
|
fea49fad8d
|
fix: add missing method to mock
|
2025-11-21 17:07:26 +01:00 |
|
|
|
4b04461ebb
|
style: minor formatting adjustments
|
2025-11-21 17:06:04 +01:00 |
|
|
|
533e8c3d46
|
feat: add GetByUsernamePrefixFn field and method to UserRepositoryStub
|
2025-11-21 17:05:48 +01:00 |
|
|
|
df568291f1
|
feat: add GetByUsernamePrefix implementation to MockUserRepository
|
2025-11-21 17:05:31 +01:00 |
|
|
|
81acce62b1
|
feat: add GetByUsernamePrefix method to interface and add implementation
|
2025-11-21 17:05:01 +01:00 |
|
|
|
5c239ad61d
|
feat: add missing GetVoteCountsByPostID method to the errorVoteRepository test mock
|
2025-11-21 16:50:23 +01:00 |
|
|
|
28134c101c
|
feat: add GetVoteCountsByPostID to the mock for testing
|
2025-11-21 16:48:15 +01:00 |
|
|
|
2f78370d43
|
feat: GetVoteCountsByPostID: use a single sql query to returns up votes and down votes counts
|
2025-11-21 16:47:52 +01:00 |
|
|
|
b300fc2f5e
|
feat: new test for json output flag from config
|
2025-11-21 13:11:43 +01:00 |
|
|
|
f49bea4138
|
feat(config): read a flag in .env to set or not json output
|
2025-11-21 13:11:16 +01:00 |
|
|
|
87dadfa4a8
|
feat: modernize loops
|
2025-11-19 13:13:51 +01:00 |
|
|
|
53c76eee8b
|
feat: modernize loop
|
2025-11-17 16:24:40 +01:00 |
|
|
|
446915d5ee
|
feat: modernize loop
|
2025-11-17 15:59:24 +01:00 |
|
|
|
dceb305ac7
|
feat: modernize statement using max()
|
2025-11-17 15:37:03 +01:00 |
|
|
|
ba09bb4141
|
lint: fix staticcheck nil pointer issue
|
2025-11-15 11:35:31 +01:00 |
|
|
|
0f9a89bfc7
|
lint: add error checks on Register() and fix sqlDB.Close() errcheck
|
2025-11-15 11:34:57 +01:00 |
|
|
|
1d1a3dcf60
|
lint: make linter happy with errcheck
|
2025-11-15 11:34:12 +01:00 |
|
|
|
6a513bbcac
|
refactor: simplify return in ValidateFuzzInputStrict()
|
2025-11-14 07:16:54 +01:00 |
|
|
|
69e61c5811
|
feat: use SplitSeq
|
2025-11-14 07:16:20 +01:00 |
|