This commit is contained in:
seb
2026-10-10 14:04:58 +02:00
parent 188b8efe09
commit f110173e57
8 changed files with 397 additions and 96 deletions

View File

@@ -770,7 +770,15 @@ function renderRoutesOverview(operations, title = 'Dash API Routes Overview') {
lines.push('');
lines.push('### Routes');
lines.push('');
let currentSection = null;
for (const op of operations) {
const section = op.path.split('/').filter(Boolean)[0] || '/';
if (section !== currentSection) {
currentSection = section;
lines.push('');
lines.push(`### Section: ${section === '/' ? '/' : `/${section}`}`);
lines.push('');
}
const params = summarizeOperationParams(op.operation, aliases);
const returns = summarizeOperationReturns(op.operation, aliases);
const hasSseResponse = Object.values(op.operation.responses || {}).some((response) =>