finish implementing path parameters
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user