Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI missing requestBody #584

Open
2 tasks done
atacan opened this issue Nov 8, 2024 · 0 comments
Open
2 tasks done

OpenAPI missing requestBody #584

atacan opened this issue Nov 8, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@atacan
Copy link

atacan commented Nov 8, 2024

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.

@atacan atacan added the bug Something isn't working label Nov 8, 2024
@fenos fenos added documentation Improvements or additions to documentation and removed bug Something isn't working labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants