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:
parent
a8ae939019
commit
06e6c93a46
1 changed files with 9 additions and 0 deletions
|
@ -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>();
|
||||
|
|
Loading…
Add table
Reference in a new issue