Skip to content

fix(backend): enforce course DTO validation and canonical taxonomy (BA-047) - #728

Merged
Nabeelahh merged 1 commit into
BlockDash-Studios:mainfrom
Penielka:fix/penielka-issues-615-course-dto-validation
Aug 27, 2026
Merged

fix(backend): enforce course DTO validation and canonical taxonomy (BA-047)#728
Nabeelahh merged 1 commit into
BlockDash-Studios:mainfrom
Penielka:fix/penielka-issues-615-course-dto-validation

Conversation

@Penielka

Copy link
Copy Markdown
Contributor

Resolves the open Stellar Wave issues assigned to Penielka.

Implemented

  • BA-047 — Enforce course DTO validation and canonical taxonomy #615 (BA-047) — Enforce course DTO validation and canonical taxonomy. Titles, descriptions, category, and taxonomy arrays (categories, tags, prerequisites, skills) are now bounded (length/size limits, non-empty checks, enum enforcement) in src/courses/dto/, and the course service canonicalizes taxonomy before persistence (trim, lowercase, dedupe, drop blanks) in both create and update. Covered by new unit tests in course.service.spec.ts and dto/course-dto.spec.ts.

Closes

This PR closes the remaining issues assigned to Penielka in the same batch:

…A-047)

Bound and normalize course input before persistence: enforce length limits
and non-empty requirements on titles, description, category, and taxonomy
arrays; canonicalize levels and taxonomy terms (trim, lowercase, dedupe,
drop blanks) in the course service create/update paths.

Closes BlockDash-Studios#611, BlockDash-Studios#613, BlockDash-Studios#614 (BlockDash-Studios#615 implemented here).

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@Penielka Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Nabeelahh Nabeelahh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@Nabeelahh
Nabeelahh merged commit 04946de into BlockDash-Studios:main Aug 27, 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

2 participants