@flock/wirespec 0.6.2 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/kotlin/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js +309 -309
  2. package/kotlin/arrow-arrow-atomic.js +1 -1
  3. package/kotlin/arrow-arrow-continuations.js +1 -1
  4. package/kotlin/arrow-arrow-core.js +5 -5
  5. package/kotlin/kotlin-kotlin-stdlib-js-ir.js +108 -94
  6. package/kotlin/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
  7. package/kotlin/kotlin-openapi-bindings.js +3446 -3446
  8. package/kotlin/kotlin-openapi-bindings.js.map +1 -1
  9. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +1360 -1330
  10. package/kotlin/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -1
  11. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +1122 -1113
  12. package/kotlin/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -1
  13. package/kotlin/wirespec-cli.js +96 -96
  14. package/kotlin/wirespec-core.js +353 -282
  15. package/kotlin/wirespec-core.js.map +1 -1
  16. package/kotlin/wirespec-lib.js +45 -45
  17. package/kotlin/wirespec-openapi.js +1503 -1177
  18. package/kotlin/wirespec-openapi.js.map +1 -1
  19. package/package.json +1 -1
  20. package/sync-hashes/Kotlinx-Cli-Library-kotlinx-cli-js-ir.js.hash +1 -1
  21. package/sync-hashes/arrow-arrow-atomic.js.hash +1 -1
  22. package/sync-hashes/arrow-arrow-continuations.js.hash +1 -1
  23. package/sync-hashes/arrow-arrow-core.js.hash +1 -1
  24. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.hash +1 -1
  25. package/sync-hashes/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -1
  26. package/sync-hashes/kotlin-openapi-bindings.js.hash +1 -1
  27. package/sync-hashes/kotlin-openapi-bindings.js.map.hash +1 -1
  28. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -1
  29. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -1
  30. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -1
  31. package/sync-hashes/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -1
  32. package/sync-hashes/wirespec-cli.js.hash +1 -1
  33. package/sync-hashes/wirespec-core.js.hash +1 -1
  34. package/sync-hashes/wirespec-core.js.map.hash +1 -1
  35. package/sync-hashes/wirespec-lib.js.hash +1 -1
  36. package/sync-hashes/wirespec-openapi.js.hash +1 -1
  37. package/sync-hashes/wirespec-openapi.js.map.hash +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './wirespec-core.js', './kotlin-kotlin-stdlib-js-ir.js', './kotlin-openapi-bindings.js'], factory);
3
+ define(['exports', './wirespec-core.js', './kotlin-kotlin-stdlib-js-ir.js', './kotlin-openapi-bindings.js', './kotlinx-serialization-kotlinx-serialization-json-js-ir.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./wirespec-core.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlin-openapi-bindings.js'));
5
+ factory(module.exports, require('./wirespec-core.js'), require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlin-openapi-bindings.js'), require('./kotlinx-serialization-kotlinx-serialization-json-js-ir.js'));
6
6
  else {
7
7
  if (typeof this['wirespec-core'] === 'undefined') {
8
8
  throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'wirespec-core' was not found. Please, check whether 'wirespec-core' is loaded prior to 'wirespec-openapi'.");
@@ -13,21 +13,26 @@
13
13
  if (typeof this['kotlin-openapi-bindings'] === 'undefined') {
14
14
  throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'kotlin-openapi-bindings' was not found. Please, check whether 'kotlin-openapi-bindings' is loaded prior to 'wirespec-openapi'.");
15
15
  }
16
- root['wirespec-openapi'] = factory(typeof this['wirespec-openapi'] === 'undefined' ? {} : this['wirespec-openapi'], this['wirespec-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlin-openapi-bindings']);
16
+ if (typeof this['kotlinx-serialization-kotlinx-serialization-json-js-ir'] === 'undefined') {
17
+ throw new Error("Error loading module 'wirespec-openapi'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json-js-ir' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json-js-ir' is loaded prior to 'wirespec-openapi'.");
18
+ }
19
+ root['wirespec-openapi'] = factory(typeof this['wirespec-openapi'] === 'undefined' ? {} : this['wirespec-openapi'], this['wirespec-core'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlin-openapi-bindings'], this['kotlinx-serialization-kotlinx-serialization-json-js-ir']);
17
20
  }
18
- }(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings) {
21
+ }(this, function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json) {
19
22
  'use strict';
20
23
  //region block: imports
21
24
  var imul = Math.imul;
22
- var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
23
- var VOID = kotlin_kotlin.$_$.ya;
25
+ var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
26
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
27
+ var split = kotlin_kotlin.$_$.x8;
28
+ var Unit_getInstance = kotlin_kotlin.$_$.i3;
29
+ var addAll = kotlin_kotlin.$_$.z3;
30
+ var VOID = kotlin_kotlin.$_$.za;
24
31
  var joinToString = kotlin_kotlin.$_$.b5;
25
32
  var protoOf = kotlin_kotlin.$_$.t7;
26
33
  var objectMeta = kotlin_kotlin.$_$.s7;
27
34
  var setMetadataFor = kotlin_kotlin.$_$.u7;
28
35
  var Default_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
29
- var Unit_getInstance = kotlin_kotlin.$_$.i3;
30
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
31
36
  var plus = kotlin_kotlin.$_$.p5;
32
37
  var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
33
38
  var collectionSizeOrDefault = kotlin_kotlin.$_$.c4;
@@ -35,59 +40,64 @@
35
40
  var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
36
41
  var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
37
42
  var emptyList = kotlin_kotlin.$_$.r4;
38
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.ta;
39
- var NotImplementedError = kotlin_kotlin.$_$.u9;
43
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.ua;
44
+ var NotImplementedError = kotlin_kotlin.$_$.v9;
40
45
  var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
41
46
  var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
42
47
  var Content = kotlin_community_flock_wirespec_compiler_core.$_$.g;
43
48
  var Request = kotlin_community_flock_wirespec_compiler_core.$_$.i;
44
- var addAll = kotlin_kotlin.$_$.z3;
45
49
  var listOf = kotlin_kotlin.$_$.i5;
46
50
  var emptyMap = kotlin_kotlin.$_$.s4;
47
51
  var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
48
52
  var Response = kotlin_community_flock_wirespec_compiler_core.$_$.j;
49
53
  var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.m;
50
- var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.s;
51
- var Type = kotlin_community_flock_wirespec_compiler_core.$_$.t;
54
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
52
55
  var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
53
56
  var Ref = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
54
57
  var toString = kotlin_kotlin.$_$.y7;
55
58
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e1;
56
- var to = kotlin_kotlin.$_$.xa;
59
+ var to = kotlin_kotlin.$_$.ya;
57
60
  var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
58
61
  var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
59
- var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.o;
60
- var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.p;
61
- var contains = kotlin_kotlin.$_$.d4;
62
- var Field = kotlin_community_flock_wirespec_compiler_core.$_$.r;
63
- var getStringHashCode = kotlin_kotlin.$_$.x6;
64
- var hashCode = kotlin_kotlin.$_$.y6;
65
- var THROW_CCE = kotlin_kotlin.$_$.y9;
66
- var equals = kotlin_kotlin.$_$.s6;
67
- var classMeta = kotlin_kotlin.$_$.q6;
68
- var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.q;
62
+ var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.u;
63
+ var Type = kotlin_community_flock_wirespec_compiler_core.$_$.v;
64
+ var ensureNotNull = kotlin_kotlin.$_$.oa;
65
+ var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.e;
66
+ var JsonArray = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
67
+ var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.f;
68
+ var toSet = kotlin_kotlin.$_$.b6;
69
+ var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.n;
70
+ var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.r;
71
+ var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.s;
72
+ var Any = kotlin_community_flock_wirespec_compiler_core.$_$.q;
69
73
  var values = kotlin_community_flock_wirespec_compiler_core.$_$.h;
70
74
  var mapCapacity = kotlin_kotlin.$_$.k5;
71
75
  var coerceAtLeast = kotlin_kotlin.$_$.z7;
72
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.o;
76
+ var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.o;
73
77
  var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
74
- var split = kotlin_kotlin.$_$.w8;
75
- var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z;
76
- var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y;
77
- var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.x;
78
+ var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
79
+ var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
80
+ var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z;
81
+ var Identifier = kotlin_community_flock_wirespec_compiler_core.$_$.p;
82
+ var contains = kotlin_kotlin.$_$.d4;
83
+ var Field = kotlin_community_flock_wirespec_compiler_core.$_$.t;
78
84
  var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
79
85
  var drop = kotlin_kotlin.$_$.q4;
80
86
  var charSequenceLength = kotlin_kotlin.$_$.o6;
81
87
  var charSequenceGet = kotlin_kotlin.$_$.n6;
82
- var Char = kotlin_kotlin.$_$.m9;
88
+ var Char = kotlin_kotlin.$_$.n9;
83
89
  var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.i1;
90
+ var equals = kotlin_kotlin.$_$.s6;
84
91
  var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.k;
85
92
  var Param = kotlin_community_flock_wirespec_compiler_core.$_$.l;
86
- var joinToString_0 = kotlin_kotlin.$_$.a5;
87
93
  var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
88
94
  var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
95
+ var getStringHashCode = kotlin_kotlin.$_$.x6;
96
+ var THROW_CCE = kotlin_kotlin.$_$.z9;
97
+ var classMeta = kotlin_kotlin.$_$.q6;
89
98
  var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
90
99
  var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
100
+ var hashCode = kotlin_kotlin.$_$.y6;
91
101
  var toMap = kotlin_kotlin.$_$.a6;
92
102
  var Default_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
93
103
  var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
@@ -104,6 +114,7 @@
104
114
  var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
105
115
  var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
106
116
  var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
117
+ var getOrNull = kotlin_kotlin.$_$.x4;
107
118
  var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
108
119
  var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
109
120
  var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
@@ -112,12 +123,10 @@
112
123
  //region block: pre-declaration
113
124
  setMetadataFor(Common, 'Common', objectMeta);
114
125
  setMetadataFor(Companion, 'Companion', objectMeta);
115
- setMetadataFor(SimpleSchema, 'SimpleSchema', classMeta);
116
126
  setMetadataFor(FlattenRequest, 'FlattenRequest', classMeta);
117
127
  setMetadataFor(FlattenResponse, 'FlattenResponse', classMeta);
118
128
  setMetadataFor(OpenApiParser, 'OpenApiParser', classMeta);
119
129
  setMetadataFor(Companion_0, 'Companion', objectMeta);
120
- setMetadataFor(SimpleSchema_0, 'SimpleSchema', classMeta);
121
130
  setMetadataFor(FlattenRequest_0, 'FlattenRequest', classMeta);
122
131
  setMetadataFor(FlattenResponse_0, 'FlattenResponse', classMeta);
123
132
  setMetadataFor(OpenApiParser_0, 'OpenApiParser', classMeta);
@@ -128,8 +137,28 @@
128
137
  function Common() {
129
138
  Common_instance = this;
130
139
  }
131
- protoOf(Common).z1s = function (arg) {
132
- return joinToString(arg, '', VOID, VOID, VOID, VOID, Common$className$lambda);
140
+ protoOf(Common).f1t = function (arg) {
141
+ var tmp$ret$2;
142
+ // Inline function 'kotlin.collections.flatMap' call
143
+ var tmp$ret$1;
144
+ // Inline function 'kotlin.collections.flatMapTo' call
145
+ var tmp0_flatMapTo = ArrayList_init_$Create$();
146
+ var indexedObject = arg;
147
+ var inductionVariable = 0;
148
+ var last = indexedObject.length;
149
+ while (inductionVariable < last) {
150
+ var element = indexedObject[inductionVariable];
151
+ inductionVariable = inductionVariable + 1 | 0;
152
+ var tmp$ret$0;
153
+ // Inline function 'community.flock.wirespec.openapi.Common.className.<anonymous>' call
154
+ tmp$ret$0 = split(element, ['-']);
155
+ var list = tmp$ret$0;
156
+ addAll(tmp0_flatMapTo, list);
157
+ }
158
+ tmp$ret$1 = tmp0_flatMapTo;
159
+ tmp$ret$2 = tmp$ret$1;
160
+ var tmp = tmp$ret$2;
161
+ return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
133
162
  };
134
163
  var Common_instance;
135
164
  function Common_getInstance() {
@@ -140,14 +169,14 @@
140
169
  function Companion() {
141
170
  Companion_instance = this;
142
171
  }
143
- protoOf(Companion).a1t = function (json) {
172
+ protoOf(Companion).g1t = function (json) {
144
173
  var tmp$ret$1;
145
174
  // Inline function 'kotlin.let' call
146
- var tmp0_let = Default_getInstance().g1a(json);
175
+ var tmp0_let = Default_getInstance().m1a(json);
147
176
  // Inline function 'kotlin.contracts.contract' call
148
177
  var tmp$ret$0;
149
178
  // Inline function 'community.flock.wirespec.openapi.v2.Companion.parse.<anonymous>' call
150
- tmp$ret$0 = (new OpenApiParser(tmp0_let)).c1t();
179
+ tmp$ret$0 = (new OpenApiParser(tmp0_let)).i1t();
151
180
  tmp$ret$1 = tmp$ret$0;
152
181
  return tmp$ret$1;
153
182
  };
@@ -160,7 +189,7 @@
160
189
  function parseEndpoints($this) {
161
190
  var tmp$ret$48;
162
191
  // Inline function 'kotlin.collections.flatMap' call
163
- var tmp1_flatMap = $this.b1t_1.q1a_1;
192
+ var tmp1_flatMap = $this.h1t_1.w1a_1;
164
193
  var tmp$ret$47;
165
194
  // Inline function 'kotlin.collections.flatMapTo' call
166
195
  var tmp0_flatMapTo = ArrayList_init_$Create$();
@@ -174,7 +203,7 @@
174
203
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>' call
175
204
  var tmp$ret$1;
176
205
  // Inline function 'kotlin.collections.component1' call
177
- tmp$ret$1 = element.v().b1b_1;
206
+ tmp$ret$1 = element.v().h1b_1;
178
207
  var path = tmp$ret$1;
179
208
  var tmp$ret$2;
180
209
  // Inline function 'kotlin.collections.component2' call
@@ -217,7 +246,7 @@
217
246
  var element_1 = tmp0_iterator_1.e();
218
247
  var tmp$ret$6;
219
248
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
220
- tmp$ret$6 = element_1.l1c_1.equals(ParameterLocation_QUERY_getInstance());
249
+ tmp$ret$6 = element_1.r1c_1.equals(ParameterLocation_QUERY_getInstance());
221
250
  if (tmp$ret$6) {
222
251
  tmp0_filterTo.a(element_1);
223
252
  }
@@ -233,7 +262,7 @@
233
262
  var item = tmp0_iterator_2.e();
234
263
  var tmp$ret$9;
235
264
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
236
- tmp$ret$9 = toField(item, $this);
265
+ tmp$ret$9 = toField_0(item, $this);
237
266
  tmp1_mapTo.a(tmp$ret$9);
238
267
  }
239
268
  tmp$ret$10 = tmp1_mapTo;
@@ -251,7 +280,7 @@
251
280
  var element_2 = tmp0_iterator_3.e();
252
281
  var tmp$ret$12;
253
282
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
254
- tmp$ret$12 = element_2.l1c_1.equals(ParameterLocation_HEADER_getInstance());
283
+ tmp$ret$12 = element_2.r1c_1.equals(ParameterLocation_HEADER_getInstance());
255
284
  if (tmp$ret$12) {
256
285
  tmp3_filterTo.a(element_2);
257
286
  }
@@ -267,7 +296,7 @@
267
296
  var item_0 = tmp0_iterator_4.e();
268
297
  var tmp$ret$15;
269
298
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
270
- tmp$ret$15 = toField(item_0, $this);
299
+ tmp$ret$15 = toField_0(item_0, $this);
271
300
  tmp4_mapTo.a(tmp$ret$15);
272
301
  }
273
302
  tmp$ret$16 = tmp4_mapTo;
@@ -287,7 +316,7 @@
287
316
  var element_3 = tmp0_iterator_5.e();
288
317
  var tmp$ret$18;
289
318
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
290
- tmp$ret$18 = element_3.l1c_1.equals(ParameterLocation_BODY_getInstance());
319
+ tmp$ret$18 = element_3.r1c_1.equals(ParameterLocation_BODY_getInstance());
291
320
  if (tmp$ret$18) {
292
321
  tmp6_filterTo.a(element_3);
293
322
  }
@@ -307,8 +336,8 @@
307
336
  // Inline function 'kotlin.collections.map' call
308
337
  var tmp$ret$21;
309
338
  // Inline function 'kotlin.collections.orEmpty' call
310
- var tmp0_elvis_lhs = $this.b1t_1.o1a_1;
311
- var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.z1b_1 : tmp0_elvis_lhs;
339
+ var tmp0_elvis_lhs = $this.h1t_1.u1a_1;
340
+ var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.f1c_1 : tmp0_elvis_lhs;
312
341
  var tmp0_elvis_lhs_0 = tmp0_orEmpty;
313
342
  tmp$ret$21 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
314
343
  var tmp2_map_0 = tmp$ret$21;
@@ -320,13 +349,13 @@
320
349
  var item_1 = tmp0_iterator_7.e();
321
350
  var tmp$ret$22;
322
351
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
323
- var schema = element_4.o1c_1;
352
+ var schema = element_4.u1c_1;
324
353
  var tmp;
325
354
  if (schema instanceof ReferenceObject) {
326
355
  tmp = toReference(schema, $this);
327
356
  } else {
328
357
  if (schema instanceof SchemaObject) {
329
- tmp = toReference_0(schema, $this, Common_getInstance().z1s([name, 'RequestBody']));
358
+ tmp = toReference_0(schema, $this, Common_getInstance().f1t([name, 'RequestBody']));
330
359
  } else {
331
360
  if (schema == null) {
332
361
  throw new NotImplementedError();
@@ -336,7 +365,7 @@
336
365
  }
337
366
  }
338
367
  var tmp_0 = tmp;
339
- var tmp0_elvis_lhs_1 = element_4.n1c_1;
368
+ var tmp0_elvis_lhs_1 = element_4.t1c_1;
340
369
  tmp$ret$22 = new Request(new Content(item_1, tmp_0, tmp0_elvis_lhs_1 == null ? false : tmp0_elvis_lhs_1));
341
370
  tmp1_mapTo_0.a(tmp$ret$22);
342
371
  }
@@ -364,7 +393,7 @@
364
393
  // Inline function 'kotlin.collections.flatMap' call
365
394
  var tmp$ret$30;
366
395
  // Inline function 'kotlin.collections.orEmpty' call
367
- var tmp10_orEmpty = operation.c1c_1;
396
+ var tmp10_orEmpty = operation.i1c_1;
368
397
  var tmp0_elvis_lhs_2 = tmp10_orEmpty;
369
398
  tmp$ret$30 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
370
399
  var tmp12_flatMap = tmp$ret$30;
@@ -381,7 +410,7 @@
381
410
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
382
411
  var tmp$ret$32;
383
412
  // Inline function 'kotlin.collections.component1' call
384
- tmp$ret$32 = element_5.v().u1e_1;
413
+ tmp$ret$32 = element_5.v().a1f_1;
385
414
  var status = tmp$ret$32;
386
415
  var tmp$ret$33;
387
416
  // Inline function 'kotlin.collections.component2' call
@@ -391,8 +420,8 @@
391
420
  // Inline function 'kotlin.collections.map' call
392
421
  var tmp$ret$34;
393
422
  // Inline function 'kotlin.collections.orEmpty' call
394
- var tmp0_elvis_lhs_3 = $this.b1t_1.p1a_1;
395
- var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.a1c_1 : tmp0_elvis_lhs_3;
423
+ var tmp0_elvis_lhs_3 = $this.h1t_1.v1a_1;
424
+ var tmp0_orEmpty_0 = tmp0_elvis_lhs_3 == null ? operation.g1c_1 : tmp0_elvis_lhs_3;
396
425
  var tmp0_elvis_lhs_4 = tmp0_orEmpty_0;
397
426
  tmp$ret$34 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
398
427
  var tmp2_map_1 = tmp$ret$34;
@@ -405,7 +434,7 @@
405
434
  var tmp$ret$37;
406
435
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
407
436
  var tmp_2 = _StatusCode___get_value__impl__we50mu(status);
408
- var tmp0_safe_receiver = resolve_1(res, $this).y1e_1;
437
+ var tmp0_safe_receiver = resolve_1(res, $this).e1f_1;
409
438
  var tmp_3;
410
439
  if (tmp0_safe_receiver == null) {
411
440
  tmp_3 = null;
@@ -421,7 +450,7 @@
421
450
  tmp_4 = toReference(tmp0_safe_receiver, $this);
422
451
  } else {
423
452
  if (tmp0_subject instanceof SchemaObject) {
424
- tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
453
+ tmp_4 = toReference_0(tmp0_safe_receiver, $this, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
425
454
  } else {
426
455
  noWhenBranchMatchedException();
427
456
  }
@@ -457,69 +486,66 @@
457
486
  return tmp$ret$48;
458
487
  }
459
488
  function parseRequestBody($this) {
460
- return flatMapRequests($this.b1t_1, $this, OpenApiParser$parseRequestBody$lambda($this));
489
+ return flatMapRequests($this.h1t_1, $this, OpenApiParser$parseRequestBody$lambda($this));
461
490
  }
462
491
  function parseResponseBody($this) {
463
- return flatMapResponses($this.b1t_1, $this, OpenApiParser$parseResponseBody$lambda($this));
492
+ return flatMapResponses($this.h1t_1, $this, OpenApiParser$parseResponseBody$lambda($this));
464
493
  }
465
494
  function parseDefinitions($this) {
466
- var tmp0_safe_receiver = $this.b1t_1.r1a_1;
467
- var tmp;
468
- if (tmp0_safe_receiver == null) {
469
- tmp = null;
470
- } else {
471
- var tmp$ret$3;
472
- // Inline function 'kotlin.collections.flatMap' call
495
+ var tmp$ret$8;
496
+ // Inline function 'kotlin.collections.flatMap' call
497
+ var tmp$ret$4;
498
+ // Inline function 'kotlin.collections.filter' call
499
+ var tmp$ret$0;
500
+ // Inline function 'kotlin.collections.orEmpty' call
501
+ var tmp0_orEmpty = $this.h1t_1.x1a_1;
502
+ var tmp0_elvis_lhs = tmp0_orEmpty;
503
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
504
+ var tmp2_filter = tmp$ret$0;
505
+ var tmp$ret$3;
506
+ // Inline function 'kotlin.collections.filterTo' call
507
+ var tmp1_filterTo = LinkedHashMap_init_$Create$();
508
+ var tmp$ret$1;
509
+ // Inline function 'kotlin.collections.iterator' call
510
+ tmp$ret$1 = tmp2_filter.u().c();
511
+ var tmp0_iterator = tmp$ret$1;
512
+ while (tmp0_iterator.d()) {
513
+ var element = tmp0_iterator.e();
473
514
  var tmp$ret$2;
474
- // Inline function 'kotlin.collections.flatMapTo' call
475
- var tmp0_flatMapTo = ArrayList_init_$Create$();
476
- var tmp$ret$0;
477
- // Inline function 'kotlin.collections.iterator' call
478
- tmp$ret$0 = tmp0_safe_receiver.u().c();
479
- var tmp0_iterator = tmp$ret$0;
480
- while (tmp0_iterator.d()) {
481
- var element = tmp0_iterator.e();
482
- var tmp$ret$1;
483
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
484
- tmp$ret$1 = flatten(element.w(), $this, Common_getInstance().z1s([element.v()]));
485
- var list = tmp$ret$1;
486
- addAll(tmp0_flatMapTo, list);
515
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
516
+ tmp$ret$2 = element.w().w1e_1 == null;
517
+ if (tmp$ret$2) {
518
+ tmp1_filterTo.k3(element.v(), element.w());
487
519
  }
488
- tmp$ret$2 = tmp0_flatMapTo;
489
- tmp$ret$3 = tmp$ret$2;
490
- tmp = tmp$ret$3;
491
520
  }
492
- var tmp1_safe_receiver = tmp;
493
- var tmp_0;
494
- if (tmp1_safe_receiver == null) {
495
- tmp_0 = null;
496
- } else {
521
+ tmp$ret$3 = tmp1_filterTo;
522
+ tmp$ret$4 = tmp$ret$3;
523
+ var tmp4_flatMap = tmp$ret$4;
524
+ var tmp$ret$7;
525
+ // Inline function 'kotlin.collections.flatMapTo' call
526
+ var tmp3_flatMapTo = ArrayList_init_$Create$();
527
+ var tmp$ret$5;
528
+ // Inline function 'kotlin.collections.iterator' call
529
+ tmp$ret$5 = tmp4_flatMap.u().c();
530
+ var tmp0_iterator_0 = tmp$ret$5;
531
+ while (tmp0_iterator_0.d()) {
532
+ var element_0 = tmp0_iterator_0.e();
497
533
  var tmp$ret$6;
498
- // Inline function 'kotlin.collections.map' call
499
- var tmp$ret$5;
500
- // Inline function 'kotlin.collections.mapTo' call
501
- var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_safe_receiver, 10));
502
- var tmp0_iterator_0 = tmp1_safe_receiver.c();
503
- while (tmp0_iterator_0.d()) {
504
- var item = tmp0_iterator_0.e();
505
- var tmp$ret$4;
506
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
507
- tmp$ret$4 = new Type(item.d1t_1, new Shape(item.e1t_1));
508
- tmp1_mapTo.a(tmp$ret$4);
509
- }
510
- tmp$ret$5 = tmp1_mapTo;
511
- tmp$ret$6 = tmp$ret$5;
512
- tmp_0 = tmp$ret$6;
534
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseDefinitions.<anonymous>' call
535
+ tmp$ret$6 = flatten(element_0.w(), $this, Common_getInstance().f1t([element_0.v()]));
536
+ var list = tmp$ret$6;
537
+ addAll(tmp3_flatMapTo, list);
513
538
  }
514
- var tmp2_elvis_lhs = tmp_0;
515
- return tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs;
539
+ tmp$ret$7 = tmp3_flatMapTo;
540
+ tmp$ret$8 = tmp$ret$7;
541
+ return tmp$ret$8;
516
542
  }
517
543
  function resolveParameters(_this__u8e3s4, $this) {
518
544
  var tmp$ret$3;
519
545
  // Inline function 'kotlin.collections.map' call
520
546
  var tmp$ret$0;
521
547
  // Inline function 'kotlin.collections.orEmpty' call
522
- var tmp0_orEmpty = _this__u8e3s4.b1c_1;
548
+ var tmp0_orEmpty = _this__u8e3s4.h1c_1;
523
549
  var tmp0_elvis_lhs = tmp0_orEmpty;
524
550
  tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
525
551
  var tmp2_map = tmp$ret$0;
@@ -554,7 +580,7 @@
554
580
  // Inline function 'kotlin.collections.map' call
555
581
  var tmp$ret$0;
556
582
  // Inline function 'kotlin.collections.orEmpty' call
557
- var tmp0_orEmpty = _this__u8e3s4.q1b_1;
583
+ var tmp0_orEmpty = _this__u8e3s4.w1b_1;
558
584
  var tmp0_elvis_lhs = tmp0_orEmpty;
559
585
  tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
560
586
  var tmp2_map = tmp$ret$0;
@@ -585,11 +611,11 @@
585
611
  return tmp$ret$3;
586
612
  }
587
613
  function resolveParameterObject(_this__u8e3s4, $this) {
588
- var tmp0_safe_receiver = $this.b1t_1.s1a_1;
614
+ var tmp0_safe_receiver = $this.h1t_1.y1a_1;
589
615
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
590
616
  var tmp;
591
617
  if (tmp1_elvis_lhs == null) {
592
- var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.k1d_1);
618
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1d_1);
593
619
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
594
620
  } else {
595
621
  tmp = tmp1_elvis_lhs;
@@ -597,11 +623,11 @@
597
623
  return tmp;
598
624
  }
599
625
  function resolveResponseObject(_this__u8e3s4, $this) {
600
- var tmp0_safe_receiver = $this.b1t_1.t1a_1;
626
+ var tmp0_safe_receiver = $this.h1t_1.z1a_1;
601
627
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
602
628
  var tmp;
603
629
  if (tmp1_elvis_lhs == null) {
604
- var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.k1d_1);
630
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1d_1);
605
631
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
606
632
  } else {
607
633
  tmp = tmp1_elvis_lhs;
@@ -609,7 +635,7 @@
609
635
  return tmp;
610
636
  }
611
637
  function resolveSchemaObject(_this__u8e3s4, $this) {
612
- var tmp0_safe_receiver = $this.b1t_1.r1a_1;
638
+ var tmp0_safe_receiver = $this.h1t_1.x1a_1;
613
639
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.m2(getReference(_this__u8e3s4, $this));
614
640
  var tmp;
615
641
  if (tmp1_safe_receiver == null) {
@@ -627,7 +653,7 @@
627
653
  var tmp2_elvis_lhs = tmp;
628
654
  var tmp_0;
629
655
  if (tmp2_elvis_lhs == null) {
630
- var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.k1d_1);
656
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref(_this__u8e3s4.q1d_1);
631
657
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
632
658
  } else {
633
659
  tmp_0 = tmp2_elvis_lhs;
@@ -695,160 +721,241 @@
695
721
  return tmp;
696
722
  }
697
723
  function flatten(_this__u8e3s4, $this, name) {
698
- var tmp0_subject = _this__u8e3s4.m1e_1;
699
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
700
724
  var tmp;
701
- switch (tmp0) {
702
- case -1:
703
- case 5:
704
- var tmp1_safe_receiver = _this__u8e3s4.p1e_1;
705
- var tmp_0;
706
- if (tmp1_safe_receiver == null) {
707
- tmp_0 = null;
725
+ if (!(_this__u8e3s4.w1e_1 == null)) {
726
+ var tmp0_subject = _this__u8e3s4.w1e_1;
727
+ var tmp_0;
728
+ if (tmp0_subject instanceof BooleanObject) {
729
+ tmp_0 = emptyList();
730
+ } else {
731
+ tmp_0 = flatten(resolve_0(ensureNotNull(_this__u8e3s4.w1e_1), $this), $this, name);
732
+ }
733
+ tmp = tmp_0;
734
+ } else if (!(_this__u8e3s4.u1e_1 == null)) {
735
+ var tmp$ret$3;
736
+ // Inline function 'kotlin.collections.flatMap' call
737
+ var tmp$ret$0;
738
+ // Inline function 'kotlin.collections.orEmpty' call
739
+ var tmp0_orEmpty = _this__u8e3s4.u1e_1;
740
+ var tmp0_elvis_lhs = tmp0_orEmpty;
741
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
742
+ var tmp2_flatMap = tmp$ret$0;
743
+ var tmp$ret$2;
744
+ // Inline function 'kotlin.collections.flatMapTo' call
745
+ var tmp1_flatMapTo = ArrayList_init_$Create$();
746
+ var tmp0_iterator = tmp2_flatMap.c();
747
+ while (tmp0_iterator.d()) {
748
+ var element = tmp0_iterator.e();
749
+ var tmp$ret$1;
750
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
751
+ tmp$ret$1 = toField(resolve(element, $this), $this, name);
752
+ var list = tmp$ret$1;
753
+ addAll(tmp1_flatMapTo, list);
754
+ }
755
+ tmp$ret$2 = tmp1_flatMapTo;
756
+ tmp$ret$3 = tmp$ret$2;
757
+ var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
758
+ var tmp$ret$13;
759
+ // Inline function 'kotlin.collections.flatMap' call
760
+ var tmp4_flatMap = ensureNotNull(_this__u8e3s4.u1e_1);
761
+ var tmp$ret$12;
762
+ // Inline function 'kotlin.collections.flatMapTo' call
763
+ var tmp3_flatMapTo = ArrayList_init_$Create$();
764
+ var tmp0_iterator_0 = tmp4_flatMap.c();
765
+ while (tmp0_iterator_0.d()) {
766
+ var element_0 = tmp0_iterator_0.e();
767
+ var tmp$ret$11;
768
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
769
+ var tmp0_subject_0 = element_0;
770
+ var tmp_2;
771
+ if (tmp0_subject_0 instanceof ReferenceObject) {
772
+ tmp_2 = emptyList();
708
773
  } else {
709
- var tmp$ret$5;
710
- // Inline function 'kotlin.collections.flatMap' call
711
- var tmp$ret$4;
712
- // Inline function 'kotlin.collections.flatMapTo' call
713
- var tmp0_flatMapTo = ArrayList_init_$Create$();
714
- var tmp$ret$0;
715
- // Inline function 'kotlin.collections.iterator' call
716
- tmp$ret$0 = tmp1_safe_receiver.u().c();
717
- var tmp0_iterator = tmp$ret$0;
718
- while (tmp0_iterator.d()) {
719
- var element = tmp0_iterator.e();
720
- var tmp$ret$3;
721
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
722
- var tmp$ret$1;
723
- // Inline function 'kotlin.collections.component1' call
724
- tmp$ret$1 = element.v();
725
- var key = tmp$ret$1;
726
- var tmp$ret$2;
727
- // Inline function 'kotlin.collections.component2' call
728
- tmp$ret$2 = element.w();
729
- var value = tmp$ret$2;
730
- var tmp0_subject_0 = value;
731
- var tmp_1;
732
- if (tmp0_subject_0 instanceof SchemaObject) {
733
- var tmp1_subject = value.m1e_1;
734
- var tmp0_0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
735
- tmp_1 = tmp0_0 === 4 ? emptyList() : flatten(value, $this, Common_getInstance().z1s([name, key]));
736
- } else {
737
- if (tmp0_subject_0 instanceof ReferenceObject) {
738
- tmp_1 = emptyList();
774
+ if (tmp0_subject_0 instanceof SchemaObject) {
775
+ var tmp$ret$10;
776
+ // Inline function 'kotlin.collections.flatMap' call
777
+ var tmp$ret$4;
778
+ // Inline function 'kotlin.collections.orEmpty' call
779
+ var tmp0_orEmpty_0 = element_0.v1e_1;
780
+ var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
781
+ tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
782
+ var tmp2_flatMap_0 = tmp$ret$4;
783
+ var tmp$ret$9;
784
+ // Inline function 'kotlin.collections.flatMapTo' call
785
+ var tmp1_flatMapTo_0 = ArrayList_init_$Create$();
786
+ var tmp$ret$5;
787
+ // Inline function 'kotlin.collections.iterator' call
788
+ tmp$ret$5 = tmp2_flatMap_0.u().c();
789
+ var tmp0_iterator_1 = tmp$ret$5;
790
+ while (tmp0_iterator_1.d()) {
791
+ var element_1 = tmp0_iterator_1.e();
792
+ var tmp$ret$8;
793
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>.<anonymous>' call
794
+ var tmp$ret$6;
795
+ // Inline function 'kotlin.collections.component1' call
796
+ tmp$ret$6 = element_1.v();
797
+ var key = tmp$ret$6;
798
+ var tmp$ret$7;
799
+ // Inline function 'kotlin.collections.component2' call
800
+ tmp$ret$7 = element_1.w();
801
+ var value = tmp$ret$7;
802
+ var tmp0_subject_1 = value;
803
+ var tmp_3;
804
+ if (tmp0_subject_1 instanceof ReferenceObject) {
805
+ tmp_3 = emptyList();
739
806
  } else {
740
- noWhenBranchMatchedException();
807
+ if (tmp0_subject_1 instanceof SchemaObject) {
808
+ tmp_3 = flatten(value, $this, Common_getInstance().f1t([name, key]));
809
+ } else {
810
+ noWhenBranchMatchedException();
811
+ }
741
812
  }
813
+ tmp$ret$8 = tmp_3;
814
+ var list_0 = tmp$ret$8;
815
+ addAll(tmp1_flatMapTo_0, list_0);
742
816
  }
743
- tmp$ret$3 = tmp_1;
744
- var list = tmp$ret$3;
745
- addAll(tmp0_flatMapTo, list);
817
+ tmp$ret$9 = tmp1_flatMapTo_0;
818
+ tmp$ret$10 = tmp$ret$9;
819
+ tmp_2 = tmp$ret$10;
820
+ } else {
821
+ noWhenBranchMatchedException();
746
822
  }
747
- tmp$ret$4 = tmp0_flatMapTo;
748
- tmp$ret$5 = tmp$ret$4;
749
- tmp_0 = tmp$ret$5;
750
823
  }
751
-
752
- var tmp2_elvis_lhs = tmp_0;
753
- var fields = tmp2_elvis_lhs == null ? emptyList() : tmp2_elvis_lhs;
754
- var tmp3_subject = _this__u8e3s4.q1e_1;
755
- var tmp_2;
756
- if (tmp3_subject == null) {
757
- var tmp4_safe_receiver = _this__u8e3s4.p1e_1;
758
- var tmp_3;
759
- if (tmp4_safe_receiver == null) {
760
- tmp_3 = null;
824
+ tmp$ret$11 = tmp_2;
825
+ var list_1 = tmp$ret$11;
826
+ addAll(tmp3_flatMapTo, list_1);
827
+ }
828
+ tmp$ret$12 = tmp3_flatMapTo;
829
+ tmp$ret$13 = tmp$ret$12;
830
+ tmp = plus(tmp_1, tmp$ret$13);
831
+ } else if (!(_this__u8e3s4.r1e_1 == null)) {
832
+ var tmp$ret$18;
833
+ // Inline function 'kotlin.let' call
834
+ var tmp$ret$16;
835
+ // Inline function 'kotlin.collections.map' call
836
+ var tmp6_map = ensureNotNull(_this__u8e3s4.r1e_1);
837
+ var tmp$ret$15;
838
+ // Inline function 'kotlin.collections.mapTo' call
839
+ var tmp5_mapTo = ArrayList_init_$Create$_0(tmp6_map.length);
840
+ var indexedObject = tmp6_map;
841
+ var inductionVariable = 0;
842
+ var last = indexedObject.length;
843
+ while (inductionVariable < last) {
844
+ var item = indexedObject[inductionVariable];
845
+ inductionVariable = inductionVariable + 1 | 0;
846
+ var tmp$ret$14;
847
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
848
+ var tmp0_subject_2 = item;
849
+ var tmp_4;
850
+ if (tmp0_subject_2 instanceof JsonPrimitive) {
851
+ tmp_4 = item.q13();
852
+ } else {
853
+ if (tmp0_subject_2 instanceof JsonArray) {
854
+ throw new NotImplementedError();
761
855
  } else {
762
- var tmp$ret$11;
763
- // Inline function 'kotlin.collections.map' call
764
- var tmp$ret$10;
765
- // Inline function 'kotlin.collections.mapTo' call
766
- var tmp1_mapTo = ArrayList_init_$Create$_0(tmp4_safe_receiver.f());
767
- var tmp$ret$6;
856
+ if (tmp0_subject_2 instanceof JsonObject) {
857
+ throw new NotImplementedError();
858
+ } else {
859
+ noWhenBranchMatchedException();
860
+ }
861
+ }
862
+ }
863
+ tmp$ret$14 = tmp_4;
864
+ tmp5_mapTo.a(tmp$ret$14);
865
+ }
866
+ tmp$ret$15 = tmp5_mapTo;
867
+ tmp$ret$16 = tmp$ret$15;
868
+ var tmp7_let = toSet(tmp$ret$16);
869
+ // Inline function 'kotlin.contracts.contract' call
870
+ var tmp$ret$17;
871
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
872
+ tmp$ret$17 = listOf(new Enum(name, tmp7_let));
873
+ tmp$ret$18 = tmp$ret$17;
874
+ tmp = tmp$ret$18;
875
+ } else {
876
+ var tmp1_subject = _this__u8e3s4.s1e_1;
877
+ var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
878
+ var tmp_5;
879
+ switch (tmp0) {
880
+ case -1:
881
+ case 5:
882
+ var tmp2_safe_receiver = _this__u8e3s4.v1e_1;
883
+ var tmp_6;
884
+ if (tmp2_safe_receiver == null) {
885
+ tmp_6 = null;
886
+ } else {
887
+ var tmp$ret$24;
888
+ // Inline function 'kotlin.collections.flatMap' call
889
+ var tmp$ret$23;
890
+ // Inline function 'kotlin.collections.flatMapTo' call
891
+ var tmp8_flatMapTo = ArrayList_init_$Create$();
892
+ var tmp$ret$19;
768
893
  // Inline function 'kotlin.collections.iterator' call
769
- tmp$ret$6 = tmp4_safe_receiver.u().c();
770
- var tmp0_iterator_0 = tmp$ret$6;
771
- while (tmp0_iterator_0.d()) {
772
- var item = tmp0_iterator_0.e();
773
- var tmp$ret$9;
894
+ tmp$ret$19 = tmp2_safe_receiver.u().c();
895
+ var tmp0_iterator_2 = tmp$ret$19;
896
+ while (tmp0_iterator_2.d()) {
897
+ var element_2 = tmp0_iterator_2.e();
898
+ var tmp$ret$22;
774
899
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
775
- var tmp$ret$7;
900
+ var tmp$ret$20;
776
901
  // Inline function 'kotlin.collections.component1' call
777
- tmp$ret$7 = item.v();
778
- var key_0 = tmp$ret$7;
779
- var tmp$ret$8;
902
+ tmp$ret$20 = element_2.v();
903
+ var key_0 = tmp$ret$20;
904
+ var tmp$ret$21;
780
905
  // Inline function 'kotlin.collections.component2' call
781
- tmp$ret$8 = item.w();
782
- var value_0 = tmp$ret$8;
783
- var tmp0_subject_1 = value_0;
784
- var tmp_4;
785
- if (tmp0_subject_1 instanceof SchemaObject) {
786
- var tmp_5 = new Identifier(key_0);
787
- var tmp_6 = toReference_0(value_0, $this, Common_getInstance().z1s([name, key_0]));
788
- var tmp1_safe_receiver_0 = _this__u8e3s4.k1e_1;
789
- var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : contains(tmp1_safe_receiver_0, key_0);
790
- tmp_4 = new Field(tmp_5, tmp_6, !(tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
906
+ tmp$ret$21 = element_2.w();
907
+ var value_0 = tmp$ret$21;
908
+ var tmp0_subject_3 = value_0;
909
+ var tmp_7;
910
+ if (tmp0_subject_3 instanceof SchemaObject) {
911
+ var tmp1_subject_0 = value_0.s1e_1;
912
+ var tmp0_0 = tmp1_subject_0 == null ? -1 : tmp1_subject_0.q4_1;
913
+ tmp_7 = tmp0_0 === 4 ? emptyList() : flatten(value_0, $this, Common_getInstance().f1t([name, key_0]));
791
914
  } else {
792
- if (tmp0_subject_1 instanceof ReferenceObject) {
793
- var tmp_7 = new Identifier(key_0);
794
- var tmp_8 = new Custom(getReference(value_0, $this), false);
795
- var tmp3_safe_receiver = _this__u8e3s4.k1e_1;
796
- var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
797
- tmp_4 = new Field(tmp_7, tmp_8, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
915
+ if (tmp0_subject_3 instanceof ReferenceObject) {
916
+ tmp_7 = emptyList();
798
917
  } else {
799
918
  noWhenBranchMatchedException();
800
919
  }
801
920
  }
802
- tmp$ret$9 = tmp_4;
803
- tmp1_mapTo.a(tmp$ret$9);
921
+ tmp$ret$22 = tmp_7;
922
+ var list_2 = tmp$ret$22;
923
+ addAll(tmp8_flatMapTo, list_2);
804
924
  }
805
- tmp$ret$10 = tmp1_mapTo;
806
- tmp$ret$11 = tmp$ret$10;
807
- tmp_3 = tmp$ret$11;
925
+ tmp$ret$23 = tmp8_flatMapTo;
926
+ tmp$ret$24 = tmp$ret$23;
927
+ tmp_6 = tmp$ret$24;
808
928
  }
809
- var tmp5_elvis_lhs = tmp_3;
810
- tmp_2 = listOf(new SimpleSchema(name, tmp5_elvis_lhs == null ? emptyList() : tmp5_elvis_lhs));
811
- } else {
812
- tmp_2 = emptyList();
813
- }
814
929
 
815
- var schema = tmp_2;
816
- tmp = plus(schema, fields);
817
- break;
818
- case 4:
819
- var tmp6_safe_receiver = _this__u8e3s4.n1e_1;
820
- var tmp_9;
821
- if (tmp6_safe_receiver == null) {
822
- tmp_9 = null;
823
- } else {
824
- var tmp$ret$13;
825
- // Inline function 'kotlin.let' call
826
- // Inline function 'kotlin.contracts.contract' call
827
- var tmp$ret$12;
828
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatten.<anonymous>' call
829
- var tmp0_subject_2 = tmp6_safe_receiver;
830
- var tmp_10;
831
- if (tmp0_subject_2 instanceof ReferenceObject) {
832
- tmp_10 = emptyList();
930
+ var tmp3_elvis_lhs = tmp_6;
931
+ var fields = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
932
+ var schema = listOf(new Type(name, new Shape(toField(_this__u8e3s4, $this, name))));
933
+ tmp_5 = plus(schema, fields);
934
+ break;
935
+ case 4:
936
+ var it = _this__u8e3s4.t1e_1;
937
+ var tmp_8;
938
+ if (it instanceof ReferenceObject) {
939
+ tmp_8 = emptyList();
833
940
  } else {
834
- if (tmp0_subject_2 instanceof SchemaObject) {
835
- var tmp1_safe_receiver_1 = tmp6_safe_receiver.n1e_1;
836
- tmp_10 = tmp1_safe_receiver_1 == null ? null : flatten_0(tmp1_safe_receiver_1, $this, Common_getInstance().z1s([name, 'array']));
941
+ if (it instanceof SchemaObject) {
942
+ tmp_8 = flatten(it, $this, Common_getInstance().f1t([name, 'Array']));
837
943
  } else {
838
- noWhenBranchMatchedException();
944
+ if (it == null) {
945
+ tmp_8 = emptyList();
946
+ } else {
947
+ noWhenBranchMatchedException();
948
+ }
839
949
  }
840
950
  }
841
- tmp$ret$12 = tmp_10;
842
- tmp$ret$13 = tmp$ret$12;
843
- tmp_9 = tmp$ret$13;
844
- }
845
951
 
846
- var tmp7_elvis_lhs = tmp_9;
847
- tmp = tmp7_elvis_lhs == null ? emptyList() : tmp7_elvis_lhs;
848
- break;
849
- default:
850
- tmp = emptyList();
851
- break;
952
+ tmp_5 = tmp_8;
953
+ break;
954
+ default:
955
+ tmp_5 = emptyList();
956
+ break;
957
+ }
958
+ tmp = tmp_5;
852
959
  }
853
960
  return tmp;
854
961
  }
@@ -859,37 +966,13 @@
859
966
  tmp = flatten(_this__u8e3s4, $this, name);
860
967
  } else {
861
968
  if (tmp0_subject instanceof ReferenceObject) {
862
- tmp = flatten(resolveSchemaObject(_this__u8e3s4, $this).h3_1, $this, name);
969
+ tmp = emptyList();
863
970
  } else {
864
971
  noWhenBranchMatchedException();
865
972
  }
866
973
  }
867
974
  return tmp;
868
975
  }
869
- function SimpleSchema(name, properties) {
870
- this.d1t_1 = name;
871
- this.e1t_1 = properties;
872
- }
873
- protoOf(SimpleSchema).toString = function () {
874
- return 'SimpleSchema(name=' + this.d1t_1 + ', properties=' + this.e1t_1 + ')';
875
- };
876
- protoOf(SimpleSchema).hashCode = function () {
877
- var result = getStringHashCode(this.d1t_1);
878
- result = imul(result, 31) + hashCode(this.e1t_1) | 0;
879
- return result;
880
- };
881
- protoOf(SimpleSchema).equals = function (other) {
882
- if (this === other)
883
- return true;
884
- if (!(other instanceof SimpleSchema))
885
- return false;
886
- var tmp0_other_with_cast = other instanceof SimpleSchema ? other : THROW_CCE();
887
- if (!(this.d1t_1 === tmp0_other_with_cast.d1t_1))
888
- return false;
889
- if (!equals(this.e1t_1, tmp0_other_with_cast.e1t_1))
890
- return false;
891
- return true;
892
- };
893
976
  function toReference(_this__u8e3s4, $this) {
894
977
  var tmp$ret$1;
895
978
  // Inline function 'kotlin.let' call
@@ -899,126 +982,113 @@
899
982
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toReference.<anonymous>' call
900
983
  var referencingObject = tmp0_let.i3();
901
984
  var schema = tmp0_let.j3();
902
- var additionalProperties = schema.q1e_1;
903
985
  var tmp;
904
- if (additionalProperties instanceof BooleanObject) {
905
- throw new NotImplementedError('An operation is not implemented: additionalProperties = true not implemented');
906
- } else {
907
- if (additionalProperties instanceof ReferenceObject) {
908
- tmp = new Custom(Common_getInstance().z1s([getReference(additionalProperties, $this)]), false, true);
986
+ if (!(schema.w1e_1 == null)) {
987
+ var additionalProperties = ensureNotNull(schema.w1e_1);
988
+ var tmp_0;
989
+ if (additionalProperties instanceof BooleanObject) {
990
+ tmp_0 = new Any(false, true);
909
991
  } else {
910
- if (additionalProperties instanceof SchemaObject) {
911
- tmp = new Custom(Common_getInstance().z1s([getReference(referencingObject, $this)]), false, true);
992
+ if (additionalProperties instanceof ReferenceObject) {
993
+ tmp_0 = toMap_0(toReference(additionalProperties, $this));
912
994
  } else {
913
- if (additionalProperties == null) {
914
- var tmp0_subject = schema.m1e_1;
915
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
916
- var tmp_0;
917
- if (tmp0 === 4) {
918
- var items = schema.n1e_1;
919
- var tmp_1;
920
- if (items instanceof ReferenceObject) {
921
- tmp_1 = new Custom(Common_getInstance().z1s([getReference(items, $this)]), true);
922
- } else {
923
- if (items instanceof SchemaObject) {
924
- tmp_1 = new Custom(Common_getInstance().z1s([getReference(referencingObject, $this), 'Array']), true);
925
- } else {
926
- if (items == null) {
927
- var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.k1d_1);
928
- throw IllegalStateException_init_$Create$(toString(tmp0_error));
929
- } else {
930
- noWhenBranchMatchedException();
931
- }
932
- }
933
- }
934
- tmp_0 = tmp_1;
935
- } else {
936
- tmp_0 = new Custom(Common_getInstance().z1s([getReference(referencingObject, $this)]), false);
937
- }
938
- tmp = tmp_0;
995
+ if (additionalProperties instanceof SchemaObject) {
996
+ tmp_0 = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this)]), false, true);
939
997
  } else {
940
998
  noWhenBranchMatchedException();
941
999
  }
942
1000
  }
943
1001
  }
1002
+ tmp = tmp_0;
1003
+ } else if (!(schema.r1e_1 == null)) {
1004
+ tmp = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this)]), false, false);
1005
+ } else if (isPrimitive(schema.s1e_1)) {
1006
+ tmp = new Primitive(toPrimitive(ensureNotNull(schema.s1e_1), $this), false, false);
1007
+ } else {
1008
+ var tmp0_subject = schema.s1e_1;
1009
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
1010
+ var tmp_1;
1011
+ if (tmp0 === 4) {
1012
+ var items = schema.t1e_1;
1013
+ var tmp_2;
1014
+ if (items instanceof ReferenceObject) {
1015
+ tmp_2 = new Custom(Common_getInstance().f1t([getReference(items, $this)]), true);
1016
+ } else {
1017
+ if (items instanceof SchemaObject) {
1018
+ tmp_2 = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this), 'Array']), true);
1019
+ } else {
1020
+ if (items == null) {
1021
+ var tmp0_error = 'items cannot be null when type is array: ' + new Ref(_this__u8e3s4.q1d_1);
1022
+ throw IllegalStateException_init_$Create$(toString(tmp0_error));
1023
+ } else {
1024
+ noWhenBranchMatchedException();
1025
+ }
1026
+ }
1027
+ }
1028
+ tmp_1 = tmp_2;
1029
+ } else {
1030
+ tmp_1 = new Custom(Common_getInstance().f1t([getReference(referencingObject, $this)]), false);
1031
+ }
1032
+ tmp = tmp_1;
944
1033
  }
945
1034
  tmp$ret$0 = tmp;
946
1035
  tmp$ret$1 = tmp$ret$0;
947
1036
  return tmp$ret$1;
948
1037
  }
949
1038
  function toReference_0(_this__u8e3s4, $this, name) {
950
- var type = _this__u8e3s4.m1e_1;
951
- var tmp0 = type == null ? -1 : type.q4_1;
952
1039
  var tmp;
953
- switch (tmp0) {
954
- case 0:
955
- case 2:
956
- case 1:
957
- case 3:
958
- tmp = new Primitive(toPrimitive(type, $this), false);
959
- break;
960
- case -1:
961
- case 5:
962
- var tmp0_safe_receiver = _this__u8e3s4.q1e_1;
963
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_0(tmp0_safe_receiver, $this);
964
- var t = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1e_1;
965
- var tmp0_0 = t == null ? -1 : t.q4_1;
966
- switch (tmp0_0) {
967
- case 0:
968
- case 2:
969
- case 1:
970
- case 3:
971
- tmp = new Primitive(toPrimitive(t, $this), false, !(_this__u8e3s4.q1e_1 == null));
972
- break;
973
- default:
974
- tmp = new Custom(name, false, !(_this__u8e3s4.q1e_1 == null));
975
- break;
976
- }
977
-
978
- break;
979
- case 4:
980
- var tmp2_safe_receiver = _this__u8e3s4.n1e_1;
981
- var resolve_1 = tmp2_safe_receiver == null ? null : resolve(tmp2_safe_receiver, $this);
982
- var tmp3_safe_receiver = resolve_1;
983
- var t_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m1e_1;
984
- var tmp0_1 = t_0 == null ? -1 : t_0.q4_1;
985
- var tmp_0;
986
- switch (tmp0_1) {
987
- case 0:
988
- case 1:
989
- case 2:
990
- case 3:
991
- tmp_0 = new Primitive(toPrimitive(t_0, $this), true);
992
- break;
993
- default:
994
- var it = _this__u8e3s4.n1e_1;
995
- var tmp_1;
996
- if (it instanceof ReferenceObject) {
997
- tmp_1 = toReference(it, $this).fl(VOID, true);
1040
+ if (!(_this__u8e3s4.r1e_1 == null)) {
1041
+ tmp = new Custom(name, false, !(_this__u8e3s4.w1e_1 == null));
1042
+ } else {
1043
+ var type = _this__u8e3s4.s1e_1;
1044
+ var tmp0 = type == null ? -1 : type.q4_1;
1045
+ var tmp_0;
1046
+ switch (tmp0) {
1047
+ case 0:
1048
+ case 2:
1049
+ case 1:
1050
+ case 3:
1051
+ tmp_0 = new Primitive(toPrimitive(type, $this), false, !(_this__u8e3s4.w1e_1 == null));
1052
+ break;
1053
+ case -1:
1054
+ case 5:
1055
+ var tmp_1;
1056
+ var tmp_2 = _this__u8e3s4.w1e_1;
1057
+ if (tmp_2 instanceof BooleanObject) {
1058
+ tmp_1 = new Any(false, !(_this__u8e3s4.w1e_1 == null));
1059
+ } else {
1060
+ tmp_1 = new Custom(name, false, !(_this__u8e3s4.w1e_1 == null));
1061
+ }
1062
+
1063
+ tmp_0 = tmp_1;
1064
+ break;
1065
+ case 4:
1066
+ var it = _this__u8e3s4.t1e_1;
1067
+ var tmp_3;
1068
+ if (it instanceof ReferenceObject) {
1069
+ tmp_3 = toIterable(toReference(it, $this));
1070
+ } else {
1071
+ if (it instanceof SchemaObject) {
1072
+ tmp_3 = toIterable(toReference_0(it, $this, name));
998
1073
  } else {
999
- if (it instanceof SchemaObject) {
1000
- tmp_1 = toReference_0(it, $this, name);
1074
+ if (it == null) {
1075
+ var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
1076
+ throw IllegalStateException_init_$Create$(toString(tmp0_error));
1001
1077
  } else {
1002
- if (it == null) {
1003
- var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
1004
- throw IllegalStateException_init_$Create$(toString(tmp0_error));
1005
- } else {
1006
- noWhenBranchMatchedException();
1007
- }
1078
+ noWhenBranchMatchedException();
1008
1079
  }
1009
1080
  }
1081
+ }
1010
1082
 
1011
- tmp_0 = tmp_1;
1012
- break;
1013
- }
1014
-
1015
- tmp = tmp_0;
1016
- break;
1017
- case 6:
1018
- throw new NotImplementedError('An operation is not implemented: Type file not implemented');
1019
- default:
1020
- noWhenBranchMatchedException();
1021
- break;
1083
+ tmp_0 = tmp_3;
1084
+ break;
1085
+ case 6:
1086
+ throw new NotImplementedError('An operation is not implemented: Type file not implemented');
1087
+ default:
1088
+ noWhenBranchMatchedException();
1089
+ break;
1090
+ }
1091
+ tmp = tmp_0;
1022
1092
  }
1023
1093
  return tmp;
1024
1094
  }
@@ -1026,7 +1096,7 @@
1026
1096
  var tmp$ret$2;
1027
1097
  // Inline function 'kotlin.collections.associateWith' call
1028
1098
  var tmp0_associateWith = values();
1029
- var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
1099
+ var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
1030
1100
  var tmp$ret$1;
1031
1101
  // Inline function 'kotlin.collections.associateWithTo' call
1032
1102
  var indexedObject = tmp0_associateWith;
@@ -1042,28 +1112,28 @@
1042
1112
  var tmp;
1043
1113
  switch (tmp0) {
1044
1114
  case 0:
1045
- tmp = _this__u8e3s4.h1b_1;
1115
+ tmp = _this__u8e3s4.n1b_1;
1046
1116
  break;
1047
1117
  case 1:
1048
- tmp = _this__u8e3s4.j1b_1;
1118
+ tmp = _this__u8e3s4.p1b_1;
1049
1119
  break;
1050
1120
  case 2:
1051
- tmp = _this__u8e3s4.i1b_1;
1121
+ tmp = _this__u8e3s4.o1b_1;
1052
1122
  break;
1053
1123
  case 3:
1054
- tmp = _this__u8e3s4.k1b_1;
1124
+ tmp = _this__u8e3s4.q1b_1;
1055
1125
  break;
1056
1126
  case 4:
1057
- tmp = _this__u8e3s4.l1b_1;
1127
+ tmp = _this__u8e3s4.r1b_1;
1058
1128
  break;
1059
1129
  case 5:
1060
- tmp = _this__u8e3s4.m1b_1;
1130
+ tmp = _this__u8e3s4.s1b_1;
1061
1131
  break;
1062
1132
  case 6:
1063
- tmp = _this__u8e3s4.n1b_1;
1133
+ tmp = _this__u8e3s4.t1b_1;
1064
1134
  break;
1065
1135
  case 7:
1066
- tmp = _this__u8e3s4.o1b_1;
1136
+ tmp = _this__u8e3s4.u1b_1;
1067
1137
  break;
1068
1138
  default:
1069
1139
  noWhenBranchMatchedException();
@@ -1077,7 +1147,7 @@
1077
1147
  return filterNotNullValues(tmp$ret$2);
1078
1148
  }
1079
1149
  function getReference(_this__u8e3s4, $this) {
1080
- return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.k1d_1), ['/']).h(2);
1150
+ return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.q1d_1), ['/']).h(2);
1081
1151
  }
1082
1152
  function toPrimitive(_this__u8e3s4, $this) {
1083
1153
  var tmp0_subject = _this__u8e3s4;
@@ -1101,7 +1171,61 @@
1101
1171
  }
1102
1172
  return tmp;
1103
1173
  }
1104
- function toField(_this__u8e3s4, $this) {
1174
+ function toField(_this__u8e3s4, $this, name) {
1175
+ var tmp$ret$6;
1176
+ // Inline function 'kotlin.collections.map' call
1177
+ var tmp$ret$0;
1178
+ // Inline function 'kotlin.collections.orEmpty' call
1179
+ var tmp0_orEmpty = _this__u8e3s4.v1e_1;
1180
+ var tmp0_elvis_lhs = tmp0_orEmpty;
1181
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
1182
+ var tmp2_map = tmp$ret$0;
1183
+ var tmp$ret$5;
1184
+ // Inline function 'kotlin.collections.mapTo' call
1185
+ var tmp1_mapTo = ArrayList_init_$Create$_0(tmp2_map.f());
1186
+ var tmp$ret$1;
1187
+ // Inline function 'kotlin.collections.iterator' call
1188
+ tmp$ret$1 = tmp2_map.u().c();
1189
+ var tmp0_iterator = tmp$ret$1;
1190
+ while (tmp0_iterator.d()) {
1191
+ var item = tmp0_iterator.e();
1192
+ var tmp$ret$4;
1193
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
1194
+ var tmp$ret$2;
1195
+ // Inline function 'kotlin.collections.component1' call
1196
+ tmp$ret$2 = item.v();
1197
+ var key = tmp$ret$2;
1198
+ var tmp$ret$3;
1199
+ // Inline function 'kotlin.collections.component2' call
1200
+ tmp$ret$3 = item.w();
1201
+ var value = tmp$ret$3;
1202
+ var tmp0_subject = value;
1203
+ var tmp;
1204
+ if (tmp0_subject instanceof SchemaObject) {
1205
+ var tmp_0 = new Identifier(key);
1206
+ var tmp_1 = toReference_0(value, $this, Common_getInstance().f1t([name, key]));
1207
+ var tmp1_safe_receiver = _this__u8e3s4.q1e_1;
1208
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key);
1209
+ tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
1210
+ } else {
1211
+ if (tmp0_subject instanceof ReferenceObject) {
1212
+ var tmp_2 = new Identifier(key);
1213
+ var tmp_3 = toReference(value, $this);
1214
+ var tmp3_safe_receiver = _this__u8e3s4.q1e_1;
1215
+ var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key);
1216
+ tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
1217
+ } else {
1218
+ noWhenBranchMatchedException();
1219
+ }
1220
+ }
1221
+ tmp$ret$4 = tmp;
1222
+ tmp1_mapTo.a(tmp$ret$4);
1223
+ }
1224
+ tmp$ret$5 = tmp1_mapTo;
1225
+ tmp$ret$6 = tmp$ret$5;
1226
+ return tmp$ret$6;
1227
+ }
1228
+ function toField_0(_this__u8e3s4, $this) {
1105
1229
  var tmp$ret$7;
1106
1230
  // Inline function 'kotlin.let' call
1107
1231
  var tmp$ret$5;
@@ -1110,7 +1234,7 @@
1110
1234
  // Inline function 'kotlin.contracts.contract' call
1111
1235
  var tmp$ret$4;
1112
1236
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
1113
- var type = tmp0_let.p1c_1;
1237
+ var type = tmp0_let.v1c_1;
1114
1238
  var tmp0 = type == null ? -1 : type.q4_1;
1115
1239
  var tmp;
1116
1240
  switch (tmp0) {
@@ -1130,9 +1254,9 @@
1130
1254
  tmp = tmp$ret$1;
1131
1255
  break;
1132
1256
  case 4:
1133
- var tmp0_safe_receiver = tmp0_let.q1c_1;
1257
+ var tmp0_safe_receiver = tmp0_let.w1c_1;
1134
1258
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve(tmp0_safe_receiver, $this);
1135
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1e_1;
1259
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.s1e_1;
1136
1260
  var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : toPrimitive(tmp2_safe_receiver, $this);
1137
1261
  var tmp_0;
1138
1262
  if (tmp3_safe_receiver == null) {
@@ -1174,8 +1298,8 @@
1174
1298
  // Inline function 'kotlin.contracts.contract' call
1175
1299
  var tmp$ret$6;
1176
1300
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toField.<anonymous>' call
1177
- var tmp_2 = new Identifier(_this__u8e3s4.k1c_1);
1178
- var tmp0_elvis_lhs = _this__u8e3s4.n1c_1;
1301
+ var tmp_2 = new Identifier(_this__u8e3s4.q1c_1);
1302
+ var tmp0_elvis_lhs = _this__u8e3s4.t1c_1;
1179
1303
  tmp$ret$6 = new Field(tmp_2, tmp1_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
1180
1304
  tmp$ret$7 = tmp$ret$6;
1181
1305
  return tmp$ret$7;
@@ -1228,7 +1352,7 @@
1228
1352
  var element = tmp0_iterator_0.e();
1229
1353
  var tmp$ret$3;
1230
1354
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
1231
- tmp$ret$3 = element.k1c_1 === param;
1355
+ tmp$ret$3 = element.q1c_1 === param;
1232
1356
  if (tmp$ret$3) {
1233
1357
  tmp$ret$4 = element;
1234
1358
  break $l$block;
@@ -1247,7 +1371,7 @@
1247
1371
  // Inline function 'kotlin.contracts.contract' call
1248
1372
  var tmp$ret$6;
1249
1373
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
1250
- var tmp0_safe_receiver_0 = tmp0_safe_receiver.p1c_1;
1374
+ var tmp0_safe_receiver_0 = tmp0_safe_receiver.v1c_1;
1251
1375
  tmp$ret$6 = tmp0_safe_receiver_0 == null ? null : toPrimitive(tmp0_safe_receiver_0, $this);
1252
1376
  tmp$ret$7 = tmp$ret$6;
1253
1377
  tmp_2 = tmp$ret$7;
@@ -1287,7 +1411,7 @@
1287
1411
  }
1288
1412
  function toName(_this__u8e3s4, $this, segments, method) {
1289
1413
  var tmp0_safe_receiver = _this__u8e3s4;
1290
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1b_1;
1414
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1c_1;
1291
1415
  var tmp;
1292
1416
  if (tmp1_safe_receiver == null) {
1293
1417
  tmp = null;
@@ -1297,7 +1421,7 @@
1297
1421
  // Inline function 'kotlin.contracts.contract' call
1298
1422
  var tmp$ret$0;
1299
1423
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
1300
- tmp$ret$0 = Common_getInstance().z1s([tmp1_safe_receiver]);
1424
+ tmp$ret$0 = Common_getInstance().f1t([tmp1_safe_receiver]);
1301
1425
  tmp$ret$1 = tmp$ret$0;
1302
1426
  tmp = tmp$ret$1;
1303
1427
  }
@@ -1306,7 +1430,7 @@
1306
1430
  if (tmp2_elvis_lhs == null) {
1307
1431
  var tmp$ret$3;
1308
1432
  // Inline function 'kotlin.let' call
1309
- var tmp0_let = joinToString_0(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda);
1433
+ var tmp0_let = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda);
1310
1434
  // Inline function 'kotlin.contracts.contract' call
1311
1435
  var tmp$ret$2;
1312
1436
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.toName.<anonymous>' call
@@ -1319,21 +1443,21 @@
1319
1443
  return tmp_0;
1320
1444
  }
1321
1445
  function FlattenRequest(path, pathItem, method, operation, type) {
1322
- this.f1t_1 = path;
1323
- this.g1t_1 = pathItem;
1324
- this.h1t_1 = method;
1325
- this.i1t_1 = operation;
1326
- this.j1t_1 = type;
1446
+ this.j1t_1 = path;
1447
+ this.k1t_1 = pathItem;
1448
+ this.l1t_1 = method;
1449
+ this.m1t_1 = operation;
1450
+ this.n1t_1 = type;
1327
1451
  }
1328
1452
  protoOf(FlattenRequest).toString = function () {
1329
- return 'FlattenRequest(path=' + new Path(this.f1t_1) + ', pathItem=' + this.g1t_1 + ', method=' + this.h1t_1 + ', operation=' + this.i1t_1 + ', type=' + this.j1t_1 + ')';
1453
+ return 'FlattenRequest(path=' + new Path(this.j1t_1) + ', pathItem=' + this.k1t_1 + ', method=' + this.l1t_1 + ', operation=' + this.m1t_1 + ', type=' + this.n1t_1 + ')';
1330
1454
  };
1331
1455
  protoOf(FlattenRequest).hashCode = function () {
1332
- var result = Path__hashCode_impl_go73kd(this.f1t_1);
1333
- result = imul(result, 31) + this.g1t_1.hashCode() | 0;
1334
- result = imul(result, 31) + this.h1t_1.hashCode() | 0;
1335
- result = imul(result, 31) + this.i1t_1.hashCode() | 0;
1336
- result = imul(result, 31) + getStringHashCode(this.j1t_1) | 0;
1456
+ var result = Path__hashCode_impl_go73kd(this.j1t_1);
1457
+ result = imul(result, 31) + this.k1t_1.hashCode() | 0;
1458
+ result = imul(result, 31) + this.l1t_1.hashCode() | 0;
1459
+ result = imul(result, 31) + this.m1t_1.hashCode() | 0;
1460
+ result = imul(result, 31) + getStringHashCode(this.n1t_1) | 0;
1337
1461
  return result;
1338
1462
  };
1339
1463
  protoOf(FlattenRequest).equals = function (other) {
@@ -1342,15 +1466,15 @@
1342
1466
  if (!(other instanceof FlattenRequest))
1343
1467
  return false;
1344
1468
  var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
1345
- if (!(this.f1t_1 === tmp0_other_with_cast.f1t_1))
1469
+ if (!(this.j1t_1 === tmp0_other_with_cast.j1t_1))
1346
1470
  return false;
1347
- if (!this.g1t_1.equals(tmp0_other_with_cast.g1t_1))
1471
+ if (!this.k1t_1.equals(tmp0_other_with_cast.k1t_1))
1348
1472
  return false;
1349
- if (!this.h1t_1.equals(tmp0_other_with_cast.h1t_1))
1473
+ if (!this.l1t_1.equals(tmp0_other_with_cast.l1t_1))
1350
1474
  return false;
1351
- if (!this.i1t_1.equals(tmp0_other_with_cast.i1t_1))
1475
+ if (!this.m1t_1.equals(tmp0_other_with_cast.m1t_1))
1352
1476
  return false;
1353
- if (!(this.j1t_1 === tmp0_other_with_cast.j1t_1))
1477
+ if (!(this.n1t_1 === tmp0_other_with_cast.n1t_1))
1354
1478
  return false;
1355
1479
  return true;
1356
1480
  };
@@ -1359,7 +1483,7 @@
1359
1483
  // Inline function 'kotlin.collections.flatMap' call
1360
1484
  var tmp$ret$15;
1361
1485
  // Inline function 'kotlin.collections.flatMap' call
1362
- var tmp1_flatMap = _this__u8e3s4.q1a_1;
1486
+ var tmp1_flatMap = _this__u8e3s4.w1a_1;
1363
1487
  var tmp$ret$14;
1364
1488
  // Inline function 'kotlin.collections.flatMapTo' call
1365
1489
  var tmp0_flatMapTo = ArrayList_init_$Create$();
@@ -1373,7 +1497,7 @@
1373
1497
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapRequests.<anonymous>' call
1374
1498
  var tmp$ret$1;
1375
1499
  // Inline function 'kotlin.collections.component1' call
1376
- tmp$ret$1 = element.v().b1b_1;
1500
+ tmp$ret$1 = element.v().h1b_1;
1377
1501
  var path = tmp$ret$1;
1378
1502
  var tmp$ret$2;
1379
1503
  // Inline function 'kotlin.collections.component2' call
@@ -1405,8 +1529,8 @@
1405
1529
  // Inline function 'kotlin.collections.map' call
1406
1530
  var tmp$ret$6;
1407
1531
  // Inline function 'kotlin.collections.orEmpty' call
1408
- var tmp0_elvis_lhs = _this__u8e3s4.o1a_1;
1409
- var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.z1b_1 : tmp0_elvis_lhs;
1532
+ var tmp0_elvis_lhs = _this__u8e3s4.u1a_1;
1533
+ var tmp0_orEmpty = tmp0_elvis_lhs == null ? operation.f1c_1 : tmp0_elvis_lhs;
1410
1534
  var tmp0_elvis_lhs_0 = tmp0_orEmpty;
1411
1535
  tmp$ret$6 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
1412
1536
  var tmp2_map = tmp$ret$6;
@@ -1453,25 +1577,25 @@
1453
1577
  return tmp$ret$18;
1454
1578
  }
1455
1579
  function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
1456
- this.k1t_1 = path;
1457
- this.l1t_1 = pathItem;
1458
- this.m1t_1 = method;
1459
- this.n1t_1 = operation;
1460
- this.o1t_1 = statusCode;
1461
- this.p1t_1 = response;
1462
- this.q1t_1 = type;
1580
+ this.o1t_1 = path;
1581
+ this.p1t_1 = pathItem;
1582
+ this.q1t_1 = method;
1583
+ this.r1t_1 = operation;
1584
+ this.s1t_1 = statusCode;
1585
+ this.t1t_1 = response;
1586
+ this.u1t_1 = type;
1463
1587
  }
1464
1588
  protoOf(FlattenResponse).toString = function () {
1465
- return 'FlattenResponse(path=' + new Path(this.k1t_1) + ', pathItem=' + this.l1t_1 + ', method=' + this.m1t_1 + ', operation=' + this.n1t_1 + ', statusCode=' + new StatusCode(this.o1t_1) + ', response=' + this.p1t_1 + ', type=' + this.q1t_1 + ')';
1589
+ return 'FlattenResponse(path=' + new Path(this.o1t_1) + ', pathItem=' + this.p1t_1 + ', method=' + this.q1t_1 + ', operation=' + this.r1t_1 + ', statusCode=' + new StatusCode(this.s1t_1) + ', response=' + this.t1t_1 + ', type=' + this.u1t_1 + ')';
1466
1590
  };
1467
1591
  protoOf(FlattenResponse).hashCode = function () {
1468
- var result = Path__hashCode_impl_go73kd(this.k1t_1);
1469
- result = imul(result, 31) + this.l1t_1.hashCode() | 0;
1470
- result = imul(result, 31) + this.m1t_1.hashCode() | 0;
1471
- result = imul(result, 31) + this.n1t_1.hashCode() | 0;
1472
- result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.o1t_1) | 0;
1473
- result = imul(result, 31) + hashCode(this.p1t_1) | 0;
1474
- result = imul(result, 31) + getStringHashCode(this.q1t_1) | 0;
1592
+ var result = Path__hashCode_impl_go73kd(this.o1t_1);
1593
+ result = imul(result, 31) + this.p1t_1.hashCode() | 0;
1594
+ result = imul(result, 31) + this.q1t_1.hashCode() | 0;
1595
+ result = imul(result, 31) + this.r1t_1.hashCode() | 0;
1596
+ result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.s1t_1) | 0;
1597
+ result = imul(result, 31) + hashCode(this.t1t_1) | 0;
1598
+ result = imul(result, 31) + getStringHashCode(this.u1t_1) | 0;
1475
1599
  return result;
1476
1600
  };
1477
1601
  protoOf(FlattenResponse).equals = function (other) {
@@ -1480,19 +1604,19 @@
1480
1604
  if (!(other instanceof FlattenResponse))
1481
1605
  return false;
1482
1606
  var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
1483
- if (!(this.k1t_1 === tmp0_other_with_cast.k1t_1))
1607
+ if (!(this.o1t_1 === tmp0_other_with_cast.o1t_1))
1484
1608
  return false;
1485
- if (!this.l1t_1.equals(tmp0_other_with_cast.l1t_1))
1609
+ if (!this.p1t_1.equals(tmp0_other_with_cast.p1t_1))
1486
1610
  return false;
1487
- if (!this.m1t_1.equals(tmp0_other_with_cast.m1t_1))
1611
+ if (!this.q1t_1.equals(tmp0_other_with_cast.q1t_1))
1488
1612
  return false;
1489
- if (!this.n1t_1.equals(tmp0_other_with_cast.n1t_1))
1613
+ if (!this.r1t_1.equals(tmp0_other_with_cast.r1t_1))
1490
1614
  return false;
1491
- if (!(this.o1t_1 === tmp0_other_with_cast.o1t_1))
1615
+ if (!(this.s1t_1 === tmp0_other_with_cast.s1t_1))
1492
1616
  return false;
1493
- if (!equals(this.p1t_1, tmp0_other_with_cast.p1t_1))
1617
+ if (!equals(this.t1t_1, tmp0_other_with_cast.t1t_1))
1494
1618
  return false;
1495
- if (!(this.q1t_1 === tmp0_other_with_cast.q1t_1))
1619
+ if (!(this.u1t_1 === tmp0_other_with_cast.u1t_1))
1496
1620
  return false;
1497
1621
  return true;
1498
1622
  };
@@ -1501,7 +1625,7 @@
1501
1625
  // Inline function 'kotlin.collections.flatMap' call
1502
1626
  var tmp$ret$22;
1503
1627
  // Inline function 'kotlin.collections.flatMap' call
1504
- var tmp1_flatMap = _this__u8e3s4.q1a_1;
1628
+ var tmp1_flatMap = _this__u8e3s4.w1a_1;
1505
1629
  var tmp$ret$21;
1506
1630
  // Inline function 'kotlin.collections.flatMapTo' call
1507
1631
  var tmp0_flatMapTo = ArrayList_init_$Create$();
@@ -1515,7 +1639,7 @@
1515
1639
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>' call
1516
1640
  var tmp$ret$1;
1517
1641
  // Inline function 'kotlin.collections.component1' call
1518
- tmp$ret$1 = element.v().b1b_1;
1642
+ tmp$ret$1 = element.v().h1b_1;
1519
1643
  var path = tmp$ret$1;
1520
1644
  var tmp$ret$2;
1521
1645
  // Inline function 'kotlin.collections.component2' call
@@ -1547,7 +1671,7 @@
1547
1671
  // Inline function 'kotlin.collections.flatMap' call
1548
1672
  var tmp$ret$6;
1549
1673
  // Inline function 'kotlin.collections.orEmpty' call
1550
- var tmp0_orEmpty = operation.c1c_1;
1674
+ var tmp0_orEmpty = operation.i1c_1;
1551
1675
  var tmp0_elvis_lhs = tmp0_orEmpty;
1552
1676
  tmp$ret$6 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
1553
1677
  var tmp2_flatMap = tmp$ret$6;
@@ -1564,7 +1688,7 @@
1564
1688
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
1565
1689
  var tmp$ret$8;
1566
1690
  // Inline function 'kotlin.collections.component1' call
1567
- tmp$ret$8 = element_1.v().u1e_1;
1691
+ tmp$ret$8 = element_1.v().a1f_1;
1568
1692
  var statusCode = tmp$ret$8;
1569
1693
  var tmp$ret$9;
1570
1694
  // Inline function 'kotlin.collections.component2' call
@@ -1574,8 +1698,8 @@
1574
1698
  // Inline function 'kotlin.collections.map' call
1575
1699
  var tmp$ret$10;
1576
1700
  // Inline function 'kotlin.collections.orEmpty' call
1577
- var tmp0_elvis_lhs_0 = _this__u8e3s4.p1a_1;
1578
- var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.a1c_1 : tmp0_elvis_lhs_0;
1701
+ var tmp0_elvis_lhs_0 = _this__u8e3s4.v1a_1;
1702
+ var tmp0_orEmpty_0 = tmp0_elvis_lhs_0 == null ? operation.g1c_1 : tmp0_elvis_lhs_0;
1579
1703
  var tmp0_elvis_lhs_1 = tmp0_orEmpty_0;
1580
1704
  tmp$ret$10 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
1581
1705
  var tmp2_map = tmp$ret$10;
@@ -1629,7 +1753,7 @@
1629
1753
  }
1630
1754
  function OpenApiParser$parseRequestBody$lambda(this$0) {
1631
1755
  return function (req) {
1632
- var tmp0_safe_receiver = req.i1t_1.b1c_1;
1756
+ var tmp0_safe_receiver = req.m1t_1.h1c_1;
1633
1757
  var tmp;
1634
1758
  if (tmp0_safe_receiver == null) {
1635
1759
  tmp = null;
@@ -1666,7 +1790,7 @@
1666
1790
  var element = tmp0_iterator_0.e();
1667
1791
  var tmp$ret$3;
1668
1792
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
1669
- tmp$ret$3 = element.l1c_1.equals(ParameterLocation_BODY_getInstance());
1793
+ tmp$ret$3 = element.r1c_1.equals(ParameterLocation_BODY_getInstance());
1670
1794
  if (tmp$ret$3) {
1671
1795
  tmp1_filterTo.a(element);
1672
1796
  }
@@ -1680,46 +1804,39 @@
1680
1804
  if (tmp2_safe_receiver == null) {
1681
1805
  tmp_1 = null;
1682
1806
  } else {
1683
- var tmp$ret$11;
1807
+ var tmp$ret$9;
1684
1808
  // Inline function 'kotlin.collections.flatMap' call
1685
- var tmp$ret$10;
1809
+ var tmp$ret$8;
1686
1810
  // Inline function 'kotlin.collections.flatMapTo' call
1687
1811
  var tmp2_flatMapTo = ArrayList_init_$Create$();
1688
1812
  var tmp0_iterator_1 = tmp2_safe_receiver.c();
1689
1813
  while (tmp0_iterator_1.d()) {
1690
1814
  var element_0 = tmp0_iterator_1.e();
1691
- var tmp$ret$9;
1815
+ var tmp$ret$7;
1692
1816
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
1693
- var parameters = plus(resolveParameters_0(req.g1t_1, this$0), resolveParameters(req.i1t_1, this$0));
1694
- var segments = toSegments(req.f1t_1, this$0, parameters);
1695
- var name = toName(req.i1t_1, this$0, segments, req.h1t_1);
1696
- var schema = element_0.o1c_1;
1817
+ var parameters = plus(resolveParameters_0(req.k1t_1, this$0), resolveParameters(req.m1t_1, this$0));
1818
+ var segments = toSegments(req.j1t_1, this$0, parameters);
1819
+ var name = toName(req.m1t_1, this$0, segments, req.l1t_1);
1820
+ var schema = element_0.u1c_1;
1697
1821
  var tmp_2;
1698
1822
  if (schema instanceof SchemaObject) {
1699
- var tmp0_subject = schema.m1e_1;
1823
+ var tmp0_subject = schema.s1e_1;
1700
1824
  var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
1701
1825
  var tmp_3;
1702
1826
  switch (tmp0) {
1703
1827
  case -1:
1704
1828
  case 5:
1705
- var tmp$ret$8;
1706
- // Inline function 'kotlin.collections.map' call
1707
- var tmp1_map = flatten(schema, this$0, Common_getInstance().z1s([name, 'RequestBody']));
1708
- var tmp$ret$7;
1709
- // Inline function 'kotlin.collections.mapTo' call
1710
- var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
1711
- var tmp0_iterator_2 = tmp1_map.c();
1712
- while (tmp0_iterator_2.d()) {
1713
- var item_0 = tmp0_iterator_2.e();
1714
- var tmp$ret$6;
1715
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
1716
- tmp$ret$6 = new Type(item_0.d1t_1, new Shape(item_0.e1t_1));
1717
- tmp0_mapTo_0.a(tmp$ret$6);
1718
- }
1719
- tmp$ret$7 = tmp0_mapTo_0;
1720
- tmp$ret$8 = tmp$ret$7;
1829
+ tmp_3 = flatten(schema, this$0, Common_getInstance().f1t([name, 'RequestBody']));
1830
+ break;
1831
+ case 4:
1832
+ var tmp$ret$6;
1833
+ // Inline function 'kotlin.collections.orEmpty' call
1834
+ var tmp1_safe_receiver_0 = schema.t1e_1;
1835
+ var tmp0_orEmpty = tmp1_safe_receiver_0 == null ? null : flatten_0(tmp1_safe_receiver_0, this$0, Common_getInstance().f1t([name, 'RequestBody']));
1836
+ var tmp0_elvis_lhs = tmp0_orEmpty;
1837
+ tmp$ret$6 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
1721
1838
 
1722
- tmp_3 = tmp$ret$8;
1839
+ tmp_3 = tmp$ret$6;
1723
1840
  break;
1724
1841
  default:
1725
1842
  tmp_3 = emptyList();
@@ -1727,23 +1844,15 @@
1727
1844
  }
1728
1845
  tmp_2 = tmp_3;
1729
1846
  } else {
1730
- if (schema instanceof ReferenceObject) {
1731
- tmp_2 = emptyList();
1732
- } else {
1733
- if (schema == null) {
1734
- tmp_2 = emptyList();
1735
- } else {
1736
- noWhenBranchMatchedException();
1737
- }
1738
- }
1847
+ tmp_2 = emptyList();
1739
1848
  }
1740
- tmp$ret$9 = tmp_2;
1741
- var list = tmp$ret$9;
1849
+ tmp$ret$7 = tmp_2;
1850
+ var list = tmp$ret$7;
1742
1851
  addAll(tmp2_flatMapTo, list);
1743
1852
  }
1744
- tmp$ret$10 = tmp2_flatMapTo;
1745
- tmp$ret$11 = tmp$ret$10;
1746
- tmp_1 = tmp$ret$11;
1853
+ tmp$ret$8 = tmp2_flatMapTo;
1854
+ tmp$ret$9 = tmp$ret$8;
1855
+ tmp_1 = tmp$ret$9;
1747
1856
  }
1748
1857
  var tmp3_elvis_lhs = tmp_1;
1749
1858
  return tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
@@ -1751,40 +1860,30 @@
1751
1860
  }
1752
1861
  function OpenApiParser$parseResponseBody$lambda(this$0) {
1753
1862
  return function (res) {
1754
- var response = resolve_1(res.p1t_1, this$0);
1755
- var parameters = plus(resolveParameters_0(res.l1t_1, this$0), resolveParameters(res.n1t_1, this$0));
1756
- var segments = toSegments(res.k1t_1, this$0, parameters);
1757
- var name = toName(res.n1t_1, this$0, segments, res.m1t_1);
1758
- var schema = response.y1e_1;
1863
+ var response = resolve_1(res.t1t_1, this$0);
1864
+ var parameters = plus(resolveParameters_0(res.p1t_1, this$0), resolveParameters(res.r1t_1, this$0));
1865
+ var segments = toSegments(res.o1t_1, this$0, parameters);
1866
+ var name = toName(res.r1t_1, this$0, segments, res.q1t_1);
1867
+ var schema = response.e1f_1;
1759
1868
  var tmp;
1760
1869
  if (schema instanceof SchemaObject) {
1761
- var tmp0_subject = schema.m1e_1;
1870
+ var tmp0_subject = schema.s1e_1;
1762
1871
  var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
1763
1872
  var tmp_0;
1764
1873
  switch (tmp0) {
1765
1874
  case -1:
1766
1875
  case 5:
1767
- var tmp$ret$2;
1768
- // Inline function 'kotlin.collections.map' call
1769
- var tmp1_safe_receiver = schema.q1e_1;
1770
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_0(tmp1_safe_receiver, this$0);
1771
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten(tmp2_safe_receiver, this$0, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu(res.o1t_1), 'ResponseBody']));
1772
- var tmp1_map = tmp3_elvis_lhs == null ? flatten(schema, this$0, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu(res.o1t_1), 'ResponseBody'])) : tmp3_elvis_lhs;
1773
- var tmp$ret$1;
1774
- // Inline function 'kotlin.collections.mapTo' call
1775
- var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
1776
- var tmp0_iterator = tmp1_map.c();
1777
- while (tmp0_iterator.d()) {
1778
- var item = tmp0_iterator.e();
1779
- var tmp$ret$0;
1780
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
1781
- tmp$ret$0 = new Type(item.d1t_1, new Shape(item.e1t_1));
1782
- tmp0_mapTo.a(tmp$ret$0);
1783
- }
1784
- tmp$ret$1 = tmp0_mapTo;
1785
- tmp$ret$2 = tmp$ret$1;
1876
+ tmp_0 = flatten(schema, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu(res.s1t_1), 'ResponseBody']));
1877
+ break;
1878
+ case 4:
1879
+ var tmp$ret$0;
1880
+ // Inline function 'kotlin.collections.orEmpty' call
1881
+ var tmp1_safe_receiver = schema.t1e_1;
1882
+ var tmp0_orEmpty = tmp1_safe_receiver == null ? null : flatten_0(tmp1_safe_receiver, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu(res.s1t_1), 'ResponseBody']));
1883
+ var tmp0_elvis_lhs = tmp0_orEmpty;
1884
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
1786
1885
 
1787
- tmp_0 = tmp$ret$2;
1886
+ tmp_0 = tmp$ret$0;
1788
1887
  break;
1789
1888
  default:
1790
1889
  tmp_0 = emptyList();
@@ -1792,15 +1891,7 @@
1792
1891
  }
1793
1892
  tmp = tmp_0;
1794
1893
  } else {
1795
- if (schema instanceof ReferenceObject) {
1796
- tmp = emptyList();
1797
- } else {
1798
- if (schema == null) {
1799
- tmp = emptyList();
1800
- } else {
1801
- noWhenBranchMatchedException();
1802
- }
1803
- }
1894
+ tmp = emptyList();
1804
1895
  }
1805
1896
  return tmp;
1806
1897
  };
@@ -1809,10 +1900,10 @@
1809
1900
  var tmp0_subject = it;
1810
1901
  var tmp;
1811
1902
  if (tmp0_subject instanceof Literal) {
1812
- tmp = Common_getInstance().z1s([it.rj_1]);
1903
+ tmp = Common_getInstance().f1t([it.rj_1]);
1813
1904
  } else {
1814
1905
  if (tmp0_subject instanceof Param) {
1815
- tmp = Common_getInstance().z1s([it.si_1.dj_1]);
1906
+ tmp = Common_getInstance().f1t([it.si_1.dj_1]);
1816
1907
  } else {
1817
1908
  noWhenBranchMatchedException();
1818
1909
  }
@@ -1821,11 +1912,82 @@
1821
1912
  }
1822
1913
  function OpenApiParser(openApi) {
1823
1914
  Companion_getInstance_0();
1824
- this.b1t_1 = openApi;
1915
+ this.h1t_1 = openApi;
1825
1916
  }
1826
- protoOf(OpenApiParser).c1t = function () {
1917
+ protoOf(OpenApiParser).i1t = function () {
1827
1918
  return plus(plus(plus(parseEndpoints(this), parseRequestBody(this)), parseResponseBody(this)), parseDefinitions(this));
1828
1919
  };
1920
+ function toMap_0(_this__u8e3s4) {
1921
+ var tmp0_subject = _this__u8e3s4;
1922
+ var tmp;
1923
+ if (tmp0_subject instanceof Custom) {
1924
+ tmp = _this__u8e3s4.jl(VOID, VOID, true);
1925
+ } else {
1926
+ if (tmp0_subject instanceof Any) {
1927
+ tmp = _this__u8e3s4.hl(VOID, true);
1928
+ } else {
1929
+ if (tmp0_subject instanceof Primitive) {
1930
+ tmp = _this__u8e3s4.ll(VOID, VOID, true);
1931
+ } else {
1932
+ noWhenBranchMatchedException();
1933
+ }
1934
+ }
1935
+ }
1936
+ return tmp;
1937
+ }
1938
+ function isPrimitive(_this__u8e3s4) {
1939
+ var tmp0_subject = _this__u8e3s4;
1940
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
1941
+ var tmp;
1942
+ switch (tmp0) {
1943
+ case 0:
1944
+ tmp = true;
1945
+ break;
1946
+ case 1:
1947
+ tmp = true;
1948
+ break;
1949
+ case 2:
1950
+ tmp = true;
1951
+ break;
1952
+ case 3:
1953
+ tmp = true;
1954
+ break;
1955
+ case 4:
1956
+ tmp = false;
1957
+ break;
1958
+ case 5:
1959
+ tmp = false;
1960
+ break;
1961
+ case 6:
1962
+ tmp = false;
1963
+ break;
1964
+ case -1:
1965
+ tmp = false;
1966
+ break;
1967
+ default:
1968
+ noWhenBranchMatchedException();
1969
+ break;
1970
+ }
1971
+ return tmp;
1972
+ }
1973
+ function toIterable(_this__u8e3s4) {
1974
+ var tmp0_subject = _this__u8e3s4;
1975
+ var tmp;
1976
+ if (tmp0_subject instanceof Custom) {
1977
+ tmp = _this__u8e3s4.jl(VOID, true);
1978
+ } else {
1979
+ if (tmp0_subject instanceof Any) {
1980
+ tmp = _this__u8e3s4.hl(true);
1981
+ } else {
1982
+ if (tmp0_subject instanceof Primitive) {
1983
+ tmp = _this__u8e3s4.ll(VOID, true);
1984
+ } else {
1985
+ noWhenBranchMatchedException();
1986
+ }
1987
+ }
1988
+ }
1989
+ return tmp;
1990
+ }
1829
1991
  function filterNotNullValues(_this__u8e3s4) {
1830
1992
  var tmp$ret$8;
1831
1993
  // Inline function 'kotlin.collections.mapNotNull' call
@@ -1883,10 +2045,10 @@
1883
2045
  function Companion_0() {
1884
2046
  Companion_instance_0 = this;
1885
2047
  }
1886
- protoOf(Companion_0).a1t = function (json) {
2048
+ protoOf(Companion_0).g1t = function (json) {
1887
2049
  var tmp$ret$1;
1888
2050
  // Inline function 'kotlin.let' call
1889
- var tmp0_let = Default_getInstance_0().g1a(json);
2051
+ var tmp0_let = Default_getInstance_0().m1a(json);
1890
2052
  // Inline function 'kotlin.contracts.contract' call
1891
2053
  var tmp$ret$0;
1892
2054
  // Inline function 'community.flock.wirespec.openapi.v3.Companion.parse.<anonymous>' call
@@ -1904,10 +2066,10 @@
1904
2066
  return plus(plus(plus(parseEndpoint($this), parseRequestBody_0($this)), parseResponseBody_0($this)), parseComponents($this));
1905
2067
  }
1906
2068
  function parseEndpoint($this) {
1907
- var tmp$ret$51;
1908
- // Inline function 'kotlin.collections.flatMap' call
1909
- var tmp1_flatMap = $this.r1t_1.g1j_1;
1910
2069
  var tmp$ret$50;
2070
+ // Inline function 'kotlin.collections.flatMap' call
2071
+ var tmp1_flatMap = $this.v1t_1.m1j_1;
2072
+ var tmp$ret$49;
1911
2073
  // Inline function 'kotlin.collections.flatMapTo' call
1912
2074
  var tmp0_flatMapTo = ArrayList_init_$Create$();
1913
2075
  var tmp$ret$0;
@@ -1916,20 +2078,20 @@
1916
2078
  var tmp0_iterator = tmp$ret$0;
1917
2079
  while (tmp0_iterator.d()) {
1918
2080
  var element = tmp0_iterator.e();
1919
- var tmp$ret$49;
2081
+ var tmp$ret$48;
1920
2082
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>' call
1921
2083
  var tmp$ret$1;
1922
2084
  // Inline function 'kotlin.collections.component1' call
1923
- tmp$ret$1 = element.v().o1j_1;
2085
+ tmp$ret$1 = element.v().u1j_1;
1924
2086
  var key = tmp$ret$1;
1925
2087
  var tmp$ret$2;
1926
2088
  // Inline function 'kotlin.collections.component2' call
1927
2089
  tmp$ret$2 = element.w();
1928
2090
  var path = tmp$ret$2;
1929
- var tmp$ret$48;
2091
+ var tmp$ret$47;
1930
2092
  // Inline function 'kotlin.collections.map' call
1931
2093
  var tmp1_map = toOperationList_0(path, $this);
1932
- var tmp$ret$47;
2094
+ var tmp$ret$46;
1933
2095
  // Inline function 'kotlin.collections.mapTo' call
1934
2096
  var tmp0_mapTo = ArrayList_init_$Create$_0(tmp1_map.f());
1935
2097
  var tmp$ret$3;
@@ -1938,7 +2100,7 @@
1938
2100
  var tmp0_iterator_0 = tmp$ret$3;
1939
2101
  while (tmp0_iterator_0.d()) {
1940
2102
  var item = tmp0_iterator_0.e();
1941
- var tmp$ret$46;
2103
+ var tmp$ret$45;
1942
2104
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>' call
1943
2105
  var tmp$ret$4;
1944
2106
  // Inline function 'kotlin.collections.component1' call
@@ -1948,162 +2110,156 @@
1948
2110
  // Inline function 'kotlin.collections.component2' call
1949
2111
  tmp$ret$5 = item.w();
1950
2112
  var operation = tmp$ret$5;
1951
- var tmp = resolveParameters_2(path, $this);
1952
- var tmp$ret$6;
1953
- // Inline function 'kotlin.collections.orEmpty' call
1954
- var tmp0_orEmpty = resolveParameters_1(operation, $this);
1955
- var tmp0_elvis_lhs = tmp0_orEmpty;
1956
- tmp$ret$6 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
1957
- var parameters = plus(tmp, tmp$ret$6);
2113
+ var parameters = plus(resolveParameters_2(path, $this), resolveParameters_1(operation, $this));
1958
2114
  var segments = toSegments_0(key, $this, parameters);
1959
2115
  var name = toName_0(operation, $this, segments, method);
1960
- var tmp$ret$12;
2116
+ var tmp$ret$11;
1961
2117
  // Inline function 'kotlin.collections.map' call
1962
- var tmp$ret$9;
1963
- // Inline function 'kotlin.collections.filter' call
1964
2118
  var tmp$ret$8;
2119
+ // Inline function 'kotlin.collections.filter' call
2120
+ var tmp$ret$7;
1965
2121
  // Inline function 'kotlin.collections.filterTo' call
1966
- var tmp1_filterTo = ArrayList_init_$Create$();
2122
+ var tmp0_filterTo = ArrayList_init_$Create$();
1967
2123
  var tmp0_iterator_1 = parameters.c();
1968
2124
  while (tmp0_iterator_1.d()) {
1969
2125
  var element_0 = tmp0_iterator_1.e();
1970
- var tmp$ret$7;
2126
+ var tmp$ret$6;
1971
2127
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
1972
- tmp$ret$7 = element_0.i1l_1.equals(ParameterLocation_QUERY_getInstance_0());
1973
- if (tmp$ret$7) {
1974
- tmp1_filterTo.a(element_0);
2128
+ tmp$ret$6 = element_0.o1l_1.equals(ParameterLocation_QUERY_getInstance_0());
2129
+ if (tmp$ret$6) {
2130
+ tmp0_filterTo.a(element_0);
1975
2131
  }
1976
2132
  }
1977
- tmp$ret$8 = tmp1_filterTo;
1978
- tmp$ret$9 = tmp$ret$8;
1979
- var tmp3_map = tmp$ret$9;
1980
- var tmp$ret$11;
2133
+ tmp$ret$7 = tmp0_filterTo;
2134
+ tmp$ret$8 = tmp$ret$7;
2135
+ var tmp2_map = tmp$ret$8;
2136
+ var tmp$ret$10;
1981
2137
  // Inline function 'kotlin.collections.mapTo' call
1982
- var tmp2_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp3_map, 10));
1983
- var tmp0_iterator_2 = tmp3_map.c();
2138
+ var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_map, 10));
2139
+ var tmp0_iterator_2 = tmp2_map.c();
1984
2140
  while (tmp0_iterator_2.d()) {
1985
2141
  var item_0 = tmp0_iterator_2.e();
1986
- var tmp$ret$10;
2142
+ var tmp$ret$9;
1987
2143
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
1988
- tmp$ret$10 = toField_0(item_0, $this);
1989
- tmp2_mapTo.a(tmp$ret$10);
2144
+ tmp$ret$9 = toField_2(item_0, $this);
2145
+ tmp1_mapTo.a(tmp$ret$9);
1990
2146
  }
1991
- tmp$ret$11 = tmp2_mapTo;
1992
- tmp$ret$12 = tmp$ret$11;
1993
- var query = tmp$ret$12;
1994
- var tmp$ret$18;
2147
+ tmp$ret$10 = tmp1_mapTo;
2148
+ tmp$ret$11 = tmp$ret$10;
2149
+ var query = tmp$ret$11;
2150
+ var tmp$ret$17;
1995
2151
  // Inline function 'kotlin.collections.map' call
1996
- var tmp$ret$15;
1997
- // Inline function 'kotlin.collections.filter' call
1998
2152
  var tmp$ret$14;
2153
+ // Inline function 'kotlin.collections.filter' call
2154
+ var tmp$ret$13;
1999
2155
  // Inline function 'kotlin.collections.filterTo' call
2000
- var tmp4_filterTo = ArrayList_init_$Create$();
2156
+ var tmp3_filterTo = ArrayList_init_$Create$();
2001
2157
  var tmp0_iterator_3 = parameters.c();
2002
2158
  while (tmp0_iterator_3.d()) {
2003
2159
  var element_1 = tmp0_iterator_3.e();
2004
- var tmp$ret$13;
2160
+ var tmp$ret$12;
2005
2161
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2006
- tmp$ret$13 = element_1.i1l_1.equals(ParameterLocation_HEADER_getInstance_0());
2007
- if (tmp$ret$13) {
2008
- tmp4_filterTo.a(element_1);
2162
+ tmp$ret$12 = element_1.o1l_1.equals(ParameterLocation_HEADER_getInstance_0());
2163
+ if (tmp$ret$12) {
2164
+ tmp3_filterTo.a(element_1);
2009
2165
  }
2010
2166
  }
2011
- tmp$ret$14 = tmp4_filterTo;
2012
- tmp$ret$15 = tmp$ret$14;
2013
- var tmp6_map = tmp$ret$15;
2014
- var tmp$ret$17;
2167
+ tmp$ret$13 = tmp3_filterTo;
2168
+ tmp$ret$14 = tmp$ret$13;
2169
+ var tmp5_map = tmp$ret$14;
2170
+ var tmp$ret$16;
2015
2171
  // Inline function 'kotlin.collections.mapTo' call
2016
- var tmp5_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp6_map, 10));
2017
- var tmp0_iterator_4 = tmp6_map.c();
2172
+ var tmp4_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp5_map, 10));
2173
+ var tmp0_iterator_4 = tmp5_map.c();
2018
2174
  while (tmp0_iterator_4.d()) {
2019
2175
  var item_1 = tmp0_iterator_4.e();
2020
- var tmp$ret$16;
2176
+ var tmp$ret$15;
2021
2177
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2022
- tmp$ret$16 = toField_0(item_1, $this);
2023
- tmp5_mapTo.a(tmp$ret$16);
2178
+ tmp$ret$15 = toField_2(item_1, $this);
2179
+ tmp4_mapTo.a(tmp$ret$15);
2024
2180
  }
2025
- tmp$ret$17 = tmp5_mapTo;
2026
- tmp$ret$18 = tmp$ret$17;
2027
- var headers = tmp$ret$18;
2028
- var tmp$ret$24;
2181
+ tmp$ret$16 = tmp4_mapTo;
2182
+ tmp$ret$17 = tmp$ret$16;
2183
+ var headers = tmp$ret$17;
2184
+ var tmp$ret$23;
2029
2185
  // Inline function 'kotlin.collections.map' call
2030
- var tmp$ret$21;
2031
- // Inline function 'kotlin.collections.filter' call
2032
2186
  var tmp$ret$20;
2187
+ // Inline function 'kotlin.collections.filter' call
2188
+ var tmp$ret$19;
2033
2189
  // Inline function 'kotlin.collections.filterTo' call
2034
- var tmp7_filterTo = ArrayList_init_$Create$();
2190
+ var tmp6_filterTo = ArrayList_init_$Create$();
2035
2191
  var tmp0_iterator_5 = parameters.c();
2036
2192
  while (tmp0_iterator_5.d()) {
2037
2193
  var element_2 = tmp0_iterator_5.e();
2038
- var tmp$ret$19;
2194
+ var tmp$ret$18;
2039
2195
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2040
- tmp$ret$19 = element_2.i1l_1.equals(ParameterLocation_COOKIE_getInstance());
2041
- if (tmp$ret$19) {
2042
- tmp7_filterTo.a(element_2);
2196
+ tmp$ret$18 = element_2.o1l_1.equals(ParameterLocation_COOKIE_getInstance());
2197
+ if (tmp$ret$18) {
2198
+ tmp6_filterTo.a(element_2);
2043
2199
  }
2044
2200
  }
2045
- tmp$ret$20 = tmp7_filterTo;
2046
- tmp$ret$21 = tmp$ret$20;
2047
- var tmp9_map = tmp$ret$21;
2048
- var tmp$ret$23;
2201
+ tmp$ret$19 = tmp6_filterTo;
2202
+ tmp$ret$20 = tmp$ret$19;
2203
+ var tmp8_map = tmp$ret$20;
2204
+ var tmp$ret$22;
2049
2205
  // Inline function 'kotlin.collections.mapTo' call
2050
- var tmp8_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp9_map, 10));
2051
- var tmp0_iterator_6 = tmp9_map.c();
2206
+ var tmp7_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp8_map, 10));
2207
+ var tmp0_iterator_6 = tmp8_map.c();
2052
2208
  while (tmp0_iterator_6.d()) {
2053
2209
  var item_2 = tmp0_iterator_6.e();
2054
- var tmp$ret$22;
2210
+ var tmp$ret$21;
2055
2211
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2056
- tmp$ret$22 = toField_0(item_2, $this);
2057
- tmp8_mapTo.a(tmp$ret$22);
2212
+ tmp$ret$21 = toField_2(item_2, $this);
2213
+ tmp7_mapTo.a(tmp$ret$21);
2058
2214
  }
2059
- tmp$ret$23 = tmp8_mapTo;
2060
- tmp$ret$24 = tmp$ret$23;
2061
- var cookies = tmp$ret$24;
2062
- var tmp0_safe_receiver = operation.n1k_1;
2215
+ tmp$ret$22 = tmp7_mapTo;
2216
+ tmp$ret$23 = tmp$ret$22;
2217
+ var cookies = tmp$ret$23;
2218
+ var tmp0_safe_receiver = operation.t1k_1;
2063
2219
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, $this);
2064
- var tmp_0;
2220
+ var tmp;
2065
2221
  if (tmp1_safe_receiver == null) {
2066
- tmp_0 = null;
2222
+ tmp = null;
2067
2223
  } else {
2068
- var tmp$ret$32;
2224
+ var tmp$ret$31;
2069
2225
  // Inline function 'kotlin.let' call
2070
2226
  // Inline function 'kotlin.contracts.contract' call
2071
- var tmp$ret$31;
2227
+ var tmp$ret$30;
2072
2228
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2073
- var tmp0_safe_receiver_0 = tmp1_safe_receiver.n1l_1;
2074
- var tmp_1;
2229
+ var tmp0_safe_receiver_0 = tmp1_safe_receiver.t1l_1;
2230
+ var tmp_0;
2075
2231
  if (tmp0_safe_receiver_0 == null) {
2076
- tmp_1 = null;
2232
+ tmp_0 = null;
2077
2233
  } else {
2078
- var tmp$ret$30;
2079
- // Inline function 'kotlin.collections.map' call
2080
2234
  var tmp$ret$29;
2235
+ // Inline function 'kotlin.collections.map' call
2236
+ var tmp$ret$28;
2081
2237
  // Inline function 'kotlin.collections.mapTo' call
2082
2238
  var tmp0_mapTo_0 = ArrayList_init_$Create$_0(tmp0_safe_receiver_0.f());
2083
- var tmp$ret$25;
2239
+ var tmp$ret$24;
2084
2240
  // Inline function 'kotlin.collections.iterator' call
2085
- tmp$ret$25 = tmp0_safe_receiver_0.u().c();
2086
- var tmp0_iterator_7 = tmp$ret$25;
2241
+ tmp$ret$24 = tmp0_safe_receiver_0.u().c();
2242
+ var tmp0_iterator_7 = tmp$ret$24;
2087
2243
  while (tmp0_iterator_7.d()) {
2088
2244
  var item_3 = tmp0_iterator_7.e();
2089
- var tmp$ret$28;
2245
+ var tmp$ret$27;
2090
2246
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
2091
- var tmp$ret$26;
2247
+ var tmp$ret$25;
2092
2248
  // Inline function 'kotlin.collections.component1' call
2093
- tmp$ret$26 = item_3.v().r1l_1;
2094
- var mediaType = tmp$ret$26;
2095
- var tmp$ret$27;
2249
+ tmp$ret$25 = item_3.v().x1l_1;
2250
+ var mediaType = tmp$ret$25;
2251
+ var tmp$ret$26;
2096
2252
  // Inline function 'kotlin.collections.component2' call
2097
- tmp$ret$27 = item_3.w();
2098
- var mediaObject = tmp$ret$27;
2099
- var tmp_2 = _MediaType___get_value__impl__wy58mp(mediaType);
2100
- var schema = mediaObject.u1l_1;
2101
- var tmp_3;
2253
+ tmp$ret$26 = item_3.w();
2254
+ var mediaObject = tmp$ret$26;
2255
+ var tmp_1 = _MediaType___get_value__impl__wy58mp(mediaType);
2256
+ var schema = mediaObject.a1m_1;
2257
+ var tmp_2;
2102
2258
  if (schema instanceof ReferenceObject_0) {
2103
- tmp_3 = toReference_1(schema, $this);
2259
+ tmp_2 = toReference_1(schema, $this);
2104
2260
  } else {
2105
2261
  if (schema instanceof SchemaObject_0) {
2106
- tmp_3 = new Custom(Common_getInstance().z1s([name, 'RequestBody']), true);
2262
+ tmp_2 = toReference_2(schema, $this, Common_getInstance().f1t([name, 'RequestBody']));
2107
2263
  } else {
2108
2264
  if (schema == null) {
2109
2265
  throw new NotImplementedError();
@@ -2112,83 +2268,83 @@
2112
2268
  }
2113
2269
  }
2114
2270
  }
2115
- var tmp_4 = tmp_3;
2116
- var tmp0_elvis_lhs_0 = tmp1_safe_receiver.o1l_1;
2117
- tmp$ret$28 = new Request(new Content(tmp_2, tmp_4, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0));
2118
- tmp0_mapTo_0.a(tmp$ret$28);
2271
+ var tmp_3 = tmp_2;
2272
+ var tmp0_elvis_lhs = tmp1_safe_receiver.u1l_1;
2273
+ tmp$ret$27 = new Request(new Content(tmp_1, tmp_3, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
2274
+ tmp0_mapTo_0.a(tmp$ret$27);
2119
2275
  }
2120
- tmp$ret$29 = tmp0_mapTo_0;
2121
- tmp$ret$30 = tmp$ret$29;
2122
- tmp_1 = tmp$ret$30;
2276
+ tmp$ret$28 = tmp0_mapTo_0;
2277
+ tmp$ret$29 = tmp$ret$28;
2278
+ tmp_0 = tmp$ret$29;
2123
2279
  }
2124
- tmp$ret$31 = tmp_1;
2125
- tmp$ret$32 = tmp$ret$31;
2126
- tmp_0 = tmp$ret$32;
2280
+ tmp$ret$30 = tmp_0;
2281
+ tmp$ret$31 = tmp$ret$30;
2282
+ tmp = tmp$ret$31;
2127
2283
  }
2128
- var tmp2_elvis_lhs = tmp_0;
2284
+ var tmp2_elvis_lhs = tmp;
2129
2285
  var requests = tmp2_elvis_lhs == null ? listOf(new Request(null)) : tmp2_elvis_lhs;
2130
- var tmp$ret$45;
2286
+ var tmp$ret$44;
2131
2287
  // Inline function 'kotlin.collections.flatMap' call
2132
- var tmp$ret$33;
2288
+ var tmp$ret$32;
2133
2289
  // Inline function 'kotlin.collections.orEmpty' call
2134
- var tmp10_orEmpty = operation.o1k_1;
2135
- var tmp0_elvis_lhs_1 = tmp10_orEmpty;
2136
- tmp$ret$33 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
2137
- var tmp12_flatMap = tmp$ret$33;
2138
- var tmp$ret$44;
2290
+ var tmp9_orEmpty = operation.u1k_1;
2291
+ var tmp0_elvis_lhs_0 = tmp9_orEmpty;
2292
+ tmp$ret$32 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
2293
+ var tmp11_flatMap = tmp$ret$32;
2294
+ var tmp$ret$43;
2139
2295
  // Inline function 'kotlin.collections.flatMapTo' call
2140
- var tmp11_flatMapTo = ArrayList_init_$Create$();
2141
- var tmp$ret$34;
2296
+ var tmp10_flatMapTo = ArrayList_init_$Create$();
2297
+ var tmp$ret$33;
2142
2298
  // Inline function 'kotlin.collections.iterator' call
2143
- tmp$ret$34 = tmp12_flatMap.u().c();
2144
- var tmp0_iterator_8 = tmp$ret$34;
2299
+ tmp$ret$33 = tmp11_flatMap.u().c();
2300
+ var tmp0_iterator_8 = tmp$ret$33;
2145
2301
  while (tmp0_iterator_8.d()) {
2146
2302
  var element_3 = tmp0_iterator_8.e();
2147
- var tmp$ret$43;
2303
+ var tmp$ret$42;
2148
2304
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
2149
- var tmp$ret$35;
2305
+ var tmp$ret$34;
2150
2306
  // Inline function 'kotlin.collections.component1' call
2151
- tmp$ret$35 = element_3.v().q1n_1;
2152
- var status = tmp$ret$35;
2153
- var tmp$ret$36;
2307
+ tmp$ret$34 = element_3.v().w1n_1;
2308
+ var status = tmp$ret$34;
2309
+ var tmp$ret$35;
2154
2310
  // Inline function 'kotlin.collections.component2' call
2155
- tmp$ret$36 = element_3.w();
2156
- var res = tmp$ret$36;
2157
- var tmp0_safe_receiver_1 = resolve_6(res, $this).v1n_1;
2158
- var tmp_5;
2311
+ tmp$ret$35 = element_3.w();
2312
+ var res = tmp$ret$35;
2313
+ var tmp0_safe_receiver_1 = resolve_6(res, $this).b1o_1;
2314
+ var tmp_4;
2159
2315
  if (tmp0_safe_receiver_1 == null) {
2160
- tmp_5 = null;
2316
+ tmp_4 = null;
2161
2317
  } else {
2162
- var tmp$ret$42;
2163
- // Inline function 'kotlin.collections.map' call
2164
2318
  var tmp$ret$41;
2319
+ // Inline function 'kotlin.collections.map' call
2320
+ var tmp$ret$40;
2165
2321
  // Inline function 'kotlin.collections.mapTo' call
2166
2322
  var tmp0_mapTo_1 = ArrayList_init_$Create$_0(tmp0_safe_receiver_1.f());
2167
- var tmp$ret$37;
2323
+ var tmp$ret$36;
2168
2324
  // Inline function 'kotlin.collections.iterator' call
2169
- tmp$ret$37 = tmp0_safe_receiver_1.u().c();
2170
- var tmp0_iterator_9 = tmp$ret$37;
2325
+ tmp$ret$36 = tmp0_safe_receiver_1.u().c();
2326
+ var tmp0_iterator_9 = tmp$ret$36;
2171
2327
  while (tmp0_iterator_9.d()) {
2172
2328
  var item_4 = tmp0_iterator_9.e();
2173
- var tmp$ret$40;
2329
+ var tmp$ret$39;
2174
2330
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
2175
- var tmp$ret$38;
2331
+ var tmp$ret$37;
2176
2332
  // Inline function 'kotlin.collections.component1' call
2177
- tmp$ret$38 = item_4.v().r1l_1;
2178
- var contentType = tmp$ret$38;
2179
- var tmp$ret$39;
2333
+ tmp$ret$37 = item_4.v().x1l_1;
2334
+ var contentType = tmp$ret$37;
2335
+ var tmp$ret$38;
2180
2336
  // Inline function 'kotlin.collections.component2' call
2181
- tmp$ret$39 = item_4.w();
2182
- var media = tmp$ret$39;
2183
- var tmp_6 = _StatusCode___get_value__impl__we50mu_0(status);
2184
- var tmp_7 = _MediaType___get_value__impl__wy58mp(contentType);
2185
- var schema_0 = media.u1l_1;
2186
- var tmp_8;
2337
+ tmp$ret$38 = item_4.w();
2338
+ var media = tmp$ret$38;
2339
+ var tmp_5 = _StatusCode___get_value__impl__we50mu_0(status);
2340
+ var tmp_6 = _MediaType___get_value__impl__wy58mp(contentType);
2341
+ var schema_0 = media.a1m_1;
2342
+ var tmp_7;
2187
2343
  if (schema_0 instanceof ReferenceObject_0) {
2188
- tmp_8 = toReference_1(schema_0, $this);
2344
+ tmp_7 = toReference_1(schema_0, $this);
2189
2345
  } else {
2190
2346
  if (schema_0 instanceof SchemaObject_0) {
2191
- tmp_8 = toReference_2(schema_0, $this, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
2347
+ tmp_7 = toReference_2(schema_0, $this, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
2192
2348
  } else {
2193
2349
  if (schema_0 == null) {
2194
2350
  throw new NotImplementedError();
@@ -2197,96 +2353,100 @@
2197
2353
  }
2198
2354
  }
2199
2355
  }
2200
- var tmp_9 = tmp_8;
2201
- var tmp0_safe_receiver_2 = media.u1l_1;
2356
+ var tmp_8 = tmp_7;
2357
+ var tmp0_safe_receiver_2 = media.a1m_1;
2202
2358
  var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : resolve_3(tmp0_safe_receiver_2, $this);
2203
- var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.d1m_1;
2204
- tmp$ret$40 = new Response(tmp_6, new Content(tmp_7, tmp_9, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
2205
- tmp0_mapTo_1.a(tmp$ret$40);
2359
+ var tmp2_elvis_lhs_0 = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.j1m_1;
2360
+ tmp$ret$39 = new Response(tmp_5, new Content(tmp_6, tmp_8, tmp2_elvis_lhs_0 == null ? false : tmp2_elvis_lhs_0));
2361
+ tmp0_mapTo_1.a(tmp$ret$39);
2206
2362
  }
2207
- tmp$ret$41 = tmp0_mapTo_1;
2208
- tmp$ret$42 = tmp$ret$41;
2209
- tmp_5 = tmp$ret$42;
2363
+ tmp$ret$40 = tmp0_mapTo_1;
2364
+ tmp$ret$41 = tmp$ret$40;
2365
+ tmp_4 = tmp$ret$41;
2210
2366
  }
2211
- var tmp1_elvis_lhs = tmp_5;
2212
- tmp$ret$43 = tmp1_elvis_lhs == null ? listOf(new Response(_StatusCode___get_value__impl__we50mu_0(status), null)) : tmp1_elvis_lhs;
2213
- var list = tmp$ret$43;
2214
- addAll(tmp11_flatMapTo, list);
2215
- }
2216
- tmp$ret$44 = tmp11_flatMapTo;
2217
- tmp$ret$45 = tmp$ret$44;
2218
- var responses = tmp$ret$45;
2219
- tmp$ret$46 = new Endpoint(name, method, segments, query, headers, cookies, requests, responses);
2220
- tmp0_mapTo.a(tmp$ret$46);
2221
- }
2222
- tmp$ret$47 = tmp0_mapTo;
2367
+ var tmp1_elvis_lhs = tmp_4;
2368
+ tmp$ret$42 = tmp1_elvis_lhs == null ? listOf(new Response(_StatusCode___get_value__impl__we50mu_0(status), null)) : tmp1_elvis_lhs;
2369
+ var list = tmp$ret$42;
2370
+ addAll(tmp10_flatMapTo, list);
2371
+ }
2372
+ tmp$ret$43 = tmp10_flatMapTo;
2373
+ tmp$ret$44 = tmp$ret$43;
2374
+ var responses = tmp$ret$44;
2375
+ tmp$ret$45 = new Endpoint(name, method, segments, query, headers, cookies, requests, responses);
2376
+ tmp0_mapTo.a(tmp$ret$45);
2377
+ }
2378
+ tmp$ret$46 = tmp0_mapTo;
2379
+ tmp$ret$47 = tmp$ret$46;
2223
2380
  tmp$ret$48 = tmp$ret$47;
2224
- tmp$ret$49 = tmp$ret$48;
2225
- var list_0 = tmp$ret$49;
2381
+ var list_0 = tmp$ret$48;
2226
2382
  addAll(tmp0_flatMapTo, list_0);
2227
2383
  }
2228
- tmp$ret$50 = tmp0_flatMapTo;
2229
- tmp$ret$51 = tmp$ret$50;
2230
- return tmp$ret$51;
2384
+ tmp$ret$49 = tmp0_flatMapTo;
2385
+ tmp$ret$50 = tmp$ret$49;
2386
+ return tmp$ret$50;
2231
2387
  }
2232
2388
  function parseRequestBody_0($this) {
2233
- return flatMapRequests_0($this.r1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
2389
+ return flatMapRequests_0($this.v1t_1, $this, OpenApiParser$parseRequestBody$lambda_0($this));
2234
2390
  }
2235
2391
  function parseResponseBody_0($this) {
2236
- return flatMapResponses_0($this.r1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
2392
+ return flatMapResponses_0($this.v1t_1, $this, OpenApiParser$parseResponseBody$lambda_0($this));
2237
2393
  }
2238
2394
  function parseComponents($this) {
2239
- var tmp0_safe_receiver = $this.r1t_1.h1j_1;
2240
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1o_1;
2241
- var tmp;
2242
- if (tmp1_safe_receiver == null) {
2243
- tmp = null;
2244
- } else {
2245
- var tmp$ret$3;
2246
- // Inline function 'kotlin.collections.flatMap' call
2395
+ var tmp$ret$8;
2396
+ // Inline function 'kotlin.collections.flatMap' call
2397
+ var tmp$ret$4;
2398
+ // Inline function 'kotlin.collections.filter' call
2399
+ var tmp$ret$0;
2400
+ // Inline function 'kotlin.collections.orEmpty' call
2401
+ var tmp0_safe_receiver = $this.v1t_1.n1j_1;
2402
+ var tmp0_orEmpty = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1o_1;
2403
+ var tmp0_elvis_lhs = tmp0_orEmpty;
2404
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
2405
+ var tmp2_filter = tmp$ret$0;
2406
+ var tmp$ret$3;
2407
+ // Inline function 'kotlin.collections.filterTo' call
2408
+ var tmp1_filterTo = LinkedHashMap_init_$Create$();
2409
+ var tmp$ret$1;
2410
+ // Inline function 'kotlin.collections.iterator' call
2411
+ tmp$ret$1 = tmp2_filter.u().c();
2412
+ var tmp0_iterator = tmp$ret$1;
2413
+ while (tmp0_iterator.d()) {
2414
+ var element = tmp0_iterator.e();
2247
2415
  var tmp$ret$2;
2248
- // Inline function 'kotlin.collections.flatMapTo' call
2249
- var tmp0_flatMapTo = ArrayList_init_$Create$();
2250
- var tmp$ret$0;
2251
- // Inline function 'kotlin.collections.iterator' call
2252
- tmp$ret$0 = tmp1_safe_receiver.u().c();
2253
- var tmp0_iterator = tmp$ret$0;
2254
- while (tmp0_iterator.d()) {
2255
- var element = tmp0_iterator.e();
2256
- var tmp$ret$1;
2257
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
2258
- tmp$ret$1 = flatten_2(element.w(), $this, Common_getInstance().z1s([element.v()]));
2259
- var list = tmp$ret$1;
2260
- addAll(tmp0_flatMapTo, list);
2416
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
2417
+ var s = element.w();
2418
+ var tmp;
2419
+ if (s instanceof SchemaObject_0) {
2420
+ tmp = s.z1m_1 == null;
2421
+ } else {
2422
+ tmp = false;
2423
+ }
2424
+ tmp$ret$2 = tmp;
2425
+ if (tmp$ret$2) {
2426
+ tmp1_filterTo.k3(element.v(), element.w());
2261
2427
  }
2262
- tmp$ret$2 = tmp0_flatMapTo;
2263
- tmp$ret$3 = tmp$ret$2;
2264
- tmp = tmp$ret$3;
2265
2428
  }
2266
- var tmp2_safe_receiver = tmp;
2267
- var tmp_0;
2268
- if (tmp2_safe_receiver == null) {
2269
- tmp_0 = null;
2270
- } else {
2429
+ tmp$ret$3 = tmp1_filterTo;
2430
+ tmp$ret$4 = tmp$ret$3;
2431
+ var tmp4_flatMap = tmp$ret$4;
2432
+ var tmp$ret$7;
2433
+ // Inline function 'kotlin.collections.flatMapTo' call
2434
+ var tmp3_flatMapTo = ArrayList_init_$Create$();
2435
+ var tmp$ret$5;
2436
+ // Inline function 'kotlin.collections.iterator' call
2437
+ tmp$ret$5 = tmp4_flatMap.u().c();
2438
+ var tmp0_iterator_0 = tmp$ret$5;
2439
+ while (tmp0_iterator_0.d()) {
2440
+ var element_0 = tmp0_iterator_0.e();
2271
2441
  var tmp$ret$6;
2272
- // Inline function 'kotlin.collections.map' call
2273
- var tmp$ret$5;
2274
- // Inline function 'kotlin.collections.mapTo' call
2275
- var tmp1_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp2_safe_receiver, 10));
2276
- var tmp0_iterator_0 = tmp2_safe_receiver.c();
2277
- while (tmp0_iterator_0.d()) {
2278
- var item = tmp0_iterator_0.e();
2279
- var tmp$ret$4;
2280
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
2281
- tmp$ret$4 = new Type(item.s1t_1, new Shape(item.t1t_1));
2282
- tmp1_mapTo.a(tmp$ret$4);
2283
- }
2284
- tmp$ret$5 = tmp1_mapTo;
2285
- tmp$ret$6 = tmp$ret$5;
2286
- tmp_0 = tmp$ret$6;
2442
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseComponents.<anonymous>' call
2443
+ tmp$ret$6 = flatten_2(element_0.w(), $this, Common_getInstance().f1t([element_0.v()]));
2444
+ var list = tmp$ret$6;
2445
+ addAll(tmp3_flatMapTo, list);
2287
2446
  }
2288
- var tmp3_elvis_lhs = tmp_0;
2289
- return tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
2447
+ tmp$ret$7 = tmp3_flatMapTo;
2448
+ tmp$ret$8 = tmp$ret$7;
2449
+ return tmp$ret$8;
2290
2450
  }
2291
2451
  function toSegments_0(_this__u8e3s4, $this, parameters) {
2292
2452
  var tmp$ret$11;
@@ -2321,7 +2481,7 @@
2321
2481
  var element = tmp0_iterator_0.e();
2322
2482
  var tmp$ret$2;
2323
2483
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
2324
- tmp$ret$2 = element.h1l_1 === param;
2484
+ tmp$ret$2 = element.n1l_1 === param;
2325
2485
  if (tmp$ret$2) {
2326
2486
  tmp$ret$3 = element;
2327
2487
  break $l$block;
@@ -2331,7 +2491,7 @@
2331
2491
  }
2332
2492
  tmp$ret$4 = tmp$ret$3;
2333
2493
  var tmp0_safe_receiver = tmp$ret$4;
2334
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.d1l_1;
2494
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j1l_1;
2335
2495
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_3(tmp1_safe_receiver, $this);
2336
2496
  var tmp_0;
2337
2497
  if (tmp2_safe_receiver == null) {
@@ -2342,7 +2502,7 @@
2342
2502
  // Inline function 'kotlin.contracts.contract' call
2343
2503
  var tmp$ret$5;
2344
2504
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toSegments.<anonymous>.<anonymous>' call
2345
- var tmp0_safe_receiver_0 = tmp2_safe_receiver.m1m_1;
2505
+ var tmp0_safe_receiver_0 = tmp2_safe_receiver.s1m_1;
2346
2506
  tmp$ret$5 = tmp0_safe_receiver_0 == null ? null : toPrimitive_0(tmp0_safe_receiver_0, $this);
2347
2507
  tmp$ret$6 = tmp$ret$5;
2348
2508
  tmp_0 = tmp$ret$6;
@@ -2381,7 +2541,7 @@
2381
2541
  return tmp$ret$11;
2382
2542
  }
2383
2543
  function toName_0(_this__u8e3s4, $this, segments, method) {
2384
- var tmp0_safe_receiver = _this__u8e3s4.l1k_1;
2544
+ var tmp0_safe_receiver = _this__u8e3s4.r1k_1;
2385
2545
  var tmp;
2386
2546
  if (tmp0_safe_receiver == null) {
2387
2547
  tmp = null;
@@ -2391,7 +2551,7 @@
2391
2551
  // Inline function 'kotlin.contracts.contract' call
2392
2552
  var tmp$ret$0;
2393
2553
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
2394
- tmp$ret$0 = Common_getInstance().z1s([tmp0_safe_receiver]);
2554
+ tmp$ret$0 = Common_getInstance().f1t([tmp0_safe_receiver]);
2395
2555
  tmp$ret$1 = tmp$ret$0;
2396
2556
  tmp = tmp$ret$1;
2397
2557
  }
@@ -2400,7 +2560,7 @@
2400
2560
  if (tmp1_elvis_lhs == null) {
2401
2561
  var tmp$ret$3;
2402
2562
  // Inline function 'kotlin.let' call
2403
- var tmp0_let = joinToString_0(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda_0);
2563
+ var tmp0_let = joinToString(segments, '', VOID, VOID, VOID, VOID, OpenApiParser$toName$lambda_0);
2404
2564
  // Inline function 'kotlin.contracts.contract' call
2405
2565
  var tmp$ret$2;
2406
2566
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toName.<anonymous>' call
@@ -2413,7 +2573,7 @@
2413
2573
  return tmp_0;
2414
2574
  }
2415
2575
  function resolveParameters_1(_this__u8e3s4, $this) {
2416
- var tmp0_safe_receiver = _this__u8e3s4.m1k_1;
2576
+ var tmp0_safe_receiver = _this__u8e3s4.s1k_1;
2417
2577
  var tmp;
2418
2578
  if (tmp0_safe_receiver == null) {
2419
2579
  tmp = null;
@@ -2461,7 +2621,7 @@
2461
2621
  return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
2462
2622
  }
2463
2623
  function resolveParameters_2(_this__u8e3s4, $this) {
2464
- var tmp0_safe_receiver = _this__u8e3s4.d1k_1;
2624
+ var tmp0_safe_receiver = _this__u8e3s4.j1k_1;
2465
2625
  var tmp;
2466
2626
  if (tmp0_safe_receiver == null) {
2467
2627
  tmp = null;
@@ -2509,8 +2669,8 @@
2509
2669
  return tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
2510
2670
  }
2511
2671
  function resolveParameterObject_0(_this__u8e3s4, $this) {
2512
- var tmp0_safe_receiver = $this.r1t_1.h1j_1;
2513
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1o_1;
2672
+ var tmp0_safe_receiver = $this.v1t_1.n1j_1;
2673
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i1o_1;
2514
2674
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
2515
2675
  var tmp;
2516
2676
  if (tmp2_safe_receiver == null) {
@@ -2539,8 +2699,8 @@
2539
2699
  return tmp;
2540
2700
  }
2541
2701
  function resolveSchemaObject_0(_this__u8e3s4, $this) {
2542
- var tmp0_safe_receiver = $this.r1t_1.h1j_1;
2543
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1o_1;
2702
+ var tmp0_safe_receiver = $this.v1t_1.n1j_1;
2703
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g1o_1;
2544
2704
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
2545
2705
  var tmp;
2546
2706
  if (tmp2_safe_receiver == null) {
@@ -2569,7 +2729,7 @@
2569
2729
  var tmp3_elvis_lhs = tmp;
2570
2730
  var tmp_1;
2571
2731
  if (tmp3_elvis_lhs == null) {
2572
- var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
2732
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1m_1);
2573
2733
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
2574
2734
  } else {
2575
2735
  tmp_1 = tmp3_elvis_lhs;
@@ -2577,8 +2737,8 @@
2577
2737
  return tmp_1;
2578
2738
  }
2579
2739
  function resolveRequestBodyObject(_this__u8e3s4, $this) {
2580
- var tmp0_safe_receiver = $this.r1t_1.h1j_1;
2581
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e1o_1;
2740
+ var tmp0_safe_receiver = $this.v1t_1.n1j_1;
2741
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k1o_1;
2582
2742
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
2583
2743
  var tmp;
2584
2744
  if (tmp2_safe_receiver == null) {
@@ -2607,7 +2767,7 @@
2607
2767
  var tmp3_elvis_lhs = tmp;
2608
2768
  var tmp_1;
2609
2769
  if (tmp3_elvis_lhs == null) {
2610
- var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
2770
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1m_1);
2611
2771
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
2612
2772
  } else {
2613
2773
  tmp_1 = tmp3_elvis_lhs;
@@ -2615,8 +2775,8 @@
2615
2775
  return tmp_1;
2616
2776
  }
2617
2777
  function resolveResponseObject_0(_this__u8e3s4, $this) {
2618
- var tmp0_safe_receiver = $this.r1t_1.h1j_1;
2619
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1o_1;
2778
+ var tmp0_safe_receiver = $this.v1t_1.n1j_1;
2779
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.h1o_1;
2620
2780
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m2(getReference_0(_this__u8e3s4, $this));
2621
2781
  var tmp;
2622
2782
  if (tmp2_safe_receiver == null) {
@@ -2645,7 +2805,7 @@
2645
2805
  var tmp3_elvis_lhs = tmp;
2646
2806
  var tmp_1;
2647
2807
  if (tmp3_elvis_lhs == null) {
2648
- var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.a1m_1);
2808
+ var tmp0_error = 'Cannot resolve ref: ' + new Ref_0(_this__u8e3s4.g1m_1);
2649
2809
  throw IllegalStateException_init_$Create$(toString(tmp0_error));
2650
2810
  } else {
2651
2811
  tmp_1 = tmp3_elvis_lhs;
@@ -2713,196 +2873,269 @@
2713
2873
  return tmp;
2714
2874
  }
2715
2875
  function flatten_1(_this__u8e3s4, $this, name) {
2716
- var tmp0_subject = _this__u8e3s4.m1m_1;
2717
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
2718
2876
  var tmp;
2719
- switch (tmp0) {
2720
- case -1:
2721
- case 5:
2722
- var tmp$ret$6;
2723
- // Inline function 'kotlin.collections.flatMap' call
2724
- var tmp$ret$0;
2725
- // Inline function 'kotlin.collections.orEmpty' call
2726
- var tmp0_orEmpty = _this__u8e3s4.s1m_1;
2727
- var tmp0_elvis_lhs = tmp0_orEmpty;
2728
- tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
2729
- var tmp2_flatMap = tmp$ret$0;
2730
- var tmp$ret$5;
2731
- // Inline function 'kotlin.collections.flatMapTo' call
2732
- var tmp1_flatMapTo = ArrayList_init_$Create$();
2877
+ if (!(_this__u8e3s4.z1m_1 == null)) {
2878
+ var tmp0_subject = _this__u8e3s4.z1m_1;
2879
+ var tmp_0;
2880
+ if (tmp0_subject instanceof BooleanObject_0) {
2881
+ tmp_0 = emptyList();
2882
+ } else {
2883
+ tmp_0 = flatten_1(resolve_4(ensureNotNull(_this__u8e3s4.z1m_1), $this), $this, name);
2884
+ }
2885
+ tmp = tmp_0;
2886
+ } else if (!(_this__u8e3s4.u1m_1 == null)) {
2887
+ throw new NotImplementedError('An operation is not implemented: oneOf is not implemented');
2888
+ } else if (!(_this__u8e3s4.v1m_1 == null)) {
2889
+ throw new NotImplementedError('An operation is not implemented: anyOf is not implemented');
2890
+ } else if (!(_this__u8e3s4.t1m_1 == null)) {
2891
+ var tmp$ret$3;
2892
+ // Inline function 'kotlin.collections.flatMap' call
2893
+ var tmp$ret$0;
2894
+ // Inline function 'kotlin.collections.orEmpty' call
2895
+ var tmp0_orEmpty = _this__u8e3s4.t1m_1;
2896
+ var tmp0_elvis_lhs = tmp0_orEmpty;
2897
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
2898
+ var tmp2_flatMap = tmp$ret$0;
2899
+ var tmp$ret$2;
2900
+ // Inline function 'kotlin.collections.flatMapTo' call
2901
+ var tmp1_flatMapTo = ArrayList_init_$Create$();
2902
+ var tmp0_iterator = tmp2_flatMap.c();
2903
+ while (tmp0_iterator.d()) {
2904
+ var element = tmp0_iterator.e();
2733
2905
  var tmp$ret$1;
2734
- // Inline function 'kotlin.collections.iterator' call
2735
- tmp$ret$1 = tmp2_flatMap.u().c();
2736
- var tmp0_iterator = tmp$ret$1;
2737
- while (tmp0_iterator.d()) {
2738
- var element = tmp0_iterator.e();
2739
- var tmp$ret$4;
2740
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2741
- var tmp$ret$2;
2742
- // Inline function 'kotlin.collections.component1' call
2743
- tmp$ret$2 = element.v();
2744
- var key = tmp$ret$2;
2745
- var tmp$ret$3;
2746
- // Inline function 'kotlin.collections.component2' call
2747
- tmp$ret$3 = element.w();
2748
- var value = tmp$ret$3;
2749
- var tmp0_subject_0 = value;
2750
- var tmp_0;
2906
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2907
+ tmp$ret$1 = toField_1(resolve_3(element, $this), $this, name);
2908
+ var list = tmp$ret$1;
2909
+ addAll(tmp1_flatMapTo, list);
2910
+ }
2911
+ tmp$ret$2 = tmp1_flatMapTo;
2912
+ tmp$ret$3 = tmp$ret$2;
2913
+ var tmp_1 = listOf(new Type(name, new Shape(tmp$ret$3)));
2914
+ var tmp$ret$13;
2915
+ // Inline function 'kotlin.collections.flatMap' call
2916
+ var tmp4_flatMap = ensureNotNull(_this__u8e3s4.t1m_1);
2917
+ var tmp$ret$12;
2918
+ // Inline function 'kotlin.collections.flatMapTo' call
2919
+ var tmp3_flatMapTo = ArrayList_init_$Create$();
2920
+ var tmp0_iterator_0 = tmp4_flatMap.c();
2921
+ while (tmp0_iterator_0.d()) {
2922
+ var element_0 = tmp0_iterator_0.e();
2923
+ var tmp$ret$11;
2924
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2925
+ var tmp0_subject_0 = element_0;
2926
+ var tmp_2;
2927
+ if (tmp0_subject_0 instanceof ReferenceObject_0) {
2928
+ tmp_2 = emptyList();
2929
+ } else {
2751
2930
  if (tmp0_subject_0 instanceof SchemaObject_0) {
2752
- tmp_0 = flatten_1(value, $this, Common_getInstance().z1s([name, key]));
2753
- } else {
2754
- if (tmp0_subject_0 instanceof ReferenceObject_0) {
2755
- tmp_0 = emptyList();
2756
- } else {
2757
- noWhenBranchMatchedException();
2758
- }
2759
- }
2760
- tmp$ret$4 = tmp_0;
2761
- var list = tmp$ret$4;
2762
- addAll(tmp1_flatMapTo, list);
2763
- }
2764
- tmp$ret$5 = tmp1_flatMapTo;
2765
- tmp$ret$6 = tmp$ret$5;
2766
-
2767
- var fields = tmp$ret$6;
2768
- var tmp1_subject = _this__u8e3s4.t1m_1;
2769
- var tmp_1;
2770
- if (tmp1_subject == null) {
2771
- var tmp2_safe_receiver = _this__u8e3s4.s1m_1;
2772
- var tmp_2;
2773
- if (tmp2_safe_receiver == null) {
2774
- tmp_2 = null;
2775
- } else {
2776
- var tmp$ret$12;
2777
- // Inline function 'kotlin.collections.map' call
2778
- var tmp$ret$11;
2779
- // Inline function 'kotlin.collections.mapTo' call
2780
- var tmp3_mapTo = ArrayList_init_$Create$_0(tmp2_safe_receiver.f());
2781
- var tmp$ret$7;
2931
+ var tmp$ret$10;
2932
+ // Inline function 'kotlin.collections.flatMap' call
2933
+ var tmp$ret$4;
2934
+ // Inline function 'kotlin.collections.orEmpty' call
2935
+ var tmp0_orEmpty_0 = element_0.y1m_1;
2936
+ var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
2937
+ tmp$ret$4 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
2938
+ var tmp2_flatMap_0 = tmp$ret$4;
2939
+ var tmp$ret$9;
2940
+ // Inline function 'kotlin.collections.flatMapTo' call
2941
+ var tmp1_flatMapTo_0 = ArrayList_init_$Create$();
2942
+ var tmp$ret$5;
2782
2943
  // Inline function 'kotlin.collections.iterator' call
2783
- tmp$ret$7 = tmp2_safe_receiver.u().c();
2784
- var tmp0_iterator_0 = tmp$ret$7;
2785
- while (tmp0_iterator_0.d()) {
2786
- var item = tmp0_iterator_0.e();
2787
- var tmp$ret$10;
2788
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2944
+ tmp$ret$5 = tmp2_flatMap_0.u().c();
2945
+ var tmp0_iterator_1 = tmp$ret$5;
2946
+ while (tmp0_iterator_1.d()) {
2947
+ var element_1 = tmp0_iterator_1.e();
2789
2948
  var tmp$ret$8;
2949
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>.<anonymous>' call
2950
+ var tmp$ret$6;
2790
2951
  // Inline function 'kotlin.collections.component1' call
2791
- tmp$ret$8 = item.v();
2792
- var key_0 = tmp$ret$8;
2793
- var tmp$ret$9;
2952
+ tmp$ret$6 = element_1.v();
2953
+ var key = tmp$ret$6;
2954
+ var tmp$ret$7;
2794
2955
  // Inline function 'kotlin.collections.component2' call
2795
- tmp$ret$9 = item.w();
2796
- var value_0 = tmp$ret$9;
2797
- var tmp0_subject_1 = value_0;
2956
+ tmp$ret$7 = element_1.w();
2957
+ var value = tmp$ret$7;
2958
+ var tmp0_subject_1 = value;
2798
2959
  var tmp_3;
2799
- if (tmp0_subject_1 instanceof SchemaObject_0) {
2800
- var tmp_4 = new Identifier(key_0);
2801
- var tmp_5 = toReference_2(value_0, $this, Common_getInstance().z1s([name, key_0]));
2802
- var tmp1_safe_receiver = _this__u8e3s4.l1n_1;
2803
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key_0);
2804
- tmp_3 = new Field(tmp_4, tmp_5, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
2960
+ if (tmp0_subject_1 instanceof ReferenceObject_0) {
2961
+ tmp_3 = emptyList();
2805
2962
  } else {
2806
- if (tmp0_subject_1 instanceof ReferenceObject_0) {
2807
- var tmp_6 = new Identifier(key_0);
2808
- var tmp_7 = toReference_1(value_0, $this);
2809
- var tmp3_safe_receiver = _this__u8e3s4.l1n_1;
2810
- var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key_0);
2811
- tmp_3 = new Field(tmp_6, tmp_7, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
2963
+ if (tmp0_subject_1 instanceof SchemaObject_0) {
2964
+ tmp_3 = flatten_1(value, $this, Common_getInstance().f1t([name, key]));
2812
2965
  } else {
2813
2966
  noWhenBranchMatchedException();
2814
2967
  }
2815
2968
  }
2816
- tmp$ret$10 = tmp_3;
2817
- tmp3_mapTo.a(tmp$ret$10);
2969
+ tmp$ret$8 = tmp_3;
2970
+ var list_0 = tmp$ret$8;
2971
+ addAll(tmp1_flatMapTo_0, list_0);
2818
2972
  }
2819
- tmp$ret$11 = tmp3_mapTo;
2820
- tmp$ret$12 = tmp$ret$11;
2821
- tmp_2 = tmp$ret$12;
2973
+ tmp$ret$9 = tmp1_flatMapTo_0;
2974
+ tmp$ret$10 = tmp$ret$9;
2975
+ tmp_2 = tmp$ret$10;
2976
+ } else {
2977
+ noWhenBranchMatchedException();
2822
2978
  }
2823
- var tmp3_elvis_lhs = tmp_2;
2824
- tmp_1 = listOf(new SimpleSchema_0(name, tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs));
2825
- } else {
2826
- tmp_1 = emptyList();
2827
2979
  }
2828
-
2829
- var schema = tmp_1;
2830
- tmp = plus(schema, fields);
2831
- break;
2832
- case 4:
2833
- var tmp4_safe_receiver = _this__u8e3s4.r1m_1;
2834
- var tmp_8;
2835
- if (tmp4_safe_receiver == null) {
2836
- tmp_8 = null;
2980
+ tmp$ret$11 = tmp_2;
2981
+ var list_1 = tmp$ret$11;
2982
+ addAll(tmp3_flatMapTo, list_1);
2983
+ }
2984
+ tmp$ret$12 = tmp3_flatMapTo;
2985
+ tmp$ret$13 = tmp$ret$12;
2986
+ tmp = plus(tmp_1, tmp$ret$13);
2987
+ } else if (!(_this__u8e3s4.s1n_1 == null)) {
2988
+ var tmp$ret$18;
2989
+ // Inline function 'kotlin.let' call
2990
+ var tmp$ret$16;
2991
+ // Inline function 'kotlin.collections.map' call
2992
+ var tmp6_map = ensureNotNull(_this__u8e3s4.s1n_1);
2993
+ var tmp$ret$15;
2994
+ // Inline function 'kotlin.collections.mapTo' call
2995
+ var tmp5_mapTo = ArrayList_init_$Create$_0(tmp6_map.length);
2996
+ var indexedObject = tmp6_map;
2997
+ var inductionVariable = 0;
2998
+ var last = indexedObject.length;
2999
+ while (inductionVariable < last) {
3000
+ var item = indexedObject[inductionVariable];
3001
+ inductionVariable = inductionVariable + 1 | 0;
3002
+ var tmp$ret$14;
3003
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
3004
+ var tmp0_subject_2 = item;
3005
+ var tmp_4;
3006
+ if (tmp0_subject_2 instanceof JsonPrimitive) {
3007
+ tmp_4 = item.q13();
2837
3008
  } else {
2838
- var tmp$ret$14;
2839
- // Inline function 'kotlin.let' call
2840
- // Inline function 'kotlin.contracts.contract' call
2841
- var tmp$ret$13;
2842
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
2843
- var tmp0_subject_2 = tmp4_safe_receiver;
2844
- var tmp_9;
2845
- if (tmp0_subject_2 instanceof ReferenceObject_0) {
2846
- tmp_9 = emptyList();
3009
+ if (tmp0_subject_2 instanceof JsonArray) {
3010
+ throw new NotImplementedError();
2847
3011
  } else {
2848
- if (tmp0_subject_2 instanceof SchemaObject_0) {
2849
- tmp_9 = flatten_1(tmp4_safe_receiver, $this, Common_getInstance().z1s([name, 'array']));
3012
+ if (tmp0_subject_2 instanceof JsonObject) {
3013
+ throw new NotImplementedError();
2850
3014
  } else {
2851
3015
  noWhenBranchMatchedException();
2852
3016
  }
2853
3017
  }
2854
- tmp$ret$13 = tmp_9;
2855
- tmp$ret$14 = tmp$ret$13;
2856
- tmp_8 = tmp$ret$14;
2857
3018
  }
3019
+ tmp$ret$14 = tmp_4;
3020
+ tmp5_mapTo.a(tmp$ret$14);
3021
+ }
3022
+ tmp$ret$15 = tmp5_mapTo;
3023
+ tmp$ret$16 = tmp$ret$15;
3024
+ var tmp7_let = toSet(tmp$ret$16);
3025
+ // Inline function 'kotlin.contracts.contract' call
3026
+ var tmp$ret$17;
3027
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
3028
+ tmp$ret$17 = listOf(new Enum(name, tmp7_let));
3029
+ tmp$ret$18 = tmp$ret$17;
3030
+ tmp = tmp$ret$18;
3031
+ } else {
3032
+ var tmp1_subject = _this__u8e3s4.s1m_1;
3033
+ var tmp0 = tmp1_subject == null ? -1 : tmp1_subject.q4_1;
3034
+ var tmp_5;
3035
+ switch (tmp0) {
3036
+ case -1:
3037
+ case 5:
3038
+ var tmp$ret$25;
3039
+ // Inline function 'kotlin.collections.flatMap' call
3040
+ var tmp$ret$19;
3041
+ // Inline function 'kotlin.collections.orEmpty' call
3042
+ var tmp8_orEmpty = _this__u8e3s4.y1m_1;
3043
+ var tmp0_elvis_lhs_1 = tmp8_orEmpty;
3044
+ tmp$ret$19 = tmp0_elvis_lhs_1 == null ? emptyMap() : tmp0_elvis_lhs_1;
3045
+ var tmp10_flatMap = tmp$ret$19;
3046
+ var tmp$ret$24;
3047
+ // Inline function 'kotlin.collections.flatMapTo' call
3048
+ var tmp9_flatMapTo = ArrayList_init_$Create$();
3049
+ var tmp$ret$20;
3050
+ // Inline function 'kotlin.collections.iterator' call
3051
+ tmp$ret$20 = tmp10_flatMap.u().c();
3052
+ var tmp0_iterator_2 = tmp$ret$20;
3053
+ while (tmp0_iterator_2.d()) {
3054
+ var element_2 = tmp0_iterator_2.e();
3055
+ var tmp$ret$23;
3056
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
3057
+ var tmp$ret$21;
3058
+ // Inline function 'kotlin.collections.component1' call
3059
+ tmp$ret$21 = element_2.v();
3060
+ var key_0 = tmp$ret$21;
3061
+ var tmp$ret$22;
3062
+ // Inline function 'kotlin.collections.component2' call
3063
+ tmp$ret$22 = element_2.w();
3064
+ var value_0 = tmp$ret$22;
3065
+ var tmp0_subject_3 = value_0;
3066
+ var tmp_6;
3067
+ if (tmp0_subject_3 instanceof SchemaObject_0) {
3068
+ tmp_6 = flatten_1(value_0, $this, Common_getInstance().f1t([name, key_0]));
3069
+ } else {
3070
+ if (tmp0_subject_3 instanceof ReferenceObject_0) {
3071
+ tmp_6 = emptyList();
3072
+ } else {
3073
+ noWhenBranchMatchedException();
3074
+ }
3075
+ }
3076
+ tmp$ret$23 = tmp_6;
3077
+ var list_2 = tmp$ret$23;
3078
+ addAll(tmp9_flatMapTo, list_2);
3079
+ }
3080
+ tmp$ret$24 = tmp9_flatMapTo;
3081
+ tmp$ret$25 = tmp$ret$24;
2858
3082
 
2859
- var tmp5_elvis_lhs = tmp_8;
2860
- tmp = tmp5_elvis_lhs == null ? emptyList() : tmp5_elvis_lhs;
2861
- break;
2862
- default:
2863
- tmp = emptyList();
2864
- break;
3083
+ var fields = tmp$ret$25;
3084
+ var schema = listOf(new Type(name, new Shape(toField_1(_this__u8e3s4, $this, name))));
3085
+ tmp_5 = plus(schema, fields);
3086
+ break;
3087
+ case 4:
3088
+ var tmp2_safe_receiver = _this__u8e3s4.x1m_1;
3089
+ var tmp_7;
3090
+ if (tmp2_safe_receiver == null) {
3091
+ tmp_7 = null;
3092
+ } else {
3093
+ var tmp$ret$27;
3094
+ // Inline function 'kotlin.let' call
3095
+ // Inline function 'kotlin.contracts.contract' call
3096
+ var tmp$ret$26;
3097
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatten.<anonymous>' call
3098
+ var tmp0_subject_4 = tmp2_safe_receiver;
3099
+ var tmp_8;
3100
+ if (tmp0_subject_4 instanceof ReferenceObject_0) {
3101
+ tmp_8 = emptyList();
3102
+ } else {
3103
+ if (tmp0_subject_4 instanceof SchemaObject_0) {
3104
+ tmp_8 = flatten_1(tmp2_safe_receiver, $this, Common_getInstance().f1t([name, 'array']));
3105
+ } else {
3106
+ noWhenBranchMatchedException();
3107
+ }
3108
+ }
3109
+ tmp$ret$26 = tmp_8;
3110
+ tmp$ret$27 = tmp$ret$26;
3111
+ tmp_7 = tmp$ret$27;
3112
+ }
3113
+
3114
+ var tmp3_elvis_lhs = tmp_7;
3115
+ tmp_5 = tmp3_elvis_lhs == null ? emptyList() : tmp3_elvis_lhs;
3116
+ break;
3117
+ default:
3118
+ tmp_5 = emptyList();
3119
+ break;
3120
+ }
3121
+ tmp = tmp_5;
2865
3122
  }
2866
3123
  return tmp;
2867
3124
  }
2868
3125
  function flatten_2(_this__u8e3s4, $this, name) {
2869
3126
  var tmp0_subject = _this__u8e3s4;
2870
3127
  var tmp;
2871
- if (tmp0_subject instanceof SchemaObject_0) {
2872
- tmp = flatten_1(_this__u8e3s4, $this, name);
3128
+ if (tmp0_subject instanceof ReferenceObject_0) {
3129
+ tmp = emptyList();
2873
3130
  } else {
2874
- if (tmp0_subject instanceof ReferenceObject_0) {
2875
- tmp = flatten_1(resolveSchemaObject_0(_this__u8e3s4, $this).h3_1, $this, name);
3131
+ if (tmp0_subject instanceof SchemaObject_0) {
3132
+ tmp = flatten_1(_this__u8e3s4, $this, name);
2876
3133
  } else {
2877
3134
  noWhenBranchMatchedException();
2878
3135
  }
2879
3136
  }
2880
3137
  return tmp;
2881
3138
  }
2882
- function SimpleSchema_0(name, properties) {
2883
- this.s1t_1 = name;
2884
- this.t1t_1 = properties;
2885
- }
2886
- protoOf(SimpleSchema_0).toString = function () {
2887
- return 'SimpleSchema(name=' + this.s1t_1 + ', properties=' + this.t1t_1 + ')';
2888
- };
2889
- protoOf(SimpleSchema_0).hashCode = function () {
2890
- var result = getStringHashCode(this.s1t_1);
2891
- result = imul(result, 31) + hashCode(this.t1t_1) | 0;
2892
- return result;
2893
- };
2894
- protoOf(SimpleSchema_0).equals = function (other) {
2895
- if (this === other)
2896
- return true;
2897
- if (!(other instanceof SimpleSchema_0))
2898
- return false;
2899
- var tmp0_other_with_cast = other instanceof SimpleSchema_0 ? other : THROW_CCE();
2900
- if (!(this.s1t_1 === tmp0_other_with_cast.s1t_1))
2901
- return false;
2902
- if (!equals(this.t1t_1, tmp0_other_with_cast.t1t_1))
2903
- return false;
2904
- return true;
2905
- };
2906
3139
  function toReference_1(_this__u8e3s4, $this) {
2907
3140
  var tmp$ret$1;
2908
3141
  // Inline function 'kotlin.let' call
@@ -2912,123 +3145,111 @@
2912
3145
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toReference.<anonymous>' call
2913
3146
  var referencingObject = tmp0_let.i3();
2914
3147
  var schema = tmp0_let.j3();
2915
- var additionalProperties = schema.t1m_1;
2916
3148
  var tmp;
2917
- if (additionalProperties instanceof BooleanObject_0) {
2918
- throw new NotImplementedError();
2919
- } else {
2920
- if (additionalProperties instanceof ReferenceObject_0) {
2921
- tmp = new Custom(Common_getInstance().z1s([getReference_0(additionalProperties, $this)]), false, true);
3149
+ if (!(schema.z1m_1 == null)) {
3150
+ var additionalProperties = ensureNotNull(schema.z1m_1);
3151
+ var tmp_0;
3152
+ if (additionalProperties instanceof BooleanObject_0) {
3153
+ tmp_0 = new Any(false, true);
2922
3154
  } else {
2923
- if (additionalProperties instanceof SchemaObject_0) {
2924
- tmp = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this)]), false, true);
3155
+ if (additionalProperties instanceof ReferenceObject_0) {
3156
+ tmp_0 = toMap_1(toReference_1(additionalProperties, $this));
2925
3157
  } else {
2926
- if (additionalProperties == null) {
2927
- var tmp0_subject = schema.m1m_1;
2928
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
2929
- var tmp_0;
2930
- if (tmp0 === 4) {
2931
- var items = schema.r1m_1;
2932
- var tmp_1;
2933
- if (items instanceof ReferenceObject_0) {
2934
- tmp_1 = new Custom(Common_getInstance().z1s([getReference_0(items, $this)]), true);
2935
- } else {
2936
- if (items instanceof SchemaObject_0) {
2937
- tmp_1 = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this), 'Array']), true);
2938
- } else {
2939
- if (items == null) {
2940
- var tmp0_error = 'When schema is of type array items cannot be null for name: ' + new Ref_0(_this__u8e3s4.a1m_1);
2941
- throw IllegalStateException_init_$Create$(toString(tmp0_error));
2942
- } else {
2943
- noWhenBranchMatchedException();
2944
- }
2945
- }
2946
- }
2947
- tmp_0 = tmp_1;
2948
- } else {
2949
- tmp_0 = new Custom(Common_getInstance().z1s([getReference_0(referencingObject, $this)]), false);
2950
- }
2951
- tmp = tmp_0;
3158
+ if (additionalProperties instanceof SchemaObject_0) {
3159
+ tmp_0 = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this)]), false, true);
2952
3160
  } else {
2953
3161
  noWhenBranchMatchedException();
2954
3162
  }
2955
3163
  }
2956
3164
  }
3165
+ tmp = tmp_0;
3166
+ } else if (!(schema.s1n_1 == null)) {
3167
+ tmp = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this)]), false, false);
3168
+ } else if (isPrimitive_0(schema.s1m_1)) {
3169
+ tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.s1m_1), $this), false, false);
3170
+ } else {
3171
+ var tmp0_subject = schema.s1m_1;
3172
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
3173
+ var tmp_1;
3174
+ if (tmp0 === 4) {
3175
+ var items = schema.x1m_1;
3176
+ var tmp_2;
3177
+ if (items instanceof ReferenceObject_0) {
3178
+ tmp_2 = new Custom(Common_getInstance().f1t([getReference_0(items, $this)]), true);
3179
+ } else {
3180
+ if (items instanceof SchemaObject_0) {
3181
+ tmp_2 = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this), 'Array']), true);
3182
+ } else {
3183
+ if (items == null) {
3184
+ var tmp0_error = 'items cannot be null when type is array: ' + new Ref_0(_this__u8e3s4.g1m_1);
3185
+ throw IllegalStateException_init_$Create$(toString(tmp0_error));
3186
+ } else {
3187
+ noWhenBranchMatchedException();
3188
+ }
3189
+ }
3190
+ }
3191
+ tmp_1 = tmp_2;
3192
+ } else {
3193
+ tmp_1 = new Custom(Common_getInstance().f1t([getReference_0(referencingObject, $this)]), false);
3194
+ }
3195
+ tmp = tmp_1;
2957
3196
  }
2958
3197
  tmp$ret$0 = tmp;
2959
3198
  tmp$ret$1 = tmp$ret$0;
2960
3199
  return tmp$ret$1;
2961
3200
  }
2962
3201
  function toReference_2(_this__u8e3s4, $this, name) {
2963
- var type = _this__u8e3s4.m1m_1;
2964
- var tmp0 = type == null ? -1 : type.q4_1;
2965
3202
  var tmp;
2966
- switch (tmp0) {
2967
- case 0:
2968
- case 1:
2969
- case 2:
2970
- case 3:
2971
- tmp = new Primitive(toPrimitive_0(type, $this), false);
2972
- break;
2973
- case -1:
2974
- case 5:
2975
- var tmp0_safe_receiver = _this__u8e3s4.t1m_1;
2976
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_4(tmp0_safe_receiver, $this);
2977
- var additionalPropertiesType = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.m1m_1;
2978
- var tmp0_0 = additionalPropertiesType == null ? -1 : additionalPropertiesType.q4_1;
2979
- switch (tmp0_0) {
2980
- case 0:
2981
- case 2:
2982
- case 1:
2983
- case 3:
2984
- tmp = new Primitive(toPrimitive_0(additionalPropertiesType, $this), false, !(_this__u8e3s4.t1m_1 == null));
2985
- break;
2986
- default:
2987
- tmp = new Custom(name, false, !(_this__u8e3s4.t1m_1 == null));
2988
- break;
2989
- }
3203
+ if (!(_this__u8e3s4.s1n_1 == null)) {
3204
+ tmp = new Custom(name, false, !(_this__u8e3s4.z1m_1 == null));
3205
+ } else {
3206
+ var type = _this__u8e3s4.s1m_1;
3207
+ var tmp0 = type == null ? -1 : type.q4_1;
3208
+ var tmp_0;
3209
+ switch (tmp0) {
3210
+ case 0:
3211
+ case 1:
3212
+ case 2:
3213
+ case 3:
3214
+ tmp_0 = new Primitive(toPrimitive_0(type, $this), false, !(_this__u8e3s4.z1m_1 == null));
3215
+ break;
3216
+ case -1:
3217
+ case 5:
3218
+ var tmp_1;
3219
+ var tmp_2 = _this__u8e3s4.z1m_1;
3220
+ if (tmp_2 instanceof BooleanObject_0) {
3221
+ tmp_1 = new Any(false, !(_this__u8e3s4.z1m_1 == null));
3222
+ } else {
3223
+ tmp_1 = new Custom(name, false, !(_this__u8e3s4.z1m_1 == null));
3224
+ }
2990
3225
 
2991
- break;
2992
- case 4:
2993
- var tmp2_safe_receiver = _this__u8e3s4.r1m_1;
2994
- var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : resolve_3(tmp2_safe_receiver, $this);
2995
- var type_0 = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.m1m_1;
2996
- var tmp0_1 = type_0 == null ? -1 : type_0.q4_1;
2997
- var tmp_0;
2998
- switch (tmp0_1) {
2999
- case 0:
3000
- case 1:
3001
- case 2:
3002
- case 3:
3003
- tmp_0 = new Primitive(toPrimitive_0(type_0, $this), true);
3004
- break;
3005
- default:
3006
- var it = _this__u8e3s4.r1m_1;
3007
- var tmp_1;
3008
- if (it instanceof ReferenceObject_0) {
3009
- tmp_1 = toReference_1(it, $this).fl(VOID, true);
3226
+ tmp_0 = tmp_1;
3227
+ break;
3228
+ case 4:
3229
+ var it = _this__u8e3s4.x1m_1;
3230
+ var tmp_3;
3231
+ if (it instanceof ReferenceObject_0) {
3232
+ tmp_3 = toIterable_0(toReference_1(it, $this));
3233
+ } else {
3234
+ if (it instanceof SchemaObject_0) {
3235
+ tmp_3 = toIterable_0(toReference_2(it, $this, name));
3010
3236
  } else {
3011
- if (it instanceof SchemaObject_0) {
3012
- tmp_1 = toReference_2(it, $this, name);
3237
+ if (it == null) {
3238
+ var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
3239
+ throw IllegalStateException_init_$Create$(toString(tmp0_error));
3013
3240
  } else {
3014
- if (it == null) {
3015
- var tmp0_error = 'When schema is of type array items cannot be null for name: ' + name;
3016
- throw IllegalStateException_init_$Create$(toString(tmp0_error));
3017
- } else {
3018
- noWhenBranchMatchedException();
3019
- }
3241
+ noWhenBranchMatchedException();
3020
3242
  }
3021
3243
  }
3244
+ }
3022
3245
 
3023
- tmp_0 = tmp_1;
3024
- break;
3025
- }
3026
-
3027
- tmp = tmp_0;
3028
- break;
3029
- default:
3030
- noWhenBranchMatchedException();
3031
- break;
3246
+ tmp_0 = tmp_3;
3247
+ break;
3248
+ default:
3249
+ noWhenBranchMatchedException();
3250
+ break;
3251
+ }
3252
+ tmp = tmp_0;
3032
3253
  }
3033
3254
  return tmp;
3034
3255
  }
@@ -3036,7 +3257,7 @@
3036
3257
  var tmp$ret$2;
3037
3258
  // Inline function 'kotlin.collections.associateWith' call
3038
3259
  var tmp0_associateWith = values();
3039
- var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
3260
+ var result = LinkedHashMap_init_$Create$_0(coerceAtLeast(mapCapacity(tmp0_associateWith.length), 16));
3040
3261
  var tmp$ret$1;
3041
3262
  // Inline function 'kotlin.collections.associateWithTo' call
3042
3263
  var indexedObject = tmp0_associateWith;
@@ -3052,28 +3273,28 @@
3052
3273
  var tmp;
3053
3274
  switch (tmp0) {
3054
3275
  case 0:
3055
- tmp = _this__u8e3s4.u1j_1;
3276
+ tmp = _this__u8e3s4.a1k_1;
3056
3277
  break;
3057
3278
  case 1:
3058
- tmp = _this__u8e3s4.w1j_1;
3279
+ tmp = _this__u8e3s4.c1k_1;
3059
3280
  break;
3060
3281
  case 2:
3061
- tmp = _this__u8e3s4.v1j_1;
3282
+ tmp = _this__u8e3s4.b1k_1;
3062
3283
  break;
3063
3284
  case 3:
3064
- tmp = _this__u8e3s4.x1j_1;
3285
+ tmp = _this__u8e3s4.d1k_1;
3065
3286
  break;
3066
3287
  case 4:
3067
- tmp = _this__u8e3s4.y1j_1;
3288
+ tmp = _this__u8e3s4.e1k_1;
3068
3289
  break;
3069
3290
  case 5:
3070
- tmp = _this__u8e3s4.z1j_1;
3291
+ tmp = _this__u8e3s4.f1k_1;
3071
3292
  break;
3072
3293
  case 6:
3073
- tmp = _this__u8e3s4.a1k_1;
3294
+ tmp = _this__u8e3s4.g1k_1;
3074
3295
  break;
3075
3296
  case 7:
3076
- tmp = _this__u8e3s4.b1k_1;
3297
+ tmp = _this__u8e3s4.h1k_1;
3077
3298
  break;
3078
3299
  default:
3079
3300
  noWhenBranchMatchedException();
@@ -3087,7 +3308,15 @@
3087
3308
  return filterNotNullValues_0(tmp$ret$2);
3088
3309
  }
3089
3310
  function getReference_0(_this__u8e3s4, $this) {
3090
- return split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.a1m_1), ['/']).h(3);
3311
+ var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.g1m_1), ['/']), 3);
3312
+ var tmp;
3313
+ if (tmp0_elvis_lhs == null) {
3314
+ var tmp0_error = 'Wrong reference: ' + _Ref___get_value__impl__kxavfe_0(_this__u8e3s4.g1m_1);
3315
+ throw IllegalStateException_init_$Create$(toString(tmp0_error));
3316
+ } else {
3317
+ tmp = tmp0_elvis_lhs;
3318
+ }
3319
+ return tmp;
3091
3320
  }
3092
3321
  function toPrimitive_0(_this__u8e3s4, $this) {
3093
3322
  var tmp0_subject = _this__u8e3s4;
@@ -3111,18 +3340,72 @@
3111
3340
  }
3112
3341
  return tmp;
3113
3342
  }
3114
- function toField_0(_this__u8e3s4, $this) {
3343
+ function toField_1(_this__u8e3s4, $this, name) {
3344
+ var tmp$ret$6;
3345
+ // Inline function 'kotlin.collections.map' call
3346
+ var tmp$ret$0;
3347
+ // Inline function 'kotlin.collections.orEmpty' call
3348
+ var tmp0_orEmpty = _this__u8e3s4.y1m_1;
3349
+ var tmp0_elvis_lhs = tmp0_orEmpty;
3350
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
3351
+ var tmp2_map = tmp$ret$0;
3352
+ var tmp$ret$5;
3353
+ // Inline function 'kotlin.collections.mapTo' call
3354
+ var tmp1_mapTo = ArrayList_init_$Create$_0(tmp2_map.f());
3355
+ var tmp$ret$1;
3356
+ // Inline function 'kotlin.collections.iterator' call
3357
+ tmp$ret$1 = tmp2_map.u().c();
3358
+ var tmp0_iterator = tmp$ret$1;
3359
+ while (tmp0_iterator.d()) {
3360
+ var item = tmp0_iterator.e();
3361
+ var tmp$ret$4;
3362
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
3363
+ var tmp$ret$2;
3364
+ // Inline function 'kotlin.collections.component1' call
3365
+ tmp$ret$2 = item.v();
3366
+ var key = tmp$ret$2;
3367
+ var tmp$ret$3;
3368
+ // Inline function 'kotlin.collections.component2' call
3369
+ tmp$ret$3 = item.w();
3370
+ var value = tmp$ret$3;
3371
+ var tmp0_subject = value;
3372
+ var tmp;
3373
+ if (tmp0_subject instanceof SchemaObject_0) {
3374
+ var tmp_0 = new Identifier(key);
3375
+ var tmp_1 = toReference_2(value, $this, Common_getInstance().f1t([name, key]));
3376
+ var tmp1_safe_receiver = _this__u8e3s4.r1n_1;
3377
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : contains(tmp1_safe_receiver, key);
3378
+ tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
3379
+ } else {
3380
+ if (tmp0_subject instanceof ReferenceObject_0) {
3381
+ var tmp_2 = new Identifier(key);
3382
+ var tmp_3 = new Custom(getReference_0(value, $this), false);
3383
+ var tmp3_safe_receiver = _this__u8e3s4.r1n_1;
3384
+ var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : contains(tmp3_safe_receiver, key);
3385
+ tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
3386
+ } else {
3387
+ noWhenBranchMatchedException();
3388
+ }
3389
+ }
3390
+ tmp$ret$4 = tmp;
3391
+ tmp1_mapTo.a(tmp$ret$4);
3392
+ }
3393
+ tmp$ret$5 = tmp1_mapTo;
3394
+ tmp$ret$6 = tmp$ret$5;
3395
+ return tmp$ret$6;
3396
+ }
3397
+ function toField_2(_this__u8e3s4, $this) {
3115
3398
  var tmp$ret$1;
3116
3399
  // Inline function 'kotlin.let' call
3117
- var tmp0_subject = _this__u8e3s4.d1l_1;
3400
+ var tmp0_subject = _this__u8e3s4.j1l_1;
3118
3401
  var tmp;
3119
3402
  if (tmp0_subject instanceof ReferenceObject_0) {
3120
- var tmp_0 = _this__u8e3s4.d1l_1;
3403
+ var tmp_0 = _this__u8e3s4.j1l_1;
3121
3404
  tmp = new Custom(getReference_0(tmp_0 instanceof ReferenceObject_0 ? tmp_0 : THROW_CCE(), $this), false);
3122
3405
  } else {
3123
3406
  if (tmp0_subject instanceof SchemaObject_0) {
3124
- var tmp_1 = _this__u8e3s4.d1l_1;
3125
- var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).m1m_1;
3407
+ var tmp_1 = _this__u8e3s4.j1l_1;
3408
+ var type = (tmp_1 instanceof SchemaObject_0 ? tmp_1 : THROW_CCE()).s1m_1;
3126
3409
  var tmp0 = type == null ? -1 : type.q4_1;
3127
3410
  var tmp_2;
3128
3411
  switch (tmp0) {
@@ -3155,26 +3438,26 @@
3155
3438
  // Inline function 'kotlin.contracts.contract' call
3156
3439
  var tmp$ret$0;
3157
3440
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.toField.<anonymous>' call
3158
- var tmp_3 = new Identifier(_this__u8e3s4.h1l_1);
3159
- var tmp0_elvis_lhs = _this__u8e3s4.x1k_1;
3441
+ var tmp_3 = new Identifier(_this__u8e3s4.n1l_1);
3442
+ var tmp0_elvis_lhs = _this__u8e3s4.d1l_1;
3160
3443
  tmp$ret$0 = new Field(tmp_3, tmp0_let, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
3161
3444
  tmp$ret$1 = tmp$ret$0;
3162
3445
  return tmp$ret$1;
3163
3446
  }
3164
3447
  function FlattenRequest_0(path, pathItem, method, operation) {
3165
- this.u1t_1 = path;
3166
- this.v1t_1 = pathItem;
3167
- this.w1t_1 = method;
3168
- this.x1t_1 = operation;
3448
+ this.w1t_1 = path;
3449
+ this.x1t_1 = pathItem;
3450
+ this.y1t_1 = method;
3451
+ this.z1t_1 = operation;
3169
3452
  }
3170
3453
  protoOf(FlattenRequest_0).toString = function () {
3171
- return 'FlattenRequest(path=' + new Path_0(this.u1t_1) + ', pathItem=' + this.v1t_1 + ', method=' + this.w1t_1 + ', operation=' + this.x1t_1 + ')';
3454
+ return 'FlattenRequest(path=' + new Path_0(this.w1t_1) + ', pathItem=' + this.x1t_1 + ', method=' + this.y1t_1 + ', operation=' + this.z1t_1 + ')';
3172
3455
  };
3173
3456
  protoOf(FlattenRequest_0).hashCode = function () {
3174
- var result = Path__hashCode_impl_go73kd_0(this.u1t_1);
3175
- result = imul(result, 31) + this.v1t_1.hashCode() | 0;
3176
- result = imul(result, 31) + this.w1t_1.hashCode() | 0;
3457
+ var result = Path__hashCode_impl_go73kd_0(this.w1t_1);
3177
3458
  result = imul(result, 31) + this.x1t_1.hashCode() | 0;
3459
+ result = imul(result, 31) + this.y1t_1.hashCode() | 0;
3460
+ result = imul(result, 31) + this.z1t_1.hashCode() | 0;
3178
3461
  return result;
3179
3462
  };
3180
3463
  protoOf(FlattenRequest_0).equals = function (other) {
@@ -3183,13 +3466,13 @@
3183
3466
  if (!(other instanceof FlattenRequest_0))
3184
3467
  return false;
3185
3468
  var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
3186
- if (!(this.u1t_1 === tmp0_other_with_cast.u1t_1))
3469
+ if (!(this.w1t_1 === tmp0_other_with_cast.w1t_1))
3187
3470
  return false;
3188
- if (!this.v1t_1.equals(tmp0_other_with_cast.v1t_1))
3471
+ if (!this.x1t_1.equals(tmp0_other_with_cast.x1t_1))
3189
3472
  return false;
3190
- if (!this.w1t_1.equals(tmp0_other_with_cast.w1t_1))
3473
+ if (!this.y1t_1.equals(tmp0_other_with_cast.y1t_1))
3191
3474
  return false;
3192
- if (!this.x1t_1.equals(tmp0_other_with_cast.x1t_1))
3475
+ if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
3193
3476
  return false;
3194
3477
  return true;
3195
3478
  };
@@ -3198,7 +3481,7 @@
3198
3481
  // Inline function 'kotlin.collections.flatMap' call
3199
3482
  var tmp$ret$11;
3200
3483
  // Inline function 'kotlin.collections.flatMap' call
3201
- var tmp1_flatMap = _this__u8e3s4.g1j_1;
3484
+ var tmp1_flatMap = _this__u8e3s4.m1j_1;
3202
3485
  var tmp$ret$10;
3203
3486
  // Inline function 'kotlin.collections.flatMapTo' call
3204
3487
  var tmp0_flatMapTo = ArrayList_init_$Create$();
@@ -3212,7 +3495,7 @@
3212
3495
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapRequests.<anonymous>' call
3213
3496
  var tmp$ret$1;
3214
3497
  // Inline function 'kotlin.collections.component1' call
3215
- tmp$ret$1 = element.v().o1j_1;
3498
+ tmp$ret$1 = element.v().u1j_1;
3216
3499
  var path = tmp$ret$1;
3217
3500
  var tmp$ret$2;
3218
3501
  // Inline function 'kotlin.collections.component2' call
@@ -3269,23 +3552,23 @@
3269
3552
  return tmp$ret$14;
3270
3553
  }
3271
3554
  function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
3272
- this.y1t_1 = path;
3273
- this.z1t_1 = pathItem;
3274
- this.a1u_1 = method;
3275
- this.b1u_1 = operation;
3276
- this.c1u_1 = statusCode;
3277
- this.d1u_1 = response;
3555
+ this.a1u_1 = path;
3556
+ this.b1u_1 = pathItem;
3557
+ this.c1u_1 = method;
3558
+ this.d1u_1 = operation;
3559
+ this.e1u_1 = statusCode;
3560
+ this.f1u_1 = response;
3278
3561
  }
3279
3562
  protoOf(FlattenResponse_0).toString = function () {
3280
- return 'FlattenResponse(path=' + new Path_0(this.y1t_1) + ', pathItem=' + this.z1t_1 + ', method=' + this.a1u_1 + ', operation=' + this.b1u_1 + ', statusCode=' + new StatusCode_0(this.c1u_1) + ', response=' + this.d1u_1 + ')';
3563
+ return 'FlattenResponse(path=' + new Path_0(this.a1u_1) + ', pathItem=' + this.b1u_1 + ', method=' + this.c1u_1 + ', operation=' + this.d1u_1 + ', statusCode=' + new StatusCode_0(this.e1u_1) + ', response=' + this.f1u_1 + ')';
3281
3564
  };
3282
3565
  protoOf(FlattenResponse_0).hashCode = function () {
3283
- var result = Path__hashCode_impl_go73kd_0(this.y1t_1);
3284
- result = imul(result, 31) + this.z1t_1.hashCode() | 0;
3285
- result = imul(result, 31) + this.a1u_1.hashCode() | 0;
3566
+ var result = Path__hashCode_impl_go73kd_0(this.a1u_1);
3286
3567
  result = imul(result, 31) + this.b1u_1.hashCode() | 0;
3287
- result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.c1u_1) | 0;
3288
- result = imul(result, 31) + hashCode(this.d1u_1) | 0;
3568
+ result = imul(result, 31) + this.c1u_1.hashCode() | 0;
3569
+ result = imul(result, 31) + this.d1u_1.hashCode() | 0;
3570
+ result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.e1u_1) | 0;
3571
+ result = imul(result, 31) + hashCode(this.f1u_1) | 0;
3289
3572
  return result;
3290
3573
  };
3291
3574
  protoOf(FlattenResponse_0).equals = function (other) {
@@ -3294,17 +3577,17 @@
3294
3577
  if (!(other instanceof FlattenResponse_0))
3295
3578
  return false;
3296
3579
  var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
3297
- if (!(this.y1t_1 === tmp0_other_with_cast.y1t_1))
3580
+ if (!(this.a1u_1 === tmp0_other_with_cast.a1u_1))
3298
3581
  return false;
3299
- if (!this.z1t_1.equals(tmp0_other_with_cast.z1t_1))
3582
+ if (!this.b1u_1.equals(tmp0_other_with_cast.b1u_1))
3300
3583
  return false;
3301
- if (!this.a1u_1.equals(tmp0_other_with_cast.a1u_1))
3584
+ if (!this.c1u_1.equals(tmp0_other_with_cast.c1u_1))
3302
3585
  return false;
3303
- if (!this.b1u_1.equals(tmp0_other_with_cast.b1u_1))
3586
+ if (!this.d1u_1.equals(tmp0_other_with_cast.d1u_1))
3304
3587
  return false;
3305
- if (!(this.c1u_1 === tmp0_other_with_cast.c1u_1))
3588
+ if (!(this.e1u_1 === tmp0_other_with_cast.e1u_1))
3306
3589
  return false;
3307
- if (!equals(this.d1u_1, tmp0_other_with_cast.d1u_1))
3590
+ if (!equals(this.f1u_1, tmp0_other_with_cast.f1u_1))
3308
3591
  return false;
3309
3592
  return true;
3310
3593
  };
@@ -3313,7 +3596,7 @@
3313
3596
  // Inline function 'kotlin.collections.flatMap' call
3314
3597
  var tmp$ret$18;
3315
3598
  // Inline function 'kotlin.collections.flatMap' call
3316
- var tmp1_flatMap = _this__u8e3s4.g1j_1;
3599
+ var tmp1_flatMap = _this__u8e3s4.m1j_1;
3317
3600
  var tmp$ret$17;
3318
3601
  // Inline function 'kotlin.collections.flatMapTo' call
3319
3602
  var tmp0_flatMapTo = ArrayList_init_$Create$();
@@ -3327,7 +3610,7 @@
3327
3610
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>' call
3328
3611
  var tmp$ret$1;
3329
3612
  // Inline function 'kotlin.collections.component1' call
3330
- tmp$ret$1 = element.v().o1j_1;
3613
+ tmp$ret$1 = element.v().u1j_1;
3331
3614
  var path = tmp$ret$1;
3332
3615
  var tmp$ret$2;
3333
3616
  // Inline function 'kotlin.collections.component2' call
@@ -3357,7 +3640,7 @@
3357
3640
  var operation = tmp$ret$5;
3358
3641
  var tmp$ret$12;
3359
3642
  // Inline function 'kotlin.collections.orEmpty' call
3360
- var tmp0_safe_receiver = operation.o1k_1;
3643
+ var tmp0_safe_receiver = operation.u1k_1;
3361
3644
  var tmp;
3362
3645
  if (tmp0_safe_receiver == null) {
3363
3646
  tmp = null;
@@ -3377,7 +3660,7 @@
3377
3660
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.flatMapResponses.<anonymous>.<anonymous>.<anonymous>' call
3378
3661
  var tmp$ret$7;
3379
3662
  // Inline function 'kotlin.collections.component1' call
3380
- tmp$ret$7 = item.v().q1n_1;
3663
+ tmp$ret$7 = item.v().w1n_1;
3381
3664
  var statusCode = tmp$ret$7;
3382
3665
  var tmp$ret$8;
3383
3666
  // Inline function 'kotlin.collections.component2' call
@@ -3424,20 +3707,20 @@
3424
3707
  }
3425
3708
  function OpenApiParser$parseRequestBody$lambda_0(this$0) {
3426
3709
  return function (req) {
3427
- var parameters = plus(resolveParameters_2(req.v1t_1, this$0), resolveParameters_1(req.x1t_1, this$0));
3428
- var segments = toSegments_0(req.u1t_1, this$0, parameters);
3429
- var name = toName_0(req.x1t_1, this$0, segments, req.w1t_1);
3430
- var tmp$ret$8;
3710
+ var parameters = plus(resolveParameters_2(req.x1t_1, this$0), resolveParameters_1(req.z1t_1, this$0));
3711
+ var segments = toSegments_0(req.w1t_1, this$0, parameters);
3712
+ var name = toName_0(req.z1t_1, this$0, segments, req.y1t_1);
3713
+ var tmp$ret$6;
3431
3714
  // Inline function 'kotlin.collections.flatMap' call
3432
3715
  var tmp$ret$0;
3433
3716
  // Inline function 'kotlin.collections.orEmpty' call
3434
- var tmp0_safe_receiver = req.x1t_1.n1k_1;
3717
+ var tmp0_safe_receiver = req.z1t_1.t1k_1;
3435
3718
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : resolve_5(tmp0_safe_receiver, this$0);
3436
- var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1l_1;
3719
+ var tmp0_orEmpty = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t1l_1;
3437
3720
  var tmp0_elvis_lhs = tmp0_orEmpty;
3438
3721
  tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
3439
3722
  var tmp2_flatMap = tmp$ret$0;
3440
- var tmp$ret$7;
3723
+ var tmp$ret$5;
3441
3724
  // Inline function 'kotlin.collections.flatMapTo' call
3442
3725
  var tmp1_flatMapTo = ArrayList_init_$Create$();
3443
3726
  var tmp$ret$1;
@@ -3446,39 +3729,32 @@
3446
3729
  var tmp0_iterator = tmp$ret$1;
3447
3730
  while (tmp0_iterator.d()) {
3448
3731
  var element = tmp0_iterator.e();
3449
- var tmp$ret$6;
3732
+ var tmp$ret$4;
3450
3733
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>' call
3451
3734
  var tmp$ret$2;
3452
3735
  // Inline function 'kotlin.collections.component2' call
3453
3736
  tmp$ret$2 = element.w();
3454
3737
  var mediaObject = tmp$ret$2;
3455
- var schema = mediaObject.u1l_1;
3738
+ var schema = mediaObject.a1m_1;
3456
3739
  var tmp;
3457
3740
  if (schema instanceof SchemaObject_0) {
3458
- var tmp0_subject = schema.m1m_1;
3741
+ var tmp0_subject = schema.s1m_1;
3459
3742
  var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
3460
3743
  var tmp_0;
3461
3744
  switch (tmp0) {
3462
3745
  case -1:
3463
3746
  case 5:
3464
- var tmp$ret$5;
3465
- // Inline function 'kotlin.collections.map' call
3466
- var tmp1_map = flatten_1(schema, this$0, Common_getInstance().z1s([name, 'RequestBody']));
3467
- var tmp$ret$4;
3468
- // Inline function 'kotlin.collections.mapTo' call
3469
- var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
3470
- var tmp0_iterator_0 = tmp1_map.c();
3471
- while (tmp0_iterator_0.d()) {
3472
- var item = tmp0_iterator_0.e();
3473
- var tmp$ret$3;
3474
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
3475
- tmp$ret$3 = new Type(item.s1t_1, new Shape(item.t1t_1));
3476
- tmp0_mapTo.a(tmp$ret$3);
3477
- }
3478
- tmp$ret$4 = tmp0_mapTo;
3479
- tmp$ret$5 = tmp$ret$4;
3747
+ tmp_0 = flatten_1(schema, this$0, Common_getInstance().f1t([name, 'RequestBody']));
3748
+ break;
3749
+ case 4:
3750
+ var tmp$ret$3;
3751
+ // Inline function 'kotlin.collections.orEmpty' call
3752
+ var tmp1_safe_receiver_0 = schema.x1m_1;
3753
+ var tmp0_orEmpty_0 = tmp1_safe_receiver_0 == null ? null : flatten_2(tmp1_safe_receiver_0, this$0, Common_getInstance().f1t([name, 'RequestBody']));
3754
+ var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
3755
+ tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
3480
3756
 
3481
- tmp_0 = tmp$ret$5;
3757
+ tmp_0 = tmp$ret$3;
3482
3758
  break;
3483
3759
  default:
3484
3760
  tmp_0 = emptyList();
@@ -3496,103 +3772,85 @@
3496
3772
  }
3497
3773
  }
3498
3774
  }
3499
- tmp$ret$6 = tmp;
3500
- var list = tmp$ret$6;
3775
+ tmp$ret$4 = tmp;
3776
+ var list = tmp$ret$4;
3501
3777
  addAll(tmp1_flatMapTo, list);
3502
3778
  }
3503
- tmp$ret$7 = tmp1_flatMapTo;
3504
- tmp$ret$8 = tmp$ret$7;
3505
- return tmp$ret$8;
3779
+ tmp$ret$5 = tmp1_flatMapTo;
3780
+ tmp$ret$6 = tmp$ret$5;
3781
+ return tmp$ret$6;
3506
3782
  };
3507
3783
  }
3508
3784
  function OpenApiParser$parseResponseBody$lambda_0(this$0) {
3509
3785
  return function (res) {
3510
- var parameters = plus(resolveParameters_2(res.z1t_1, this$0), resolveParameters_1(res.b1u_1, this$0));
3511
- var segments = toSegments_0(res.y1t_1, this$0, parameters);
3512
- var name = toName_0(res.b1u_1, this$0, segments, res.a1u_1);
3513
- var response = res.d1u_1;
3786
+ var parameters = plus(resolveParameters_2(res.b1u_1, this$0), resolveParameters_1(res.d1u_1, this$0));
3787
+ var segments = toSegments_0(res.a1u_1, this$0, parameters);
3788
+ var name = toName_0(res.d1u_1, this$0, segments, res.c1u_1);
3789
+ var response = res.f1u_1;
3514
3790
  var tmp;
3515
- if (response instanceof ReferenceObject_0) {
3516
- tmp = emptyList();
3517
- } else {
3518
- if (response instanceof ResponseObject_0) {
3519
- var tmp$ret$8;
3520
- // Inline function 'kotlin.collections.flatMap' call
3521
- var tmp$ret$0;
3522
- // Inline function 'kotlin.collections.orEmpty' call
3523
- var tmp0_orEmpty = response.v1n_1;
3524
- var tmp0_elvis_lhs = tmp0_orEmpty;
3525
- tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
3526
- var tmp2_flatMap = tmp$ret$0;
3527
- var tmp$ret$7;
3528
- // Inline function 'kotlin.collections.flatMapTo' call
3529
- var tmp1_flatMapTo = ArrayList_init_$Create$();
3530
- var tmp$ret$1;
3531
- // Inline function 'kotlin.collections.iterator' call
3532
- tmp$ret$1 = tmp2_flatMap.u().c();
3533
- var tmp0_iterator = tmp$ret$1;
3534
- while (tmp0_iterator.d()) {
3535
- var element = tmp0_iterator.e();
3536
- var tmp$ret$6;
3537
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
3538
- var tmp$ret$2;
3539
- // Inline function 'kotlin.collections.component2' call
3540
- tmp$ret$2 = element.w();
3541
- var mediaObject = tmp$ret$2;
3542
- var schema = mediaObject.u1l_1;
3543
- var tmp_0;
3544
- if (schema instanceof SchemaObject_0) {
3545
- var tmp0_subject = schema.m1m_1;
3546
- var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
3547
- var tmp_1;
3548
- switch (tmp0) {
3549
- case -1:
3550
- case 5:
3551
- var tmp$ret$5;
3552
- // Inline function 'kotlin.collections.map' call
3553
- var tmp1_safe_receiver = schema.t1m_1;
3554
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : resolve_4(tmp1_safe_receiver, this$0);
3555
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : flatten_1(tmp2_safe_receiver, this$0, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu_0(res.c1u_1), 'ResponseBody']));
3556
- var tmp1_map = tmp3_elvis_lhs == null ? flatten_1(schema, this$0, Common_getInstance().z1s([name, _StatusCode___get_value__impl__we50mu_0(res.c1u_1), 'ResponseBody'])) : tmp3_elvis_lhs;
3557
- var tmp$ret$4;
3558
- // Inline function 'kotlin.collections.mapTo' call
3559
- var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp1_map, 10));
3560
- var tmp0_iterator_0 = tmp1_map.c();
3561
- while (tmp0_iterator_0.d()) {
3562
- var item = tmp0_iterator_0.e();
3563
- var tmp$ret$3;
3564
- // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>.<anonymous>' call
3565
- tmp$ret$3 = new Type(item.s1t_1, new Shape(item.t1t_1));
3566
- tmp0_mapTo.a(tmp$ret$3);
3567
- }
3568
- tmp$ret$4 = tmp0_mapTo;
3569
- tmp$ret$5 = tmp$ret$4;
3791
+ if (response instanceof ResponseObject_0) {
3792
+ var tmp$ret$6;
3793
+ // Inline function 'kotlin.collections.flatMap' call
3794
+ var tmp$ret$0;
3795
+ // Inline function 'kotlin.collections.orEmpty' call
3796
+ var tmp0_orEmpty = response.b1o_1;
3797
+ var tmp0_elvis_lhs = tmp0_orEmpty;
3798
+ tmp$ret$0 = tmp0_elvis_lhs == null ? emptyMap() : tmp0_elvis_lhs;
3799
+ var tmp2_flatMap = tmp$ret$0;
3800
+ var tmp$ret$5;
3801
+ // Inline function 'kotlin.collections.flatMapTo' call
3802
+ var tmp1_flatMapTo = ArrayList_init_$Create$();
3803
+ var tmp$ret$1;
3804
+ // Inline function 'kotlin.collections.iterator' call
3805
+ tmp$ret$1 = tmp2_flatMap.u().c();
3806
+ var tmp0_iterator = tmp$ret$1;
3807
+ while (tmp0_iterator.d()) {
3808
+ var element = tmp0_iterator.e();
3809
+ var tmp$ret$4;
3810
+ // Inline function 'community.flock.wirespec.openapi.v3.OpenApiParser.parseResponseBody.<anonymous>.<anonymous>' call
3811
+ var tmp$ret$2;
3812
+ // Inline function 'kotlin.collections.component2' call
3813
+ tmp$ret$2 = element.w();
3814
+ var mediaObject = tmp$ret$2;
3815
+ var schema = mediaObject.a1m_1;
3816
+ var tmp_0;
3817
+ if (schema instanceof SchemaObject_0) {
3818
+ var tmp0_subject = schema.s1m_1;
3819
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
3820
+ var tmp_1;
3821
+ switch (tmp0) {
3822
+ case -1:
3823
+ case 5:
3824
+ tmp_1 = flatten_1(schema, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu_0(res.e1u_1), 'ResponseBody']));
3825
+ break;
3826
+ case 4:
3827
+ var tmp$ret$3;
3828
+ // Inline function 'kotlin.collections.orEmpty' call
3829
+ var tmp1_safe_receiver = schema.x1m_1;
3830
+ var tmp0_orEmpty_0 = tmp1_safe_receiver == null ? null : flatten_2(tmp1_safe_receiver, this$0, Common_getInstance().f1t([name, _StatusCode___get_value__impl__we50mu_0(res.e1u_1), 'ResponseBody']));
3831
+ var tmp0_elvis_lhs_0 = tmp0_orEmpty_0;
3832
+ tmp$ret$3 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
3570
3833
 
3571
- tmp_1 = tmp$ret$5;
3572
- break;
3573
- default:
3574
- tmp_1 = emptyList();
3575
- break;
3576
- }
3577
- tmp_0 = tmp_1;
3578
- } else {
3579
- if (schema instanceof ReferenceObject_0) {
3580
- tmp_0 = emptyList();
3581
- } else {
3582
- if (schema == null) {
3583
- tmp_0 = emptyList();
3584
- } else {
3585
- noWhenBranchMatchedException();
3586
- }
3587
- }
3834
+ tmp_1 = tmp$ret$3;
3835
+ break;
3836
+ default:
3837
+ tmp_1 = emptyList();
3838
+ break;
3588
3839
  }
3589
- tmp$ret$6 = tmp_0;
3590
- var list = tmp$ret$6;
3591
- addAll(tmp1_flatMapTo, list);
3840
+ tmp_0 = tmp_1;
3841
+ } else {
3842
+ tmp_0 = emptyList();
3592
3843
  }
3593
- tmp$ret$7 = tmp1_flatMapTo;
3594
- tmp$ret$8 = tmp$ret$7;
3595
- tmp = tmp$ret$8;
3844
+ tmp$ret$4 = tmp_0;
3845
+ var list = tmp$ret$4;
3846
+ addAll(tmp1_flatMapTo, list);
3847
+ }
3848
+ tmp$ret$5 = tmp1_flatMapTo;
3849
+ tmp$ret$6 = tmp$ret$5;
3850
+ tmp = tmp$ret$6;
3851
+ } else {
3852
+ if (response instanceof ReferenceObject_0) {
3853
+ tmp = emptyList();
3596
3854
  } else {
3597
3855
  noWhenBranchMatchedException();
3598
3856
  }
@@ -3604,10 +3862,10 @@
3604
3862
  var tmp0_subject = it;
3605
3863
  var tmp;
3606
3864
  if (tmp0_subject instanceof Literal) {
3607
- tmp = Common_getInstance().z1s([it.rj_1]);
3865
+ tmp = Common_getInstance().f1t([it.rj_1]);
3608
3866
  } else {
3609
3867
  if (tmp0_subject instanceof Param) {
3610
- tmp = Common_getInstance().z1s([it.si_1.dj_1]);
3868
+ tmp = Common_getInstance().f1t([it.si_1.dj_1]);
3611
3869
  } else {
3612
3870
  noWhenBranchMatchedException();
3613
3871
  }
@@ -3616,7 +3874,75 @@
3616
3874
  }
3617
3875
  function OpenApiParser_0(openApi) {
3618
3876
  Companion_getInstance_1();
3619
- this.r1t_1 = openApi;
3877
+ this.v1t_1 = openApi;
3878
+ }
3879
+ function toMap_1(_this__u8e3s4) {
3880
+ var tmp0_subject = _this__u8e3s4;
3881
+ var tmp;
3882
+ if (tmp0_subject instanceof Custom) {
3883
+ tmp = _this__u8e3s4.jl(VOID, VOID, true);
3884
+ } else {
3885
+ if (tmp0_subject instanceof Any) {
3886
+ tmp = _this__u8e3s4.hl(VOID, true);
3887
+ } else {
3888
+ if (tmp0_subject instanceof Primitive) {
3889
+ tmp = _this__u8e3s4.ll(VOID, VOID, true);
3890
+ } else {
3891
+ noWhenBranchMatchedException();
3892
+ }
3893
+ }
3894
+ }
3895
+ return tmp;
3896
+ }
3897
+ function isPrimitive_0(_this__u8e3s4) {
3898
+ var tmp0_subject = _this__u8e3s4;
3899
+ var tmp0 = tmp0_subject == null ? -1 : tmp0_subject.q4_1;
3900
+ var tmp;
3901
+ switch (tmp0) {
3902
+ case 0:
3903
+ tmp = true;
3904
+ break;
3905
+ case 1:
3906
+ tmp = true;
3907
+ break;
3908
+ case 2:
3909
+ tmp = true;
3910
+ break;
3911
+ case 3:
3912
+ tmp = true;
3913
+ break;
3914
+ case 4:
3915
+ tmp = false;
3916
+ break;
3917
+ case 5:
3918
+ tmp = false;
3919
+ break;
3920
+ case -1:
3921
+ tmp = false;
3922
+ break;
3923
+ default:
3924
+ noWhenBranchMatchedException();
3925
+ break;
3926
+ }
3927
+ return tmp;
3928
+ }
3929
+ function toIterable_0(_this__u8e3s4) {
3930
+ var tmp0_subject = _this__u8e3s4;
3931
+ var tmp;
3932
+ if (tmp0_subject instanceof Custom) {
3933
+ tmp = _this__u8e3s4.jl(VOID, true);
3934
+ } else {
3935
+ if (tmp0_subject instanceof Any) {
3936
+ tmp = _this__u8e3s4.hl(true);
3937
+ } else {
3938
+ if (tmp0_subject instanceof Primitive) {
3939
+ tmp = _this__u8e3s4.ll(VOID, true);
3940
+ } else {
3941
+ noWhenBranchMatchedException();
3942
+ }
3943
+ }
3944
+ }
3945
+ return tmp;
3620
3946
  }
3621
3947
  function filterNotNullValues_0(_this__u8e3s4) {
3622
3948
  var tmp$ret$8;