The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(docs): show the description of primitive request bodies (#52013)
Anthony Lio2abcb83cf126
diff --git a/apps/docs/features/docs/Reference.ui.tsx b/apps/docs/features/docs/Reference.ui.tsxindex 7d722a33eaf..b2ac6d50172 100644--- a/apps/docs/features/docs/Reference.ui.tsx+++ b/apps/docs/features/docs/Reference.ui.tsx@@ -427,7 +427,16 @@ function ApiOperationRequestBodyDetailsInternal({schema.type === 'number' ||schema.type === 'integer') {- return <span className="font-mono text-sm font-medium text-foreground">{schema.type}</span>+ return (+ <>+ <span className="font-mono text-sm font-medium text-foreground">{schema.type}</span>+ {schema.description && (+ <div className="prose wrap-break-word text-sm">+ <MDXRemoteBase source={schema.description} customPreprocess={normalizeMarkdown} />+ </div>+ )}+ </>+ )} else if (schema.type === 'array') {const itemTypeDisplay = getTypeDisplayFromSchema(schema.items)const displayName = itemTypeDisplay?.displayName ?? 'unknown'