You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The window.onload function for swaggerUI that contains the config does not support config for the operationsSorter value which handles the option to sort the endpoints either by method or alphabetically.
referencing the operationsSorter defined in the swagger.io docs
// Build a system
const ui = SwaggerUIBundle({
url: "{{.URL}}",
dom_id: '#swagger-ui',
validatorUrl: null,
oauth2RedirectUrl: {{.Oauth2RedirectURL}},
persistAuthorization: {{.PersistAuthorization}},
**//Proposed solution to add the operationsSorter when injecting config**
operationsSorter: "method",
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout",
docExpansion: "{{.DocExpansion}}",
deepLinking: {{.DeepLinking}},
defaultModelsExpandDepth: {{.DefaultModelsExpandDepth}}
})```
The text was updated successfully, but these errors were encountered:
PhlipTIP
added a commit
to PhlipTIP/gin-swagger
that referenced
this issue
Oct 16, 2023
The window.onload function for swaggerUI that contains the config does not support config for the operationsSorter value which handles the option to sort the endpoints either by method or alphabetically.
referencing the operationsSorter defined in the swagger.io docs
The text was updated successfully, but these errors were encountered: