fix: Clean up whitespace and improve code formatting in API Docs server
Some checks failed
Some checks failed
### Summary of Changes - Removed unnecessary whitespace in the `generateUnifiedSpec` function to enhance code readability. - Standardized formatting in the `operationsSorter` function for consistency. ### Expected Results - Improved code clarity and maintainability, making it easier for developers to read and understand the API Docs server code.
This commit is contained in:
@@ -353,9 +353,9 @@ app.get('/', swaggerUi.setup(null, {
|
||||
showCommonExtensions: true,
|
||||
operationsSorter: function (a, b) {
|
||||
// Sort by summary (which includes category tags)
|
||||
const summaryA = a.get('summary') || '';
|
||||
const summaryB = b.get('summary') || '';
|
||||
return summaryA.localeCompare(summaryB);
|
||||
const summaryA = a.get('summary') || ''
|
||||
const summaryB = b.get('summary') || ''
|
||||
return summaryA.localeCompare(summaryB)
|
||||
},
|
||||
tagsSorter: 'alpha'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user