You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/io/github/smiley4/ktorswaggerui/dsl/OpenApiRoute.kt
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -42,17 +42,25 @@ class OpenApiRoute {
42
42
43
43
/**
44
44
* A declaration of which security mechanism can be used for this operation.
45
-
* If not specified (and none specified with [securitySchemeNames]), defaultSecuritySchemeName (global plugin config) will be used
45
+
* If not specified (and none specified with [securitySchemeNames]), defaultSecuritySchemeName (global plugin config) will be used.
46
+
* Only applied to [protected] operations.
46
47
*/
47
48
var securitySchemeName:String?=null
48
49
49
50
50
51
/**
51
52
* A declaration of which security mechanisms can be used for this operation (i.e. any of the specified ones).
52
53
* If none specified (and none with [securitySchemeName]), defaultSecuritySchemeName (global plugin config) will be used.
54
+
* Only applied to [protected] operations.
53
55
*/
54
56
var securitySchemeNames:Collection<String>?=null
55
57
58
+
/**
59
+
* Specifies whether this operation is protected.
60
+
* If not specified, the authentication state of the Ktor route will be used (i.e. whether it is surrounded by an [authenticate][io.ktor.server.auth.authenticate] block or not).
0 commit comments