mirror of
https://github.com/maoakeEnterprise/amazing.git
synced 2026-11-01 15:42:03 +01:00
add limit for height and width
This commit is contained in:
1 parent
2532a35e30
commit
ee4f48a5c0
4 files changed
+5
-5
No files matched your search
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user