@@ -30,16 +30,16 @@ let fake_http_signature_test ~pet_t ?query_1 ?header_1 () =
30
30
let body = Request.
31
31
32
32
33
- write_as_json_body
34
-
33
+ write_as_json_body
35
34
36
35
37
36
38
37
39
38
40
39
41
40
Pet. to_yojson
42
- pet_t in
41
+ pet_t
42
+ in
43
43
Cohttp_lwt_unix.Client. call `GET uri ~headers ~body >> = fun (resp , body ) ->
44
44
Request. handle_unit_response resp
45
45
@@ -50,15 +50,15 @@ let fake_outer_boolean_serialize ~body () =
50
50
let body = Request.
51
51
52
52
53
- write_as_json_body
54
-
53
+ write_as_json_body
55
54
56
55
57
56
58
57
59
58
60
59
JsonSupport. of_bool
61
- body in
60
+ body
61
+ in
62
62
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
63
63
Request. read_json_body_as (JsonSupport. to_bool) resp body
64
64
@@ -69,16 +69,16 @@ let fake_outer_composite_serialize ~outer_composite_t () =
69
69
let body = Request.
70
70
71
71
72
- write_as_json_body
73
-
72
+ write_as_json_body
74
73
75
74
76
75
77
76
78
77
79
78
80
79
Outer_composite. to_yojson
81
- outer_composite_t in
80
+ outer_composite_t
81
+ in
82
82
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
83
83
Request. read_json_body_as (JsonSupport. unwrap Outer_composite. of_yojson) resp body
84
84
@@ -89,15 +89,15 @@ let fake_outer_number_serialize ~body () =
89
89
let body = Request.
90
90
91
91
92
- write_as_json_body
93
-
92
+ write_as_json_body
94
93
95
94
96
95
97
96
JsonSupport. of_float
98
97
99
98
100
- body in
99
+ body
100
+ in
101
101
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
102
102
Request. read_json_body_as (JsonSupport. to_float) resp body
103
103
@@ -108,15 +108,15 @@ let fake_outer_string_serialize ~body () =
108
108
let body = Request.
109
109
110
110
111
- write_as_json_body
112
- JsonSupport. of_string
111
+ write_as_json_body JsonSupport. of_string
113
112
114
113
115
114
116
115
117
116
118
117
119
- body in
118
+ body
119
+ in
120
120
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
121
121
Request. read_json_body_as (JsonSupport. to_string) resp body
122
122
@@ -127,16 +127,16 @@ let fake_property_enum_integer_serialize ~outer_object_with_enum_property_t =
127
127
let body = Request.
128
128
129
129
130
- write_as_json_body
131
-
130
+ write_as_json_body
132
131
133
132
134
133
135
134
136
135
137
136
138
137
Outer_object_with_enum_property. to_yojson
139
- outer_object_with_enum_property_t in
138
+ outer_object_with_enum_property_t
139
+ in
140
140
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
141
141
Request. read_json_body_as (JsonSupport. unwrap Outer_object_with_enum_property. of_yojson) resp body
142
142
@@ -145,25 +145,10 @@ let test_additional_properties_reference ~request_body =
145
145
let uri = Request. build_uri " /fake/additionalProperties-reference" in
146
146
let headers = Request. default_headers in
147
147
let body = Request.
148
- write_json_body
148
+ write_json_body request_body
149
149
150
150
151
- (JsonSupport. of_map_of
152
-
153
-
154
-
155
-
156
-
157
-
158
- )
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
- request_body in
151
+ in
167
152
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
168
153
Request. handle_unit_response resp
169
154
@@ -174,15 +159,15 @@ let test_body_with_binary ~body =
174
159
let body = Request.
175
160
176
161
177
- write_as_json_body
178
-
162
+ write_as_json_body
179
163
180
164
181
165
182
166
183
167
184
168
185
- body in
169
+ body
170
+ in
186
171
Cohttp_lwt_unix.Client. call `PUT uri ~headers ~body >> = fun (resp , body ) ->
187
172
Request. handle_unit_response resp
188
173
@@ -193,16 +178,16 @@ let test_body_with_file_schema ~file_schema_test_class_t =
193
178
let body = Request.
194
179
195
180
196
- write_as_json_body
197
-
181
+ write_as_json_body
198
182
199
183
200
184
201
185
202
186
203
187
204
188
File_schema_test_class. to_yojson
205
- file_schema_test_class_t in
189
+ file_schema_test_class_t
190
+ in
206
191
Cohttp_lwt_unix.Client. call `PUT uri ~headers ~body >> = fun (resp , body ) ->
207
192
Request. handle_unit_response resp
208
193
@@ -215,16 +200,16 @@ let test_body_with_query_params ~query ~user_t =
215
200
let body = Request.
216
201
217
202
218
- write_as_json_body
219
-
203
+ write_as_json_body
220
204
221
205
222
206
223
207
224
208
225
209
226
210
User. to_yojson
227
- user_t in
211
+ user_t
212
+ in
228
213
Cohttp_lwt_unix.Client. call `PUT uri ~headers ~body >> = fun (resp , body ) ->
229
214
Request. handle_unit_response resp
230
215
@@ -235,16 +220,16 @@ let test_client_model ~client_t =
235
220
let body = Request.
236
221
237
222
238
- write_as_json_body
239
-
223
+ write_as_json_body
240
224
241
225
242
226
243
227
244
228
245
229
246
230
Client. to_yojson
247
- client_t in
231
+ client_t
232
+ in
248
233
Cohttp_lwt_unix.Client. call `PATCH uri ~headers ~body >> = fun (resp , body ) ->
249
234
Request. read_json_body_as (JsonSupport. unwrap Client. of_yojson) resp body
250
235
@@ -342,8 +327,7 @@ let test_inline_additional_properties ~request_body =
342
327
let body = Request.
343
328
344
329
345
- write_as_json_body
346
- (JsonSupport. of_map_of JsonSupport. of_string
330
+ write_as_json_body (JsonSupport. of_map_of JsonSupport. of_string
347
331
348
332
349
333
@@ -358,7 +342,8 @@ let test_inline_additional_properties ~request_body =
358
342
359
343
360
344
361
- request_body in
345
+ request_body
346
+ in
362
347
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
363
348
Request. handle_unit_response resp
364
349
@@ -369,16 +354,16 @@ let test_inline_freeform_additional_properties ~test_inline_freeform_additional_
369
354
let body = Request.
370
355
371
356
372
- write_as_json_body
373
-
357
+ write_as_json_body
374
358
375
359
376
360
377
361
378
362
379
363
380
364
Test_inline_freeform_additional_properties_request. to_yojson
381
- test_inline_freeform_additional_properties_request_t in
365
+ test_inline_freeform_additional_properties_request_t
366
+ in
382
367
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
383
368
Request. handle_unit_response resp
384
369
@@ -402,16 +387,16 @@ let test_nullable ~child_with_nullable_t =
402
387
let body = Request.
403
388
404
389
405
- write_as_json_body
406
-
390
+ write_as_json_body
407
391
408
392
409
393
410
394
411
395
412
396
413
397
Child_with_nullable. to_yojson
414
- child_with_nullable_t in
398
+ child_with_nullable_t
399
+ in
415
400
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
416
401
Request. handle_unit_response resp
417
402
@@ -449,8 +434,7 @@ let test_string_map_reference ~request_body =
449
434
let body = Request.
450
435
451
436
452
- write_as_json_body
453
- (JsonSupport. of_map_of JsonSupport. of_string
437
+ write_as_json_body (JsonSupport. of_map_of JsonSupport. of_string
454
438
455
439
456
440
@@ -465,7 +449,8 @@ let test_string_map_reference ~request_body =
465
449
466
450
467
451
468
- request_body in
452
+ request_body
453
+ in
469
454
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
470
455
Request. handle_unit_response resp
471
456
0 commit comments