@@ -35,6 +35,7 @@ func TestHttpTemplateSyntax(t *testing.T) {
3535 {"VersionedTemplate" , "/{$api_version}/books" , true },
3636 {"TwoLiterals" , "/v1/books" , true },
3737 {"ThreeLiterals" , "/v1/books/shelves" , true },
38+ {"KebabCaseLiteral" , "/user-events" , true },
3839 {"SingleLiteralWithVerb" , "/v1:verb" , true },
3940 {"MultipleLiteralsWithVerb" , "/v1/books:verb" , true },
4041 {"SingleWildcard" , "/v1/*" , true },
@@ -55,6 +56,7 @@ func TestHttpTemplateSyntax(t *testing.T) {
5556 {"VariableWithDoubleWildcardFollowedByLiteral" , "/v1/{field=**/books}" , true },
5657 {"VariableWithLiteralFollowedBySingleWildcard" , "/v1/{field=books/*}" , true },
5758 {"VariableWithLiteralFollowedByDoubleWildcard" , "/v1/{field=books/**}" , true },
59+ {"VariableWithKebabCaseLiteralFollowedBySingleWildcard" , "/v1/{field=user-events/*}" , true },
5860 {"VariableFollowedByLiteral" , "/v1/{field}/books" , true },
5961 {"VariableFollowedByVariable" , "/v1/{field}/{otherField}" , true },
6062 {"VariableWithTemplateFollowedByLiteral" , "/v1/{field=books/*}/shelves" , true },
@@ -64,7 +66,6 @@ func TestHttpTemplateSyntax(t *testing.T) {
6466 // Invalid cases
6567 {"LiteralWithoutLeadingSlash" , "v1" , false },
6668 {"LiteralFollowedBySlash" , "/v1/" , false },
67- {"WrongVerbDelimiter" , "/v1-verb" , false },
6869 {"MultipleVerbs" , "/v1:verb:verb" , false },
6970 {"VerbFollowedBySlash" , "/v1:verb/" , false },
7071 {"MultipleLiteralsWithWrongDelimiter" , "/v1|books" , false },
0 commit comments