mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
## Problem the management api reference drops the description of a request body when the body schema is a primitive type (`string`, `boolean`, `number` or `integer`) the page shows only the type name ## Solution - adds `MDXRemoteBase` with `normalizeMarkdown` like the type descriptions in the same file so code blocks in the description get the docs code block styles #51246 adds the new schema for this endpoint to the docs spec | state | preview | | -------|------| | before | <img width="1023" height="702" alt="image" src="https://github.com/user-attachments/assets/cf1d80e4-01be-433b-906f-887e7527325e" /> | | after | <img width="1023" height="702" alt="image" src="https://github.com/user-attachments/assets/01dc034b-a956-4fd2-9b0e-fde111c66c2c" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions Provide a clear numbered procedure that the PR reviewer can walk through. 1. run `git fetch origin gha/auto-update-mgmt-api-docs` 2. run `git checkout origin/gha/auto-update-mgmt-api-docs -- apps/docs/spec/transforms/api_v1_openapi_deparsed.json apps/docs/spec/transforms/api_v2_openapi_deparsed.json` 3. open http://localhost:3001/docs/reference/api/v1-update-a-function. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)