Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelOwenDyer committed Aug 9, 2024
1 parent bc2935d commit 97d4c24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/domain/data/competency_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ class Competency(BaseModel):
description="Selected taxonomy based on bloom's taxonomy"
)

@validator("subject")
def validate_subject(cls, field):
@validator("title")
def validate_title(cls, field):
"""Validate the subject of the competency."""
if len(field.split()) > 4:
raise ValueError("Subject must contain no more than 4 words")
raise ValueError("Title must contain no more than 4 words")
return field

@validator("taxonomy")
Expand Down

0 comments on commit 97d4c24

Please sign in to comment.