Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Class Validation to Event Entity #18

Open
4 tasks
balintking opened this issue May 28, 2024 · 0 comments · May be fixed by #19
Open
4 tasks

Add Class Validation to Event Entity #18

balintking opened this issue May 28, 2024 · 0 comments · May be fixed by #19
Assignees
Labels
backend Backend development good first issue Good for newcomers

Comments

@balintking
Copy link
Collaborator

balintking commented May 28, 2024

Description:
Ensure that the data for the Event entity is validated before it is processed. This involves adding class-validator decorators to the DTOs used for creating and updating events.

Tasks:

  • Create DTOs for creating
  • and updating events.
  • Add appropriate validation decorators to each field in the DTOs. Example: @IsString(), @IsNotEmpty(), @IsDateString(), @IsOptional(), @IsEnum()
  • Update event controller methods to use these DTOs.

Acceptance Criteria:

  • DTOs with validation decorators are created for event creation and update.
  • Event controller methods use these DTOs.
  • Validation errors are properly handled and returned to the client.
@balintking balintking added good first issue Good for newcomers backend Backend development labels May 28, 2024
@DankaMarci DankaMarci assigned DankaMarci and unassigned DankaMarci May 28, 2024
@balintking balintking linked a pull request Jun 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend development good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants