diff --git a/www/utils/packages/docs-generator/src/commands/clean-oas.ts b/www/utils/packages/docs-generator/src/commands/clean-oas.ts index 3a5486eee61f0..e2b5ad1679c97 100644 --- a/www/utils/packages/docs-generator/src/commands/clean-oas.ts +++ b/www/utils/packages/docs-generator/src/commands/clean-oas.ts @@ -20,6 +20,12 @@ import parseOas from "../utils/parse-oas.js" const OAS_PREFIX_REGEX = /@oas \[(?(get|post|delete))\] (?.+)/ +const ignoreSchemas = [ + "AuthResponse", + "AuthAdminSessionResponse", + "AuthStoreSessionResponse", +] + export default async function () { const oasOutputBasePath = getOasOutputBasePath() const oasOperationsPath = path.join(oasOutputBasePath, "operations") @@ -274,7 +280,10 @@ export default async function () { // clean up schemas allSchemas.forEach((schemaName) => { - if (referencedSchemas.has(schemaName)) { + if ( + referencedSchemas.has(schemaName) || + ignoreSchemas.includes(schemaName) + ) { return }