Skip to content

Commit ad3fee2

Browse files
committed
set validatorUrl to null by default
Signed-off-by: Matteo Collina <[email protected]>
1 parent 9465b59 commit ad3fee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/swagger-initializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function swaggerInitializer (opts) {
2525
SwaggerUIBundle.plugins.DownloadUrl
2626
],
2727
layout: "StandaloneLayout",
28-
validatorUrl: ${serialize(opts.validatorUrl)},
28+
validatorUrl: ${serialize(opts.validatorUrl || null)},
2929
}, config, {
3030
url: resolveUrl('./json').replace('static/json', 'json'),
3131
oauth2RedirectUrl: resolveUrl('./oauth2-redirect.html')

0 commit comments

Comments
 (0)