Skip to content

Commit

Permalink
Merge pull request #766 from karlosss/master
Browse files Browse the repository at this point in the history
Make optional field of UploadedFile optional
  • Loading branch information
vitalik authored May 22, 2023
2 parents 1fa3090 + 2e37d5a commit 57bbad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninja/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def _validate(cls: Type["UploadedFile"], v: Any) -> Any:

@classmethod
def __modify_schema__(
cls, field_schema: Dict[str, Any], field: Optional[ModelField]
cls, field_schema: Dict[str, Any], field: Optional[ModelField] = None
) -> None:
field_schema.update(type="string", format="binary")

0 comments on commit 57bbad8

Please sign in to comment.