Skip to content

feat(api): Standardize DTOs and Enhance Validation#101

Merged
memplethee-lab merged 1 commit into
SourceXXL:mainfrom
sadeeq6400:feat/standard
Jul 21, 2026
Merged

feat(api): Standardize DTOs and Enhance Validation#101
memplethee-lab merged 1 commit into
SourceXXL:mainfrom
sadeeq6400:feat/standard

Conversation

@sadeeq6400

Copy link
Copy Markdown
Contributor

Description

This pull request addresses the need for standardized and robust request validation across the API. The primary goal was to enforce consistent data structures for incoming requests, improve API reliability by catching malformed data early, and enhance developer experience with clear validation rules and up-to-date API documentation.

To achieve this, a comprehensive audit of Data Transfer Objects (DTOs) was performed, focusing on the auth, investment, and portfolio modules. All DTOs have been annotated with class-validator decorators to enforce validation rules and @ApiProperty to ensure accurate and descriptive Swagger documentation.

A key part of this effort involved refactoring redundant DTOs, notably consolidating portfolio-related DTOs into a single source of truth, which simplified the codebase and reduced maintenance overhead.

Closes #96

@memplethee-lab
memplethee-lab merged commit d275de3 into SourceXXL:main Jul 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standardize DTO validation: enable global ValidationPipe and annotate DTOs with class-validator

2 participants