Reconstruct NonDotRouteToken("id", true, Some("[0-9]+".r)): - Not for Swagger => ":id<[0-9]+>" - For Swagger => {id}
Reconstruct NonDotRouteToken("id", true, Some("[0-9]+".r)): - Not for Swagger => ":id<[0-9]+>" - For Swagger => {id}
May be updated if matched
Used when matching "*"
Used by ReverseRoute (reverse routes are cached, thus no need to cache numPlaceholders as "val")
Used by ReverseRoute (reverse routes are cached, thus no need to cache numPlaceholders as "val")
Used when isPlaceholder is true
Left(error) or Right((token value, remaining params))
"articles/:id<[0-9]+>.:format" gives 2 tokens: - NonDotRouteToken("articles", false, None) - DotRouteToken(Seq(NonDotRouteToken("id", true, Some("[0-9]+".r)), NonDotRouteToken("format", true, None)))