Skip to content

Commit

Permalink
set validatorUrl to null by default
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed Dec 6, 2023
1 parent 9465b59 commit ad3fee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swagger-initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function swaggerInitializer (opts) {
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout",
validatorUrl: ${serialize(opts.validatorUrl)},
validatorUrl: ${serialize(opts.validatorUrl || null)},
}, config, {
url: resolveUrl('./json').replace('static/json', 'json'),
oauth2RedirectUrl: resolveUrl('./oauth2-redirect.html')
Expand Down

0 comments on commit ad3fee2

Please sign in to comment.