Skip to content

Conversation

@benjaspet
Copy link
Member

Issue

Closes #10.

Description

This pull request implements a foundation for the donation system by adding DTOs and mapping utilities for handling donation-relating API requests, and adds the appropriate Swagger decorations for our documentation.

  • DTOs (CreateDonationDto, DonationResponseDto, PublicDonationDto)
  • Enums, mappers, domain interfaces.
  • Comprehensive test suite mappers.spec.ts with coverage for default values, privacy filtering, DTO validation, and array mapping operations.

Verification

Ensure all newly created tests pass and do not break the existing test suite:

Code_ZCl8ct7LyU

@benjaspet benjaspet requested a review from thaninbew September 29, 2025 01:33
@thaninbew
Copy link
Collaborator

thaninbew commented Sep 30, 2025

This is great! Nothing to change on your end I just had to make everything consistent. thanks for writing tests (c4c as a whole usually avoids testing code)

@thaninbew thaninbew merged commit 1f25a31 into main Sep 30, 2025
4 checks passed
@thaninbew thaninbew deleted the feat-10-donations-controller-dtos branch September 30, 2025 04:05
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.

DonationsController DTOs and Swagger for Donations (Part 1)

3 participants