tomkuijsten / restup

Webserver for universal windows platform (UWP) apps
MIT License
114 stars 48 forks source link

No error when UrlFormat could not be mapped #80

Closed kgroener closed 7 years ago

kgroener commented 8 years ago

The following code should give an error that the uriformat could not be mapped to the specified method. (foobar parameter does not correspond to any method argument), but I did not get such an error in a similar case.

[UriFormat("/foo/{foo}/bar/{bar}/foobar/{foobar}")]
public async Task<IGetResponse> FooBar(int foo, int bar, string dummy)
Jark commented 8 years ago

This sounds like some good validation to add, unfortunately I don't think we have time to implement this.

I'll add the up-for-grabs label so someone can do this if they want.

Jark commented 7 years ago

Taking care of this as a move to increase the amount of validation that restup currently does on startup.