@@ -10,11 +10,11 @@ use std::future::Future;
1010use std:: marker:: PhantomData ;
1111use std:: pin:: Pin ;
1212
13- use aide:: openapi:: { Operation , PathItem , StatusCode } ;
1413use aide:: openapi:: {
15- MediaType , Parameter , ParameterData , ParameterSchemaOrContent , PathStyle ,
16- QueryStyle , ReferenceOr , RequestBody ,
14+ MediaType , Parameter , ParameterData , ParameterSchemaOrContent , PathStyle , QueryStyle ,
15+ ReferenceOr , RequestBody ,
1716} ;
17+ use aide:: openapi:: { Operation , PathItem , StatusCode } ;
1818use indexmap:: IndexMap ;
1919use schemars:: { JsonSchema , Schema , SchemaGenerator } ;
2020use serde_json:: Value ;
@@ -127,7 +127,6 @@ pub trait AsApiRoute {
127127 ) -> PathItem ;
128128}
129129
130-
131130/// A trait that can be implemented for types that should be taken into
132131/// account when generating OpenAPI paths.
133132///
@@ -736,7 +735,6 @@ fn extract_is_required(object_item: &mut Schema) -> bool {
736735 }
737736}
738737
739-
740738fn param_with_name ( param_name : String , schema : Schema , required : bool ) -> ParameterData {
741739 ParameterData {
742740 name : param_name,
@@ -753,4 +751,4 @@ fn param_with_name(param_name: String, schema: Schema, required: bool) -> Parame
753751 explode : None ,
754752 extensions : IndexMap :: default ( ) ,
755753 }
756- }
754+ }
0 commit comments