Newer versions of FastAPI fully integrate with Pydantic v2 and OpenAPI 3.1.0 JSON Schemas. With these changes, file uploads representing UploadFile are natively represented with "contentMediaType": "application/octet-stream" rather than using the legacy format: binary.
Since ng-openapi-gen still requires "format": "binary" to generate the Blob type correctly in TypeScript, it fell back to outputting a string without it.
Newer versions of FastAPI fully integrate with Pydantic v2 and OpenAPI 3.1.0 JSON Schemas. With these changes, file uploads representing
UploadFileare natively represented with"contentMediaType": "application/octet-stream"rather than using the legacyformat: binary.Since
ng-openapi-genstill requires"format": "binary"to generate theBlobtype correctly in TypeScript, it fell back to outputting astringwithout it.