@@ -55,7 +55,6 @@ let fake_http_signature_test ~pet_t ?query_1 ?header_1 () =
55
55
query_1 in
56
56
let body = Request.
57
57
58
-
59
58
write_as_json_body
60
59
61
60
@@ -65,6 +64,7 @@ let fake_http_signature_test ~pet_t ?query_1 ?header_1 () =
65
64
66
65
Pet. to_yojson
67
66
67
+
68
68
pet_t
69
69
in
70
70
Cohttp_lwt_unix.Client. call `GET uri ~headers ~body >> = fun (resp , body ) ->
@@ -76,7 +76,6 @@ let fake_outer_boolean_serialize ~body () =
76
76
let headers = Request. default_headers in
77
77
let body = Request.
78
78
79
-
80
79
write_as_json_body
81
80
82
81
@@ -85,6 +84,7 @@ let fake_outer_boolean_serialize ~body () =
85
84
86
85
JsonSupport. of_bool
87
86
87
+
88
88
body
89
89
in
90
90
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
@@ -96,7 +96,6 @@ let fake_outer_composite_serialize ~outer_composite_t () =
96
96
let headers = Request. default_headers in
97
97
let body = Request.
98
98
99
-
100
99
write_as_json_body
101
100
102
101
@@ -106,6 +105,7 @@ let fake_outer_composite_serialize ~outer_composite_t () =
106
105
107
106
Outer_composite. to_yojson
108
107
108
+
109
109
outer_composite_t
110
110
in
111
111
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
@@ -117,7 +117,6 @@ let fake_outer_number_serialize ~body () =
117
117
let headers = Request. default_headers in
118
118
let body = Request.
119
119
120
-
121
120
write_as_json_body
122
121
123
122
@@ -126,6 +125,7 @@ JsonSupport.of_float
126
125
127
126
128
127
128
+
129
129
body
130
130
in
131
131
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
@@ -137,7 +137,6 @@ let fake_outer_string_serialize ~body () =
137
137
let headers = Request. default_headers in
138
138
let body = Request.
139
139
140
-
141
140
write_as_json_body JsonSupport. of_string
142
141
143
142
@@ -146,6 +145,7 @@ let fake_outer_string_serialize ~body () =
146
145
147
146
148
147
148
+
149
149
body
150
150
in
151
151
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
@@ -157,7 +157,6 @@ let fake_property_enum_integer_serialize ~outer_object_with_enum_property_t =
157
157
let headers = Request. default_headers in
158
158
let body = Request.
159
159
160
-
161
160
write_as_json_body
162
161
163
162
@@ -167,6 +166,7 @@ let fake_property_enum_integer_serialize ~outer_object_with_enum_property_t =
167
166
168
167
Outer_object_with_enum_property. to_yojson
169
168
169
+
170
170
outer_object_with_enum_property_t
171
171
in
172
172
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
@@ -177,9 +177,27 @@ let test_additional_properties_reference ~request_body =
177
177
let uri = Request. build_uri " /fake/additionalProperties-reference" in
178
178
let headers = Request. default_headers in
179
179
let body = Request.
180
- write_json_body request_body
181
-
182
180
181
+ write_as_json_body (JsonSupport. of_map_of
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+ (fun x -> x)
190
+ )
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ request_body
183
201
in
184
202
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
185
203
Request. handle_unit_response resp
@@ -190,7 +208,6 @@ let test_body_with_binary ~body =
190
208
let headers = Request. default_headers in
191
209
let body = Request.
192
210
193
-
194
211
write_as_json_body
195
212
196
213
@@ -199,6 +216,7 @@ let test_body_with_binary ~body =
199
216
200
217
201
218
JsonSupport. of_string
219
+
202
220
body
203
221
in
204
222
Cohttp_lwt_unix.Client. call `PUT uri ~headers ~body >> = fun (resp , body ) ->
@@ -210,7 +228,6 @@ let test_body_with_file_schema ~file_schema_test_class_t =
210
228
let headers = Request. default_headers in
211
229
let body = Request.
212
230
213
-
214
231
write_as_json_body
215
232
216
233
@@ -220,6 +237,7 @@ let test_body_with_file_schema ~file_schema_test_class_t =
220
237
221
238
File_schema_test_class. to_yojson
222
239
240
+
223
241
file_schema_test_class_t
224
242
in
225
243
Cohttp_lwt_unix.Client. call `PUT uri ~headers ~body >> = fun (resp , body ) ->
@@ -246,7 +264,6 @@ let test_body_with_query_params ~query ~user_t =
246
264
query in
247
265
let body = Request.
248
266
249
-
250
267
write_as_json_body
251
268
252
269
@@ -256,6 +273,7 @@ let test_body_with_query_params ~query ~user_t =
256
273
257
274
User. to_yojson
258
275
276
+
259
277
user_t
260
278
in
261
279
Cohttp_lwt_unix.Client. call `PUT uri ~headers ~body >> = fun (resp , body ) ->
@@ -267,7 +285,6 @@ let test_client_model ~client_t =
267
285
let headers = Request. default_headers in
268
286
let body = Request.
269
287
270
-
271
288
write_as_json_body
272
289
273
290
@@ -277,6 +294,7 @@ let test_client_model ~client_t =
277
294
278
295
Client. to_yojson
279
296
297
+
280
298
client_t
281
299
in
282
300
Cohttp_lwt_unix.Client. call `PATCH uri ~headers ~body >> = fun (resp , body ) ->
@@ -668,7 +686,6 @@ let test_inline_additional_properties ~request_body =
668
686
let headers = Request. default_headers in
669
687
let body = Request.
670
688
671
-
672
689
write_as_json_body (JsonSupport. of_map_of JsonSupport. of_string
673
690
674
691
@@ -677,6 +694,7 @@ let test_inline_additional_properties ~request_body =
677
694
678
695
679
696
697
+
680
698
)
681
699
682
700
@@ -686,6 +704,7 @@ let test_inline_additional_properties ~request_body =
686
704
687
705
688
706
707
+
689
708
request_body
690
709
in
691
710
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
@@ -697,7 +716,6 @@ let test_inline_freeform_additional_properties ~test_inline_freeform_additional_
697
716
let headers = Request. default_headers in
698
717
let body = Request.
699
718
700
-
701
719
write_as_json_body
702
720
703
721
@@ -707,6 +725,7 @@ let test_inline_freeform_additional_properties ~test_inline_freeform_additional_
707
725
708
726
Test_inline_freeform_additional_properties_request. to_yojson
709
727
728
+
710
729
test_inline_freeform_additional_properties_request_t
711
730
in
712
731
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
@@ -757,7 +776,6 @@ let test_nullable ~child_with_nullable_t =
757
776
let headers = Request. default_headers in
758
777
let body = Request.
759
778
760
-
761
779
write_as_json_body
762
780
763
781
@@ -767,6 +785,7 @@ let test_nullable ~child_with_nullable_t =
767
785
768
786
Child_with_nullable. to_yojson
769
787
788
+
770
789
child_with_nullable_t
771
790
in
772
791
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
@@ -969,7 +988,6 @@ let test_string_map_reference ~request_body =
969
988
let headers = Request. default_headers in
970
989
let body = Request.
971
990
972
-
973
991
write_as_json_body (JsonSupport. of_map_of JsonSupport. of_string
974
992
975
993
@@ -978,6 +996,7 @@ let test_string_map_reference ~request_body =
978
996
979
997
980
998
999
+
981
1000
)
982
1001
983
1002
@@ -987,6 +1006,7 @@ let test_string_map_reference ~request_body =
987
1006
988
1007
989
1008
1009
+
990
1010
request_body
991
1011
in
992
1012
Cohttp_lwt_unix.Client. call `POST uri ~headers ~body >> = fun (resp , body ) ->
0 commit comments