add limit for height and width

This commit is contained in:
2026-04-03 15:42:20 +02:00
parent 2532a35e30
commit ee4f48a5c0
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -12,8 +12,8 @@ class AMazeIng(BaseModel):
model_config = ConfigDict(arbitrary_types_allowed=True)
width: int = Field(ge=4)
height: int = Field(ge=4)
width: int = Field(ge=4, le=100)
height: int = Field(ge=4, le=100)
entry: tuple[int, int]
exit: tuple[int, int]
output_file: str = Field(min_length=3)