-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The type checking for parameters could be much more stringent and more
informative. We'd ideally like to raise issues at compile time, but we don't actually have the data (e.g. in proc macro context) we'd need to identify type errors. We definitely do not want to fail after the server has been running when a particular combination of paramters fails to deserialize into the given structs. As a middle ground, we fail as the ApiDescription is built up, before the server is servicing requests.
- Loading branch information
Showing
5 changed files
with
294 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -515,6 +515,7 @@ mod logging; | |
mod pagination; | ||
mod router; | ||
mod server; | ||
mod type_util; | ||
|
||
pub mod test_util; | ||
|
||
|
Oops, something went wrong.