Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dcleres committed Oct 31, 2024
1 parent dc56bb6 commit 139e41d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/common/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ class BoundingBox(BaseModel):
@classmethod
def page_number_must_be_positive(cls, v: int) -> int:
"""Validate that the page number is positive."""
if v < 0.0:
raise ValueError("Bounding box coordinate must be a positive integer")
if v < 1.0:
raise ValueError("The page number must be a positive number.")
return v

def rescale(
Expand Down

0 comments on commit 139e41d

Please sign in to comment.