mirror of
https://github.com/datarhei/core.git
synced 2025-10-10 02:10:17 +08:00
Update dependencies
This commit is contained in:
10
vendor/github.com/swaggo/echo-swagger/swagger.go
generated
vendored
10
vendor/github.com/swaggo/echo-swagger/swagger.go
generated
vendored
@@ -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}},
|
||||
|
Reference in New Issue
Block a user