Skip to content

Support Google Discovery mediaUpload endpoints in generated clients #8

Description

@KeremTurgutlu

Fastspec currently parses Google Discovery methods as normal JSON operations and ignores supportsMediaUpload / mediaUpload metadata. For Gemini’s media.upload method, this causes the generated client to call POST /v1beta/files with JSON like {"file": "/path/to/file.mp4"}, which fails because Gemini expects upload bytes via /upload/v1beta/files or /resumable/upload/v1beta/files. The Discovery spec already includes the required upload protocol paths and metadata, so fastspec should preserve this in OpSpec and route media upload operations through multipart/simple or resumable upload handling instead of ordinary JSON request serialization.

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions