mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-10 12:50:29 +00:00
adapt typescript to strict mode
This commit is contained in:
1 parent
3291a78d2b
commit
236860d0f5
40 files changed
+386
-242
No files matched your search
@@ -19,6 +19,16 @@ from core.utils import get_last_promo, is_image
|
||||
NonEmptyStr = Annotated[str, MinLen(1)]
|
||||
|
||||
|
||||
class ValidationErrorSchema(Schema):
|
||||
class ValidationErrorItem(Schema):
|
||||
loc: list[str | int]
|
||||
msg: str
|
||||
type: str
|
||||
ctx: dict[str, str]
|
||||
|
||||
detail: list[ValidationErrorItem]
|
||||
|
||||
|
||||
class UploadedImage(UploadedFile):
|
||||
@classmethod
|
||||
def _validate(cls, v: Any, info: ValidationInfo) -> Any:
|
||||
|
||||
Reference in new issue
Block a user