Skip to content

OpenAPI missing requestBody #584

@atacan

Description

@atacan

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

The OpenAPI document does not have request body for post and put requests for object endpoint. It only has path and header parameters.

To Reproduce

https://supabase.github.io/storage/api.json

"/object/{bucketName}/{wildcard}": {
      "post": {
        "summary": "Upload a new object",
        "tags": ["object"],
        "parameters": [
          {
            "schema": { "type": "string" },
            "example": "avatars",
            "in": "path",
            "name": "bucketName",
            "required": true
          },
          {
            "schema": { "type": "string" },
            "example": "folder/cat.png",
            "in": "path",
            "name": "*",
            "required": true
          },
          {
            "schema": { "type": "string" },
            "example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs",
            "in": "header",
            "name": "authorization",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
}

Expected behavior

In one of the SDKs I see that the body should be multipart form body? What are the required and optional fields?

The endpoints should have requestBody property with the appropriate content type and fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions