1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-22 20:52:27 +00:00

fix openapi routing errors

This commit is contained in:
Dominic 2020-04-14 22:41:20 +02:00
parent a8ae939019
commit 06e6c93a46
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -418,6 +418,9 @@ macro_rules! implOpenapiRouter {
}
fn create<Handler : ResourceCreate>(&mut self)
where
Handler::Res : Send + 'static,
Handler::Body : 'static
{
let schema = (self.0).1.add_schema::<Handler::Res>();
let body_schema = (self.0).1.add_schema::<Handler::Body>();
@ -431,6 +434,9 @@ macro_rules! implOpenapiRouter {
}
fn update_all<Handler : ResourceUpdateAll>(&mut self)
where
Handler::Res : Send + 'static,
Handler::Body : 'static
{
let schema = (self.0).1.add_schema::<Handler::Res>();
let body_schema = (self.0).1.add_schema::<Handler::Body>();
@ -444,6 +450,9 @@ macro_rules! implOpenapiRouter {
}
fn update<Handler : ResourceUpdate>(&mut self)
where
Handler::Res : Send + 'static,
Handler::Body : 'static
{
let schema = (self.0).1.add_schema::<Handler::Res>();
let body_schema = (self.0).1.add_schema::<Handler::Body>();