@@ -21,6 +21,7 @@ def _get_kwargs(
21
21
boolean_prop : Union [Unset , bool ] = False ,
22
22
list_prop : Union [Unset , List [AnEnum ]] = UNSET ,
23
23
union_prop : Union [Unset , float , str ] = "not a float" ,
24
+ union_prop_with_ref : Union [Unset , float , AnEnum ] = 0.6 ,
24
25
enum_prop : Union [Unset , AnEnum ] = UNSET ,
25
26
) -> Dict [str , Any ]:
26
27
url = "{}/tests/defaults" .format (client .base_url )
@@ -51,6 +52,16 @@ def _get_kwargs(
51
52
else :
52
53
json_union_prop = union_prop
53
54
55
+ json_union_prop_with_ref : Union [Unset , float , AnEnum ]
56
+ if isinstance (union_prop_with_ref , Unset ):
57
+ json_union_prop_with_ref = UNSET
58
+ elif isinstance (union_prop_with_ref , float ):
59
+ json_union_prop_with_ref = union_prop_with_ref
60
+ else :
61
+ json_union_prop_with_ref = UNSET
62
+ if not isinstance (union_prop_with_ref , Unset ):
63
+ json_union_prop_with_ref = union_prop_with_ref
64
+
54
65
json_enum_prop : Union [Unset , AnEnum ] = UNSET
55
66
if not isinstance (enum_prop , Unset ):
56
67
json_enum_prop = enum_prop
@@ -72,6 +83,8 @@ def _get_kwargs(
72
83
params ["list_prop" ] = json_list_prop
73
84
if union_prop is not UNSET :
74
85
params ["union_prop" ] = json_union_prop
86
+ if union_prop_with_ref is not UNSET :
87
+ params ["union_prop_with_ref" ] = json_union_prop_with_ref
75
88
if enum_prop is not UNSET :
76
89
params ["enum_prop" ] = json_enum_prop
77
90
@@ -116,6 +129,7 @@ def sync_detailed(
116
129
boolean_prop : Union [Unset , bool ] = False ,
117
130
list_prop : Union [Unset , List [AnEnum ]] = UNSET ,
118
131
union_prop : Union [Unset , float , str ] = "not a float" ,
132
+ union_prop_with_ref : Union [Unset , float , AnEnum ] = 0.6 ,
119
133
enum_prop : Union [Unset , AnEnum ] = UNSET ,
120
134
) -> Response [Union [None , HTTPValidationError ]]:
121
135
kwargs = _get_kwargs (
@@ -128,6 +142,7 @@ def sync_detailed(
128
142
boolean_prop = boolean_prop ,
129
143
list_prop = list_prop ,
130
144
union_prop = union_prop ,
145
+ union_prop_with_ref = union_prop_with_ref ,
131
146
enum_prop = enum_prop ,
132
147
)
133
148
@@ -149,6 +164,7 @@ def sync(
149
164
boolean_prop : Union [Unset , bool ] = False ,
150
165
list_prop : Union [Unset , List [AnEnum ]] = UNSET ,
151
166
union_prop : Union [Unset , float , str ] = "not a float" ,
167
+ union_prop_with_ref : Union [Unset , float , AnEnum ] = 0.6 ,
152
168
enum_prop : Union [Unset , AnEnum ] = UNSET ,
153
169
) -> Optional [Union [None , HTTPValidationError ]]:
154
170
""" """
@@ -163,6 +179,7 @@ def sync(
163
179
boolean_prop = boolean_prop ,
164
180
list_prop = list_prop ,
165
181
union_prop = union_prop ,
182
+ union_prop_with_ref = union_prop_with_ref ,
166
183
enum_prop = enum_prop ,
167
184
).parsed
168
185
@@ -178,6 +195,7 @@ async def asyncio_detailed(
178
195
boolean_prop : Union [Unset , bool ] = False ,
179
196
list_prop : Union [Unset , List [AnEnum ]] = UNSET ,
180
197
union_prop : Union [Unset , float , str ] = "not a float" ,
198
+ union_prop_with_ref : Union [Unset , float , AnEnum ] = 0.6 ,
181
199
enum_prop : Union [Unset , AnEnum ] = UNSET ,
182
200
) -> Response [Union [None , HTTPValidationError ]]:
183
201
kwargs = _get_kwargs (
@@ -190,6 +208,7 @@ async def asyncio_detailed(
190
208
boolean_prop = boolean_prop ,
191
209
list_prop = list_prop ,
192
210
union_prop = union_prop ,
211
+ union_prop_with_ref = union_prop_with_ref ,
193
212
enum_prop = enum_prop ,
194
213
)
195
214
@@ -210,6 +229,7 @@ async def asyncio(
210
229
boolean_prop : Union [Unset , bool ] = False ,
211
230
list_prop : Union [Unset , List [AnEnum ]] = UNSET ,
212
231
union_prop : Union [Unset , float , str ] = "not a float" ,
232
+ union_prop_with_ref : Union [Unset , float , AnEnum ] = 0.6 ,
213
233
enum_prop : Union [Unset , AnEnum ] = UNSET ,
214
234
) -> Optional [Union [None , HTTPValidationError ]]:
215
235
""" """
@@ -225,6 +245,7 @@ async def asyncio(
225
245
boolean_prop = boolean_prop ,
226
246
list_prop = list_prop ,
227
247
union_prop = union_prop ,
248
+ union_prop_with_ref = union_prop_with_ref ,
228
249
enum_prop = enum_prop ,
229
250
)
230
251
).parsed
0 commit comments