diff --git a/packages/core/src/routes/swagger/index.ts b/packages/core/src/routes/swagger/index.ts index fb975d95d..4ccde8efa 100644 --- a/packages/core/src/routes/swagger/index.ts +++ b/packages/core/src/routes/swagger/index.ts @@ -228,7 +228,9 @@ export default function swaggerRoutes value.charAt(0).toUpperCase() + value.slice(1); @@ -156,11 +155,16 @@ export const validateSupplement = ( */ export const validateSwaggerDocument = (document: OpenAPIV3.Document) => { for (const [path, operations] of Object.entries(document.paths)) { - if (!EnvSet.values.isProduction && path.startsWith('/api/interaction')) { + if (path.startsWith('/api/interaction')) { consoleLog.warn(`Path \`${path}\` is not documented. Do something!`); continue; } + // This path is for admin tenant only, skip it. + if (path === '/api/.well-known/endpoints/{tenantId}') { + continue; + } + if (!operations) { continue; }