Skip to content

Move All DTOs to Their Domain Modules (dto/) #128

@Villarley

Description

@Villarley

🧩 Issue: Move All DTOs to Their Domain Modules (dto/)

📝 Description

DTOs are currently in src/dtos/. Move them into their respective src/modules/<domain>/dto/ folders.

✅ Tasks

  • Move DTOs to the correct module.
  • Normalize validations (e.g. class-validator).
  • Write unit tests for validation edge cases in src/modules/<domain>/__tests__/dto/.
  • Delete src/dtos/ after migration.

✅ Definition of Done

  • All DTOs are colocated within their domain modules
  • Validations are consistently implemented
  • Unit tests cover edge cases
  • Legacy src/dtos/ directory is removed

📝 Additional Notes

  • Verify DTOs are used correctly in controllers and services after move
  • Use class-transformer if needed to handle nested transformations
  • 📌 Upload a draft PR within 36 hours (It doesn't matter if it's not finished—just let us know you're working, also via Telegram if you have to report something)

Metadata

Metadata

Assignees

Labels

BackendOdWaveonlydust-waveContribute to awesome OSS repos during OnlyDust's open source week

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions