@@ -48,7 +48,7 @@ impl Parameter {
4848 description : None , deprecated : false , style : None , explode : false ,
4949 }
5050 }
51- pub fn maybe_in_path ( schema : impl Into < SchemaRef > ) -> Self {
51+ pub fn in_path_optional ( schema : impl Into < SchemaRef > ) -> Self {
5252 Self {
5353 kind : ParameterKind :: path,
5454 name : "" . into ( ) , // initialize with empty name (will be assigned later by `Operation::assign_path_param_name`)
@@ -67,7 +67,7 @@ impl Parameter {
6767 description : None , deprecated : false , style : None , explode : false ,
6868 }
6969 }
70- pub fn maybe_in_query ( name : & ' static str , schema : impl Into < SchemaRef > ) -> Self {
70+ pub fn in_query_optional ( name : & ' static str , schema : impl Into < SchemaRef > ) -> Self {
7171 Self {
7272 kind : ParameterKind :: query,
7373 name : name. into ( ) ,
@@ -86,7 +86,7 @@ impl Parameter {
8686 description : None , deprecated : false , style : None , explode : false ,
8787 }
8888 }
89- pub fn maybe_in_header ( name : & ' static str , schema : impl Into < SchemaRef > ) -> Self {
89+ pub fn in_header_optional ( name : & ' static str , schema : impl Into < SchemaRef > ) -> Self {
9090 Self {
9191 kind : ParameterKind :: header,
9292 name : name. into ( ) ,
@@ -105,7 +105,7 @@ impl Parameter {
105105 description : None , deprecated : false , style : None , explode : false ,
106106 }
107107 }
108- pub fn maybe_in_cookie ( name : & ' static str , schema : impl Into < SchemaRef > ) -> Self {
108+ pub fn in_cookie_optional ( name : & ' static str , schema : impl Into < SchemaRef > ) -> Self {
109109 Self {
110110 kind : ParameterKind :: cookie,
111111 name : name. into ( ) ,
0 commit comments