|
|
@ -139,7 +139,7 @@ class UploadFile(StarletteUploadFile): |
|
|
def __get_pydantic_json_schema__( |
|
|
def __get_pydantic_json_schema__( |
|
|
cls, core_schema: Mapping[str, Any], handler: GetJsonSchemaHandler |
|
|
cls, core_schema: Mapping[str, Any], handler: GetJsonSchemaHandler |
|
|
) -> dict[str, Any]: |
|
|
) -> dict[str, Any]: |
|
|
return {"type": "string", "format": "binary"} |
|
|
return {"type": "string", "contentMediaType": "application/octet-stream"} |
|
|
|
|
|
|
|
|
@classmethod |
|
|
@classmethod |
|
|
def __get_pydantic_core_schema__( |
|
|
def __get_pydantic_core_schema__( |
|
|
|