We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug the javascript function defined in the property quarkus.swagger-ui.operations-sorter is not working.
quarkus.swagger-ui.operations-sorter
Expected behavior When defined, the JavaScript function should be called.
Actual behavior Only "alpha" and "method" parameters are working.
Configuration
quarkus.swagger-ui.operations-sorter=function (a, b) { var order = { "get": "0", "post": "1", "put": "2", "delete": "3" }; return order[a.method].localeCompare(order[b.method]); }
Environment (please complete the following information):
Possible cause
Single quotes are generated around the the property "operationsSorter" :
window.onload = function() { const ui = SwaggerUIBundle({ url: '/v1/openapi', dom_id: '#swagger-ui', deepLinking: true, operationsSorter: 'function (a, b) { var order = { "get": "0", "post": "1", "put": "2", "delete": "3" }; return order[a.method].localeCompare(order[b.method]); }', validatorUrl: 'none', presets: [SwaggerUIBundle.presets.apis,SwaggerUIStandalonePreset], plugins: [SwaggerUIBundle.plugins.DownloadUrl], layout: 'StandaloneLayout', })
See https://stackoverflow.com/questions/24951268/sort-api-methods-in-swagger-ui
The text was updated successfully, but these errors were encountered:
/cc @phillip-kruger
Sorry, something went wrong.
Thanks, I'll fix this a.s.a.p
This will be fixed here: smallrye/smallrye-open-api#742
Once SmallRye is released and pulled into Quarkus, I'll close this issue.
This will be fixed here: smallrye/smallrye-open-api#742 Once SmallRye is released and pulled into Quarkus, I'll close this issue.
Thanx, that was a fast fix!
@phillip-kruger How could I escape this if I use an application.yaml instead of an application.properties?
Successfully merging a pull request may close this issue.
Describe the bug
the javascript function defined in the property
quarkus.swagger-ui.operations-sorter
is not working.Expected behavior
When defined, the JavaScript function should be called.
Actual behavior
Only "alpha" and "method" parameters are working.
Configuration
Environment (please complete the following information):
Possible cause
Single quotes are generated around the the property "operationsSorter" :
See https://stackoverflow.com/questions/24951268/sort-api-methods-in-swagger-ui
The text was updated successfully, but these errors were encountered: