@@ -54,7 +54,7 @@ impl SchemaSerializer {
5454 & ' b self ,
5555 py : Python < ' a > ,
5656 mode : & ' a SerMode ,
57- by_alias : bool ,
57+ by_alias : Option < bool > ,
5858 warnings : & ' a CollectWarnings ,
5959 exclude_unset : bool ,
6060 exclude_defaults : bool ,
@@ -106,7 +106,7 @@ impl SchemaSerializer {
106106 }
107107
108108 #[ allow( clippy:: too_many_arguments) ]
109- #[ pyo3( signature = ( value, * , mode = None , include = None , exclude = None , by_alias = true ,
109+ #[ pyo3( signature = ( value, * , mode = None , include = None , exclude = None , by_alias = None ,
110110 exclude_unset = false , exclude_defaults = false , exclude_none = false , round_trip = false , warnings = WarningsArg :: Bool ( true ) ,
111111 fallback = None , serialize_as_any = false , context = None ) ) ]
112112 pub fn to_python (
@@ -116,7 +116,7 @@ impl SchemaSerializer {
116116 mode : Option < & str > ,
117117 include : Option < & Bound < ' _ , PyAny > > ,
118118 exclude : Option < & Bound < ' _ , PyAny > > ,
119- by_alias : bool ,
119+ by_alias : Option < bool > ,
120120 exclude_unset : bool ,
121121 exclude_defaults : bool ,
122122 exclude_none : bool ,
@@ -155,7 +155,7 @@ impl SchemaSerializer {
155155 }
156156
157157 #[ allow( clippy:: too_many_arguments) ]
158- #[ pyo3( signature = ( value, * , indent = None , include = None , exclude = None , by_alias = true ,
158+ #[ pyo3( signature = ( value, * , indent = None , include = None , exclude = None , by_alias = None ,
159159 exclude_unset = false , exclude_defaults = false , exclude_none = false , round_trip = false , warnings = WarningsArg :: Bool ( true ) ,
160160 fallback = None , serialize_as_any = false , context = None ) ) ]
161161 pub fn to_json (
@@ -165,7 +165,7 @@ impl SchemaSerializer {
165165 indent : Option < usize > ,
166166 include : Option < & Bound < ' _ , PyAny > > ,
167167 exclude : Option < & Bound < ' _ , PyAny > > ,
168- by_alias : bool ,
168+ by_alias : Option < bool > ,
169169 exclude_unset : bool ,
170170 exclude_defaults : bool ,
171171 exclude_none : bool ,
@@ -239,7 +239,7 @@ impl SchemaSerializer {
239239
240240#[ allow( clippy:: too_many_arguments) ]
241241#[ pyfunction]
242- #[ pyo3( signature = ( value, * , indent = None , include = None , exclude = None , by_alias = true ,
242+ #[ pyo3( signature = ( value, * , indent = None , include = None , exclude = None , by_alias = None ,
243243 exclude_none = false , round_trip = false , timedelta_mode = "iso8601" , bytes_mode = "utf8" ,
244244 inf_nan_mode = "constants" , serialize_unknown = false , fallback = None , serialize_as_any = false ,
245245 context = None ) ) ]
@@ -249,7 +249,7 @@ pub fn to_json(
249249 indent : Option < usize > ,
250250 include : Option < & Bound < ' _ , PyAny > > ,
251251 exclude : Option < & Bound < ' _ , PyAny > > ,
252- by_alias : bool ,
252+ by_alias : Option < bool > ,
253253 exclude_none : bool ,
254254 round_trip : bool ,
255255 timedelta_mode : & str ,
@@ -282,15 +282,15 @@ pub fn to_json(
282282
283283#[ allow( clippy:: too_many_arguments) ]
284284#[ pyfunction]
285- #[ pyo3( signature = ( value, * , include = None , exclude = None , by_alias = true , exclude_none = false , round_trip = false ,
285+ #[ pyo3( signature = ( value, * , include = None , exclude = None , by_alias = None , exclude_none = false , round_trip = false ,
286286 timedelta_mode = "iso8601" , bytes_mode = "utf8" , inf_nan_mode = "constants" , serialize_unknown = false , fallback = None ,
287287 serialize_as_any = false , context = None ) ) ]
288288pub fn to_jsonable_python (
289289 py : Python ,
290290 value : & Bound < ' _ , PyAny > ,
291291 include : Option < & Bound < ' _ , PyAny > > ,
292292 exclude : Option < & Bound < ' _ , PyAny > > ,
293- by_alias : bool ,
293+ by_alias : Option < bool > ,
294294 exclude_none : bool ,
295295 round_trip : bool ,
296296 timedelta_mode : & str ,
0 commit comments