Skip to content

Commit 8dbb8c6

Browse files
KuechAdevcrocod
authored andcommitted
Add a comment
1 parent 2e39718 commit 8dbb8c6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

  • kotlin-sdk-server/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/server

kotlin-sdk-server/src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/server/Feature.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ public class UriTemplateFeatureKey(override val key: String) :
6666
FeatureKey<Regex>(),
6767
UriTemplateArgumentExtractor {
6868
override val value: Regex
69-
public val groups: MutableList<String> = mutableListOf<String>()
69+
70+
/**
71+
* A list of variable names defined in the URI template. This is populated during initialization when the URI template is converted to a regex.
72+
*/
73+
private val groups: MutableList<String> = mutableListOf()
74+
7075
init {
7176
// Convert URI template to regex as follows:
7277
// - A simple variable `{variable}` is replaced with `(?<variable>[^/]+)`

0 commit comments

Comments
 (0)