Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ndamania00 committed Feb 10, 2025
1 parent bbce6a5 commit 5c77edd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ With your schemas defined in code, you can now take advantage of the additional
class Pizza(BaseModel, CustomEntityMixin):
...

@liminal_validator(ValidationSeverity.MED)
@liminal_validator
def cook_time_and_temp_validator(self) -> None:
if self.cook_time is not None and self.cook_temp is None:
raise ValueError("Cook temp is required if cook time is set")
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ from liminal.validation import ValidationSeverity, liminal_validator
class Pizza(BaseModel, CustomEntityMixin):
...

@liminal_validator(ValidationSeverity.MED)
@liminal_validator
def cook_time_and_temp_validator(self) -> None:
if self.cook_time is not None and self.cook_temp is None:
raise ValueError("Cook temp is required if cook time is set")
Expand Down

0 comments on commit 5c77edd

Please sign in to comment.