Update dependencies

This commit is contained in:
Ingo Oppermann
2022-10-28 17:24:57 +02:00
parent 4334105f95
commit 4cc82dd333
273 changed files with 19686 additions and 3612 deletions

View File

@@ -22,6 +22,7 @@ type Config struct {
InstanceName string
DeepLinking bool
PersistAuthorization bool
SyntaxHighlight bool
// The information for OAuth2 integration, if any.
OAuth *OAuthConfig
@@ -54,6 +55,13 @@ func DeepLinking(deepLinking bool) func(*Config) {
}
}
// SyntaxHighlight true, false.
func SyntaxHighlight(syntaxHighlight bool) func(*Config) {
return func(c *Config) {
c.SyntaxHighlight = syntaxHighlight
}
}
// DocExpansion list, full, none.
func DocExpansion(docExpansion string) func(*Config) {
return func(c *Config) {
@@ -97,6 +105,7 @@ func newConfig(configFns ...func(*Config)) *Config {
InstanceName: "swagger",
DeepLinking: true,
PersistAuthorization: false,
SyntaxHighlight: true,
}
for _, fn := range configFns {
@@ -257,6 +266,7 @@ window.onload = function() {
// Build a system
const ui = SwaggerUIBundle({
url: "{{.URL}}",
syntaxHighlight: {{.SyntaxHighlight}},
deepLinking: {{.DeepLinking}},
docExpansion: "{{.DocExpansion}}",
persistAuthorization: {{.PersistAuthorization}},