Skip to content

"contentMediaType":"application/octet-stream" is represented as a string, rather than a Blob #403

Description

@chrisweight

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions