1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-04-20 06:54:46 +00:00

only log errors on 500 responses (fixes #30)

This commit is contained in:
Dominic 2020-09-19 19:40:39 +02:00
parent eeea62859f
commit d9c22579b0
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
2 changed files with 14 additions and 2 deletions

View file

@ -338,11 +338,14 @@ openapi = ["gotham-restful/openapi"]
into your libraries `Cargo.toml` and use the following for all types used with handlers:
```
# #[cfg(feature = "openapi")]
# mod openapi_feature_enabled {
# use gotham_restful::OpenapiType;
# use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize)]
#[cfg_attr(feature = "openapi", derive(OpenapiType))]
struct Foo;
# }
```
# Examples