finish implementing path parameters

This commit is contained in:
GHXX committed 2024-08-11 04:43:20 +02:00
1 parent a24543063b
commit fecd40cd57
5 files changed
+236 -27

No files matched your search

@@ -19,6 +19,10 @@ public sealed class PathParameterAttribute : Attribute {
throw new ArgumentException($"'{nameof(name)}' must not contain spaces.", nameof(name));
}
if (!uint.TryParse(name[1..], out _) && name != "$*") {
throw new ArgumentException($"'{nameof(name)}' must only consist of spaces or be exactly '$*'.", nameof(name));
}
Name = name;
}
}