Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Minor PR: removed console logs nothing else (#22182)

Einshine || Shine66b4da7e3eb5
diff --git a/apps/docs/generator/api.ts b/apps/docs/generator/api.ts
index 6682e3a65ff..f915e422534 100644
--- a/apps/docs/generator/api.ts
+++ b/apps/docs/generator/api.ts
@@ -7,8 +7,6 @@ import * as ejs from 'ejs'
export default async function gen(inputFileName: string, outputDir: string, apiUrl: string) {
const specRaw = fs.readFileSync(inputFileName, 'utf8')
const spec = JSON.parse(specRaw) as any
- // console.log('spec', spec)
-
switch (spec.openapi || spec.swagger) {
case '3.0.0':
case '3.0.3':
@@ -51,7 +49,6 @@ async function gen_v3(spec: OpenAPIV3.Document, dest: string, { apiUrl }: { apiU
path: key,
fullPath,
operationId: slugify(operation.summary!),
-
responseList: toArrayWithKey(operation.responses!, 'responseCode') || [],
}
operations.push(enriched)
@@ -72,7 +69,6 @@ async function gen_v3(spec: OpenAPIV3.Document, dest: string, { apiUrl }: { apiU
sections,
operations,
})
- // console.log(content)
// Write to disk
await writeToDisk(dest, content)
console.log('Saved: ', dest)
@@ -92,7 +88,6 @@ async function gen_v2(spec: OpenAPIV2.Document, dest: string, { apiUrl }: { apiU
path: key,
fullPath,
operationId: slugify(operation.summary!),
-
responseList: toArrayWithKey(operation.responses!, 'responseCode') || [],
}
operations.push(enriched)
@@ -113,7 +108,6 @@ async function gen_v2(spec: OpenAPIV2.Document, dest: string, { apiUrl }: { apiU
sections,
operations,
})
- // console.log(content)
// Write to disk
await writeToDisk(dest, content)
console.log('Saved: ', dest)