@@ -388,6 +388,7 @@ func TestUIConfigOptions(t *testing.T) {
388388 PersistAuthorization : false ,
389389 Layout : StandaloneLayout ,
390390 DefaultModelsExpandDepth : ShowModel ,
391+ ShowExtensions : false ,
391392 },
392393 exp : `window.onload = function() {
393394
@@ -406,7 +407,8 @@ func TestUIConfigOptions(t *testing.T) {
406407 SwaggerUIBundle.plugins.DownloadUrl
407408 ],
408409 layout: "StandaloneLayout",
409- defaultModelsExpandDepth: 1
410+ defaultModelsExpandDepth: 1 ,
411+ showExtensions: false
410412 })
411413
412414 window.ui = ui
@@ -439,6 +441,7 @@ func TestUIConfigOptions(t *testing.T) {
439441 "defaultModelRendering" : `"model"` ,
440442 },
441443 DefaultModelsExpandDepth : HideModel ,
444+ ShowExtensions : true ,
442445 },
443446 exp : `window.onload = function() {
444447 const SomePlugin = (system) => ({
@@ -466,7 +469,8 @@ func TestUIConfigOptions(t *testing.T) {
466469 onComplete: () => { window.ui.setBasePath('v3'); },
467470 showExtensions: true,
468471 layout: "StandaloneLayout",
469- defaultModelsExpandDepth: -1
472+ defaultModelsExpandDepth: -1 ,
473+ showExtensions: true
470474 })
471475
472476 window.ui = ui
0 commit comments