@flock/wirespec 0.10.19 → 0.10.21

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.
@@ -1,8 +1,8 @@
1
1
  (function (factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib.js', './kotlin-openapi-bindings.js', './kotlinx-serialization-kotlinx-serialization-json.js'], factory);
3
+ define(['exports', './wirespec-src-compiler-core.js', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-json.js', './kotlin-openapi-bindings.js', './kotlinx-serialization-kotlinx-serialization-core.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./wirespec-src-compiler-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./kotlin-openapi-bindings.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'));
5
+ factory(module.exports, require('./wirespec-src-compiler-core.js'), require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./kotlin-openapi-bindings.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'));
6
6
  else {
7
7
  if (typeof globalThis['wirespec-src-compiler-core'] === 'undefined') {
8
8
  throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-converter-openapi'.");
@@ -10,24 +10,28 @@
10
10
  if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
11
11
  throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'wirespec-src-converter-openapi'.");
12
12
  }
13
+ if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-json'] === 'undefined') {
14
+ throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json' is loaded prior to 'wirespec-src-converter-openapi'.");
15
+ }
13
16
  if (typeof globalThis['kotlin-openapi-bindings'] === 'undefined') {
14
17
  throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlin-openapi-bindings' was not found. Please, check whether 'kotlin-openapi-bindings' is loaded prior to 'wirespec-src-converter-openapi'.");
15
18
  }
16
- if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-json'] === 'undefined') {
17
- throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json' is loaded prior to 'wirespec-src-converter-openapi'.");
19
+ if (typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
20
+ throw new Error("Error loading module 'wirespec-src-converter-openapi'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'wirespec-src-converter-openapi'.");
18
21
  }
19
- globalThis['wirespec-src-converter-openapi'] = factory(typeof globalThis['wirespec-src-converter-openapi'] === 'undefined' ? {} : globalThis['wirespec-src-converter-openapi'], globalThis['wirespec-src-compiler-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlin-openapi-bindings'], globalThis['kotlinx-serialization-kotlinx-serialization-json']);
22
+ globalThis['wirespec-src-converter-openapi'] = factory(typeof globalThis['wirespec-src-converter-openapi'] === 'undefined' ? {} : globalThis['wirespec-src-converter-openapi'], globalThis['wirespec-src-compiler-core'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['kotlin-openapi-bindings'], globalThis['kotlinx-serialization-kotlinx-serialization-core']);
20
23
  }
21
- }(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) {
24
+ }(function (_, kotlin_community_flock_wirespec_compiler_core, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core) {
22
25
  'use strict';
23
26
  //region block: imports
24
27
  var imul = Math.imul;
25
28
  var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d2;
29
+ var Unit_instance = kotlin_kotlin.$_$.g4;
30
+ var VOID = kotlin_kotlin.$_$.g;
31
+ var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l;
26
32
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
27
33
  var split = kotlin_kotlin.$_$.od;
28
34
  var addAll = kotlin_kotlin.$_$.y4;
29
- var Unit_instance = kotlin_kotlin.$_$.g4;
30
- var VOID = kotlin_kotlin.$_$.g;
31
35
  var joinToString = kotlin_kotlin.$_$.s6;
32
36
  var protoOf = kotlin_kotlin.$_$.xa;
33
37
  var to = kotlin_kotlin.$_$.hg;
@@ -36,6 +40,8 @@
36
40
  var collectionSizeOrDefault = kotlin_kotlin.$_$.i5;
37
41
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
38
42
  var firstOrNull = kotlin_kotlin.$_$.g6;
43
+ var _Comment___get_value__impl__8r3pla = kotlin_community_flock_wirespec_compiler_core.$_$.c2;
44
+ var Comment = kotlin_community_flock_wirespec_compiler_core.$_$.i;
39
45
  var distinct = kotlin_kotlin.$_$.y5;
40
46
  var take = kotlin_kotlin.$_$.f8;
41
47
  var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
@@ -48,7 +54,7 @@
48
54
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
49
55
  var _StatusCode___init__impl__t1yi9q = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f2;
50
56
  var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
51
- var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.y;
57
+ var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.z;
52
58
  var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
53
59
  var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
54
60
  var noWhenBranchMatchedException = kotlin_kotlin.$_$.eg;
@@ -61,61 +67,69 @@
61
67
  var Type_NUMBER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l1;
62
68
  var Type_BOOLEAN_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
63
69
  var Type_OBJECT_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m1;
64
- var Any = kotlin_community_flock_wirespec_compiler_core.$_$.v;
65
- var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.w;
66
- var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.x;
67
- var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.o;
68
- var Param = kotlin_community_flock_wirespec_compiler_core.$_$.p;
69
- var InfoObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
70
+ var Any = kotlin_community_flock_wirespec_compiler_core.$_$.w;
71
+ var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.x;
72
+ var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.y;
73
+ var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.p;
74
+ var Param = kotlin_community_flock_wirespec_compiler_core.$_$.q;
75
+ var Emitter = kotlin_community_flock_wirespec_compiler_core.$_$.b;
76
+ var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
77
+ var SwaggerObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
78
+ var getKClass = kotlin_kotlin.$_$.e;
79
+ var arrayOf = kotlin_kotlin.$_$.vf;
80
+ var createKType = kotlin_kotlin.$_$.b;
81
+ var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o2;
82
+ var THROW_CCE = kotlin_kotlin.$_$.if;
83
+ var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
84
+ var isInterface = kotlin_kotlin.$_$.la;
85
+ var Emitted = kotlin_community_flock_wirespec_compiler_core.$_$.a;
70
86
  var listOf = kotlin_kotlin.$_$.g7;
71
- var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.q;
87
+ var InfoObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
88
+ var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.r;
72
89
  var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u;
73
90
  var _Path___init__impl__6uf4pw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y1;
74
91
  var ParameterLocation_PATH_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
75
- var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.m1;
76
- var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.q1;
77
- var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.r1;
78
- var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
79
- var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.p1;
80
- var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.o1;
81
- var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.s1;
82
- var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.n1;
92
+ var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.n1;
93
+ var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.r1;
94
+ var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.s1;
95
+ var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.m1;
96
+ var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.q1;
97
+ var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.p1;
98
+ var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.t1;
99
+ var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.o1;
83
100
  var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
84
101
  var PathItemObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
85
- var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
86
- var Type = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
102
+ var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
103
+ var Type = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
87
104
  var plus_0 = kotlin_kotlin.$_$.n7;
88
- var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.r;
105
+ var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.s;
89
106
  var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
90
- var SwaggerObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
91
107
  var toString = kotlin_kotlin.$_$.bb;
92
108
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
93
109
  var _Ref___init__impl__7qfl46 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c2;
94
110
  var emptyList = kotlin_kotlin.$_$.b6;
95
111
  var NotImplementedError = kotlin_kotlin.$_$.df;
96
- var Content = kotlin_community_flock_wirespec_compiler_core.$_$.k;
97
- var Request = kotlin_community_flock_wirespec_compiler_core.$_$.m;
112
+ var Content = kotlin_community_flock_wirespec_compiler_core.$_$.l;
113
+ var Request = kotlin_community_flock_wirespec_compiler_core.$_$.n;
98
114
  var emptyMap = kotlin_kotlin.$_$.c6;
99
115
  var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i2;
100
- var Response = kotlin_community_flock_wirespec_compiler_core.$_$.n;
116
+ var Response = kotlin_community_flock_wirespec_compiler_core.$_$.o;
101
117
  var HashSet_init_$Create$ = kotlin_kotlin.$_$.r;
102
- var DefinitionIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.i;
103
- var THROW_CCE = kotlin_kotlin.$_$.if;
118
+ var DefinitionIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.j;
104
119
  var KtMap = kotlin_kotlin.$_$.t4;
105
- var isInterface = kotlin_kotlin.$_$.la;
106
- var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
107
- var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.v1;
108
- var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.u1;
109
- var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.t1;
120
+ var Type_String_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.x1;
121
+ var Type_Number_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
122
+ var Type_Integer_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.v1;
123
+ var Type_Boolean_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.u1;
110
124
  var Ref__toString_impl_irb7zi = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d2;
111
125
  var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
112
- var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
126
+ var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
113
127
  var ensureNotNull = kotlin_kotlin.$_$.yf;
114
128
  var toSet = kotlin_kotlin.$_$.p8;
115
- var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.l;
129
+ var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.m;
116
130
  var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e2;
117
- var FieldIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.s;
118
- var Field = kotlin_community_flock_wirespec_compiler_core.$_$.t;
131
+ var FieldIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.t;
132
+ var Field = kotlin_community_flock_wirespec_compiler_core.$_$.u;
119
133
  var equals = kotlin_kotlin.$_$.q9;
120
134
  var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b2;
121
135
  var drop = kotlin_kotlin.$_$.a6;
@@ -130,13 +144,12 @@
130
144
  var StatusCode__toString_impl_6caewy = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h2;
131
145
  var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g2;
132
146
  var hashCode = kotlin_kotlin.$_$.w9;
133
- var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l;
134
147
  var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
135
148
  var listOf_0 = kotlin_kotlin.$_$.h7;
136
149
  var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.t1;
137
- var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.j;
138
- var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.g;
139
- var Union = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
150
+ var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.k;
151
+ var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.h;
152
+ var Union = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
140
153
  var ComponentsObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
141
154
  var _Path___init__impl__6uf4pw_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l2;
142
155
  var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
@@ -164,8 +177,8 @@
164
177
  var _MediaType___init__impl__i9gzb9 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j2;
165
178
  var MediaType = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
166
179
  var MediaTypeObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
167
- var InfoObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
168
180
  var OpenAPIObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
181
+ var InfoObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
169
182
  var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o1;
170
183
  var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k2;
171
184
  var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v2;
@@ -183,21 +196,28 @@
183
196
  //endregion
184
197
  //region block: pre-declaration
185
198
  initMetadataForObject(Common, 'Common');
186
- initMetadataForObject(OpenApiV2Emitter, 'OpenApiV2Emitter');
199
+ initMetadataForObject(OpenApiV2Emitter, 'OpenApiV2Emitter', VOID, Emitter);
187
200
  initMetadataForClass(FlattenRequest, 'FlattenRequest');
188
201
  initMetadataForClass(FlattenResponse, 'FlattenResponse');
189
202
  initMetadataForObject(OpenApiV2Parser, 'OpenApiV2Parser');
190
- initMetadataForObject(OpenApiV3Emitter, 'OpenApiV3Emitter');
203
+ initMetadataForObject(OpenApiV3Emitter, 'OpenApiV3Emitter', VOID, Emitter);
191
204
  initMetadataForClass(FlattenRequest_0, 'FlattenRequest');
192
205
  initMetadataForClass(FlattenResponse_0, 'FlattenResponse');
193
206
  initMetadataForObject(OpenApiV3Parser, 'OpenApiV3Parser');
194
207
  //endregion
195
208
  function Common$className$lambda(it) {
196
- return Companion_getInstance().h24(it);
209
+ return Companion_getInstance().i24(it);
210
+ }
211
+ function Common$json$lambda($this$Json) {
212
+ $this$Json.x15_1 = true;
213
+ return Unit_instance;
197
214
  }
198
215
  function Common() {
216
+ Common_instance = this;
217
+ var tmp = this;
218
+ tmp.n29_1 = Json(VOID, Common$json$lambda);
199
219
  }
200
- protoOf(Common).e2a = function (arg) {
220
+ protoOf(Common).o29 = function (arg) {
201
221
  // Inline function 'kotlin.collections.flatMap' call
202
222
  // Inline function 'kotlin.collections.flatMapTo' call
203
223
  var destination = ArrayList_init_$Create$();
@@ -213,7 +233,7 @@
213
233
  var tmp = destination;
214
234
  return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
215
235
  };
216
- protoOf(Common).f2a = function (_this__u8e3s4) {
236
+ protoOf(Common).p29 = function (_this__u8e3s4) {
217
237
  // Inline function 'kotlin.collections.mapNotNull' call
218
238
  // Inline function 'kotlin.collections.mapNotNullTo' call
219
239
  var destination = ArrayList_init_$Create$();
@@ -250,6 +270,8 @@
250
270
  };
251
271
  var Common_instance;
252
272
  function Common_getInstance() {
273
+ if (Common_instance == null)
274
+ new Common();
253
275
  return Common_instance;
254
276
  }
255
277
  function emit(_this__u8e3s4, $this, method) {
@@ -261,7 +283,7 @@
261
283
  while (tmp0_iterator.h()) {
262
284
  var element = tmp0_iterator.i();
263
285
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
264
- if (element.o23_1.equals(method)) {
286
+ if (element.p23_1.equals(method)) {
265
287
  destination.e(element);
266
288
  }
267
289
  }
@@ -271,17 +293,26 @@
271
293
  while (tmp0_iterator_0.h()) {
272
294
  var item = tmp0_iterator_0.i();
273
295
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
274
- var tmp$ret$3 = emit_0(item, OpenApiV2Emitter_instance);
296
+ var tmp$ret$3 = emit_0(item, OpenApiV2Emitter_getInstance());
275
297
  destination_0.e(tmp$ret$3);
276
298
  }
277
299
  return firstOrNull(destination_0);
278
300
  }
279
301
  function emit_0(_this__u8e3s4, $this) {
280
- var tmp = _this__u8e3s4.n23_1.b1();
302
+ var tmp1_operationId = _this__u8e3s4.o23_1.b1();
303
+ var tmp0_safe_receiver = _this__u8e3s4.n23_1;
304
+ var tmp;
305
+ var tmp_0 = tmp0_safe_receiver;
306
+ if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
307
+ tmp = null;
308
+ } else {
309
+ tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
310
+ }
311
+ var tmp2_description = tmp;
281
312
  // Inline function 'kotlin.collections.ifEmpty' call
282
313
  // Inline function 'kotlin.collections.mapNotNull' call
283
314
  // Inline function 'kotlin.collections.mapNotNullTo' call
284
- var this_0 = _this__u8e3s4.t23_1;
315
+ var this_0 = _this__u8e3s4.u23_1;
285
316
  var destination = ArrayList_init_$Create$();
286
317
  // Inline function 'kotlin.collections.forEach' call
287
318
  var tmp0_iterator = this_0.g();
@@ -289,30 +320,30 @@
289
320
  var element = tmp0_iterator.i();
290
321
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
291
322
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
292
- var tmp0_safe_receiver = element.a24_1;
293
- var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b24_1;
294
- if (tmp0_safe_receiver_0 == null)
323
+ var tmp0_safe_receiver_0 = element.b24_1;
324
+ var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.c24_1;
325
+ if (tmp0_safe_receiver_1 == null)
295
326
  null;
296
327
  else {
297
328
  // Inline function 'kotlin.let' call
298
329
  // Inline function 'kotlin.contracts.contract' call
299
- destination.e(tmp0_safe_receiver_0);
330
+ destination.e(tmp0_safe_receiver_1);
300
331
  }
301
332
  }
302
333
  var this_1 = distinct(destination);
303
334
  // Inline function 'kotlin.contracts.contract' call
304
- var tmp_0;
335
+ var tmp_1;
305
336
  if (this_1.l()) {
306
337
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
307
- tmp_0 = null;
338
+ tmp_1 = null;
308
339
  } else {
309
- tmp_0 = this_1;
340
+ tmp_1 = this_1;
310
341
  }
311
- var tmp_1 = tmp_0;
342
+ var tmp3_consumes = tmp_1;
312
343
  // Inline function 'kotlin.collections.ifEmpty' call
313
344
  // Inline function 'kotlin.collections.mapNotNull' call
314
345
  // Inline function 'kotlin.collections.mapNotNullTo' call
315
- var this_2 = _this__u8e3s4.u23_1;
346
+ var this_2 = _this__u8e3s4.v23_1;
316
347
  var destination_0 = ArrayList_init_$Create$();
317
348
  // Inline function 'kotlin.collections.forEach' call
318
349
  var tmp0_iterator_0 = this_2.g();
@@ -320,14 +351,14 @@
320
351
  var element_0 = tmp0_iterator_0.i();
321
352
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
322
353
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
323
- var tmp0_safe_receiver_1 = element_0.x23_1;
324
- var tmp0_safe_receiver_2 = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.b24_1;
325
- if (tmp0_safe_receiver_2 == null)
354
+ var tmp0_safe_receiver_2 = element_0.y23_1;
355
+ var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.c24_1;
356
+ if (tmp0_safe_receiver_3 == null)
326
357
  null;
327
358
  else {
328
359
  // Inline function 'kotlin.let' call
329
360
  // Inline function 'kotlin.contracts.contract' call
330
- destination_0.e(tmp0_safe_receiver_2);
361
+ destination_0.e(tmp0_safe_receiver_3);
331
362
  }
332
363
  }
333
364
  var this_3 = distinct(destination_0);
@@ -339,11 +370,11 @@
339
370
  } else {
340
371
  tmp_2 = this_3;
341
372
  }
342
- var tmp_3 = tmp_2;
373
+ var tmp4_produces = tmp_2;
343
374
  // Inline function 'kotlin.collections.map' call
344
375
  // Inline function 'kotlin.collections.mapNotNull' call
345
376
  // Inline function 'kotlin.collections.mapNotNullTo' call
346
- var this_4 = _this__u8e3s4.t23_1;
377
+ var this_4 = _this__u8e3s4.u23_1;
347
378
  var destination_1 = ArrayList_init_$Create$();
348
379
  // Inline function 'kotlin.collections.forEach' call
349
380
  var tmp0_iterator_1 = this_4.g();
@@ -351,13 +382,13 @@
351
382
  var element_1 = tmp0_iterator_1.i();
352
383
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
353
384
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
354
- var tmp0_safe_receiver_3 = element_1.a24_1;
355
- if (tmp0_safe_receiver_3 == null)
385
+ var tmp0_safe_receiver_4 = element_1.b24_1;
386
+ if (tmp0_safe_receiver_4 == null)
356
387
  null;
357
388
  else {
358
389
  // Inline function 'kotlin.let' call
359
390
  // Inline function 'kotlin.contracts.contract' call
360
- destination_1.e(tmp0_safe_receiver_3);
391
+ destination_1.e(tmp0_safe_receiver_4);
361
392
  }
362
393
  }
363
394
  var this_5 = take(destination_1, 1);
@@ -368,38 +399,38 @@
368
399
  var item = tmp0_iterator_2.i();
369
400
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
370
401
  var tmp0_in = ParameterLocation_BODY_getInstance();
371
- var tmp1_schema = OpenApiV2Emitter_instance.o24(item.c24_1);
372
- var tmp2_required = !item.d24_1;
402
+ var tmp1_schema = OpenApiV2Emitter_getInstance().p24(item.d24_1);
403
+ var tmp2_required = !item.e24_1;
373
404
  var tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
374
405
  destination_2.e(tmp$ret$16);
375
406
  }
376
- var tmp_4 = destination_2;
407
+ var tmp_3 = destination_2;
377
408
  // Inline function 'kotlin.collections.map' call
378
- var this_6 = _this__u8e3s4.q23_1;
409
+ var this_6 = _this__u8e3s4.r23_1;
379
410
  // Inline function 'kotlin.collections.mapTo' call
380
411
  var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10));
381
412
  var tmp0_iterator_3 = this_6.g();
382
413
  while (tmp0_iterator_3.h()) {
383
414
  var item_0 = tmp0_iterator_3.i();
384
415
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
385
- var tmp$ret$19 = emitParameter(item_0, OpenApiV2Emitter_instance, ParameterLocation_QUERY_getInstance());
416
+ var tmp$ret$19 = emitParameter(item_0, OpenApiV2Emitter_getInstance(), ParameterLocation_QUERY_getInstance());
386
417
  destination_3.e(tmp$ret$19);
387
418
  }
388
- var tmp_5 = plus(tmp_4, destination_3);
419
+ var tmp_4 = plus(tmp_3, destination_3);
389
420
  // Inline function 'kotlin.collections.map' call
390
- var this_7 = _this__u8e3s4.r23_1;
421
+ var this_7 = _this__u8e3s4.s23_1;
391
422
  // Inline function 'kotlin.collections.mapTo' call
392
423
  var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_7, 10));
393
424
  var tmp0_iterator_4 = this_7.g();
394
425
  while (tmp0_iterator_4.h()) {
395
426
  var item_1 = tmp0_iterator_4.i();
396
427
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
397
- var tmp$ret$22 = emitParameter(item_1, OpenApiV2Emitter_instance, ParameterLocation_HEADER_getInstance());
428
+ var tmp$ret$22 = emitParameter(item_1, OpenApiV2Emitter_getInstance(), ParameterLocation_HEADER_getInstance());
398
429
  destination_4.e(tmp$ret$22);
399
430
  }
400
- var tmp_6 = plus(tmp_5, destination_4);
431
+ var tmp5_parameters = plus(tmp_4, destination_4);
401
432
  // Inline function 'kotlin.collections.associate' call
402
- var this_8 = _this__u8e3s4.u23_1;
433
+ var this_8 = _this__u8e3s4.v23_1;
403
434
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_8, 10)), 16);
404
435
  // Inline function 'kotlin.collections.associateTo' call
405
436
  var destination_5 = LinkedHashMap_init_$Create$(capacity);
@@ -408,10 +439,19 @@
408
439
  var element_2 = tmp0_iterator_5.i();
409
440
  // Inline function 'kotlin.collections.plusAssign' call
410
441
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
411
- var tmp_7 = _StatusCode___init__impl__t1yi9q(element_2.v23_1);
412
- var tmp2_description = _this__u8e3s4.n23_1.toString() + ' ' + element_2.v23_1 + ' response';
442
+ var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.w23_1);
443
+ var tmp0_safe_receiver_5 = _this__u8e3s4.n23_1;
444
+ var tmp_6;
445
+ var tmp_7 = tmp0_safe_receiver_5;
446
+ if ((tmp_7 == null ? null : new Comment(tmp_7)) == null) {
447
+ tmp_6 = null;
448
+ } else {
449
+ tmp_6 = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver_5);
450
+ }
451
+ var tmp1_elvis_lhs = tmp_6;
452
+ var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.o23_1.b1() + ' ' + element_2.w23_1 + ' response' : tmp1_elvis_lhs;
413
453
  // Inline function 'kotlin.collections.associate' call
414
- var this_9 = element_2.w23_1;
454
+ var this_9 = element_2.x23_1;
415
455
  var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_9, 10)), 16);
416
456
  // Inline function 'kotlin.collections.associateTo' call
417
457
  var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
@@ -420,41 +460,41 @@
420
460
  var element_3 = tmp0_iterator_6.i();
421
461
  // Inline function 'kotlin.collections.plusAssign' call
422
462
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
423
- var pair = to(element_3.i24_1.b1(), new HeaderObject(VOID, element_3.j24_1.b1(), VOID, element_3.j24_1.e24() ? OpenApiV2Emitter_instance.o24(element_3.j24_1) : null));
463
+ var pair = to(element_3.j24_1.b1(), new HeaderObject(VOID, element_3.k24_1.b1(), VOID, element_3.k24_1.f24() ? OpenApiV2Emitter_getInstance().p24(element_3.k24_1) : null));
424
464
  destination_6.m2(pair.ce_1, pair.de_1);
425
465
  }
426
- var tmp0_safe_receiver_4 = element_2.x23_1;
466
+ var tmp2_safe_receiver = element_2.y23_1;
427
467
  var tmp_8;
428
- if (tmp0_safe_receiver_4 == null) {
468
+ if (tmp2_safe_receiver == null) {
429
469
  tmp_8 = null;
430
470
  } else {
431
471
  // Inline function 'kotlin.takeIf' call
432
472
  // Inline function 'kotlin.contracts.contract' call
433
473
  var tmp_9;
434
474
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
435
- var tmp_10 = tmp0_safe_receiver_4.c24_1;
475
+ var tmp_10 = tmp2_safe_receiver.d24_1;
436
476
  if (!(tmp_10 instanceof Unit)) {
437
- tmp_9 = tmp0_safe_receiver_4;
477
+ tmp_9 = tmp2_safe_receiver;
438
478
  } else {
439
479
  tmp_9 = null;
440
480
  }
441
481
  tmp_8 = tmp_9;
442
482
  }
443
- var tmp1_safe_receiver = tmp_8;
483
+ var tmp3_safe_receiver = tmp_8;
444
484
  var tmp_11;
445
- if (tmp1_safe_receiver == null) {
485
+ if (tmp3_safe_receiver == null) {
446
486
  tmp_11 = null;
447
487
  } else {
448
488
  // Inline function 'kotlin.let' call
449
489
  // Inline function 'kotlin.contracts.contract' call
450
490
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
451
491
  var tmp_12;
452
- switch (tmp1_safe_receiver.c24_1.e24()) {
492
+ switch (tmp3_safe_receiver.d24_1.f24()) {
453
493
  case false:
454
- tmp_12 = OpenApiV2Emitter_instance.o24(tmp1_safe_receiver.c24_1);
494
+ tmp_12 = OpenApiV2Emitter_getInstance().p24(tmp3_safe_receiver.d24_1);
455
495
  break;
456
496
  case true:
457
- tmp_12 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), OpenApiV2Emitter_instance.o24(tmp1_safe_receiver.c24_1));
497
+ tmp_12 = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), OpenApiV2Emitter_getInstance().p24(tmp3_safe_receiver.d24_1));
458
498
  break;
459
499
  default:
460
500
  noWhenBranchMatchedException();
@@ -462,22 +502,22 @@
462
502
  }
463
503
  tmp_11 = tmp_12;
464
504
  }
465
- var tmp4_schema = tmp_11;
466
- var pair_0 = to(new StatusCode(tmp_7), new ResponseObject(tmp2_description, tmp4_schema, destination_6));
505
+ var tmp6_schema = tmp_11;
506
+ var pair_0 = to(new StatusCode(tmp_5), new ResponseObject(tmp4_description, tmp6_schema, destination_6));
467
507
  destination_5.m2(pair_0.ce_1, pair_0.de_1);
468
508
  }
469
- return new OperationObject(VOID, VOID, VOID, VOID, tmp, tmp_1, tmp_3, tmp_6, destination_5);
509
+ return new OperationObject(VOID, VOID, tmp2_description, VOID, tmp1_operationId, tmp3_consumes, tmp4_produces, tmp5_parameters, destination_5);
470
510
  }
471
511
  function emitSegment(_this__u8e3s4, $this) {
472
512
  return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV2Emitter$emitSegment$lambda);
473
513
  }
474
514
  function emitParameter(_this__u8e3s4, $this, location) {
475
- var tmp1_name = _this__u8e3s4.i24_1.b1();
476
- var tmp2_type = emitType_0(_this__u8e3s4.j24_1, $this);
515
+ var tmp1_name = _this__u8e3s4.j24_1.b1();
516
+ var tmp2_type = emitType_0(_this__u8e3s4.k24_1, $this);
477
517
  var tmp;
478
- switch (_this__u8e3s4.j24_1.e24()) {
518
+ switch (_this__u8e3s4.k24_1.f24()) {
479
519
  case true:
480
- var emit = $this.o24(_this__u8e3s4.j24_1);
520
+ var emit = $this.p24(_this__u8e3s4.k24_1);
481
521
  var tmp_0;
482
522
  if (emit instanceof ReferenceObject) {
483
523
  tmp_0 = emit;
@@ -499,7 +539,7 @@
499
539
  break;
500
540
  }
501
541
  var tmp3_items = tmp;
502
- var tmp4_required = !_this__u8e3s4.k24_1;
542
+ var tmp4_required = !_this__u8e3s4.l24_1;
503
543
  return new ParameterObject(tmp1_name, location, VOID, tmp4_required, VOID, tmp2_type, tmp3_items);
504
544
  }
505
545
  function emitType(_this__u8e3s4, $this) {
@@ -525,12 +565,12 @@
525
565
  }
526
566
  function emitType_0(_this__u8e3s4, $this) {
527
567
  var tmp;
528
- if (_this__u8e3s4.e24()) {
568
+ if (_this__u8e3s4.f24()) {
529
569
  tmp = Type_ARRAY_getInstance();
530
570
  } else {
531
571
  var tmp_0;
532
572
  if (_this__u8e3s4 instanceof Primitive) {
533
- tmp_0 = emitType(_this__u8e3s4.i23_1, $this);
573
+ tmp_0 = emitType(_this__u8e3s4.j23_1, $this);
534
574
  } else {
535
575
  if (_this__u8e3s4 instanceof Custom) {
536
576
  tmp_0 = Type_OBJECT_getInstance();
@@ -553,10 +593,10 @@
553
593
  function OpenApiV2Emitter$emitSegment$lambda(it) {
554
594
  var tmp;
555
595
  if (it instanceof Param) {
556
- tmp = '{' + it.m24_1.b1() + '}';
596
+ tmp = '{' + it.n24_1.b1() + '}';
557
597
  } else {
558
598
  if (it instanceof Literal) {
559
- tmp = it.v24_1;
599
+ tmp = it.w24_1;
560
600
  } else {
561
601
  noWhenBranchMatchedException();
562
602
  }
@@ -564,8 +604,44 @@
564
604
  return tmp;
565
605
  }
566
606
  function OpenApiV2Emitter() {
607
+ OpenApiV2Emitter_instance = this;
608
+ Emitter.call(this, get_noLogger());
609
+ this.s29_1 = '';
567
610
  }
611
+ protoOf(OpenApiV2Emitter).j25 = function () {
612
+ return this.s29_1;
613
+ };
568
614
  protoOf(OpenApiV2Emitter).p22 = function (ast) {
615
+ // Inline function 'kotlinx.serialization.encodeToString' call
616
+ var this_0 = Common_getInstance().n29_1;
617
+ var value = this.t29(ast);
618
+ // Inline function 'kotlinx.serialization.serializer' call
619
+ var this_1 = this_0.mo();
620
+ // Inline function 'kotlinx.serialization.internal.cast' call
621
+ var this_2 = serializer(this_1, createKType(getKClass(SwaggerObject), arrayOf([]), false));
622
+ var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
623
+ var tmp$ret$2 = this_0.b15(tmp$ret$1, value);
624
+ return listOf(new Emitted('SwaggerObject', tmp$ret$2));
625
+ };
626
+ protoOf(OpenApiV2Emitter).n25 = function (type, ast) {
627
+ return this.d26();
628
+ };
629
+ protoOf(OpenApiV2Emitter).u25 = function (enum_0) {
630
+ return this.d26();
631
+ };
632
+ protoOf(OpenApiV2Emitter).q25 = function (refined) {
633
+ return this.d26();
634
+ };
635
+ protoOf(OpenApiV2Emitter).y25 = function (endpoint) {
636
+ return this.d26();
637
+ };
638
+ protoOf(OpenApiV2Emitter).w25 = function (union) {
639
+ return this.d26();
640
+ };
641
+ protoOf(OpenApiV2Emitter).x25 = function (channel) {
642
+ return this.d26();
643
+ };
644
+ protoOf(OpenApiV2Emitter).t29 = function (ast) {
569
645
  var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
570
646
  var tmp_0 = listOf('application/json');
571
647
  var tmp_1 = listOf('application/json');
@@ -586,8 +662,8 @@
586
662
  var tmp0_iterator_0 = destination.g();
587
663
  while (tmp0_iterator_0.h()) {
588
664
  var element_0 = tmp0_iterator_0.i();
589
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
590
- var key = element_0.p23_1;
665
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
666
+ var key = element_0.q23_1;
591
667
  // Inline function 'kotlin.collections.getOrPut' call
592
668
  var value = destination_0.f2(key);
593
669
  var tmp_2;
@@ -608,12 +684,12 @@
608
684
  var tmp0_iterator_1 = destination_0.z().g();
609
685
  while (tmp0_iterator_1.h()) {
610
686
  var item = tmp0_iterator_1.i();
611
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
687
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
612
688
  // Inline function 'kotlin.collections.component1' call
613
689
  var segments = item.a1();
614
690
  // Inline function 'kotlin.collections.component2' call
615
691
  var endpoints = item.b1();
616
- var tmp_3 = _Path___init__impl__6uf4pw(emitSegment(segments, OpenApiV2Emitter_instance));
692
+ var tmp_3 = _Path___init__impl__6uf4pw(emitSegment(segments, OpenApiV2Emitter_getInstance()));
617
693
  // Inline function 'kotlin.collections.map' call
618
694
  // Inline function 'kotlin.collections.filterIsInstance' call
619
695
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
@@ -630,21 +706,21 @@
630
706
  var tmp0_iterator_3 = destination_2.g();
631
707
  while (tmp0_iterator_3.h()) {
632
708
  var item_0 = tmp0_iterator_3.i();
633
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
709
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
634
710
  var tmp0_in = ParameterLocation_PATH_getInstance();
635
- var tmp1_name = item_0.m24_1.b1();
636
- var tmp2_type = emitType_0(item_0.n24_1, OpenApiV2Emitter_instance);
711
+ var tmp1_name = item_0.n24_1.b1();
712
+ var tmp2_type = emitType_0(item_0.o24_1, OpenApiV2Emitter_getInstance());
637
713
  var tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type);
638
714
  destination_3.e(tmp$ret$12);
639
715
  }
640
- var tmp1_get = emit(endpoints, OpenApiV2Emitter_instance, Method_GET_getInstance());
641
- var tmp2_post = emit(endpoints, OpenApiV2Emitter_instance, Method_POST_getInstance());
642
- var tmp3_put = emit(endpoints, OpenApiV2Emitter_instance, Method_PUT_getInstance());
643
- var tmp4_delete = emit(endpoints, OpenApiV2Emitter_instance, Method_DELETE_getInstance());
644
- var tmp5_patch = emit(endpoints, OpenApiV2Emitter_instance, Method_PATCH_getInstance());
645
- var tmp6_options = emit(endpoints, OpenApiV2Emitter_instance, Method_OPTIONS_getInstance());
646
- var tmp7_trace = emit(endpoints, OpenApiV2Emitter_instance, Method_TRACE_getInstance());
647
- var tmp8_head = emit(endpoints, OpenApiV2Emitter_instance, Method_HEAD_getInstance());
716
+ var tmp1_get = emit(endpoints, OpenApiV2Emitter_getInstance(), Method_GET_getInstance());
717
+ var tmp2_post = emit(endpoints, OpenApiV2Emitter_getInstance(), Method_POST_getInstance());
718
+ var tmp3_put = emit(endpoints, OpenApiV2Emitter_getInstance(), Method_PUT_getInstance());
719
+ var tmp4_delete = emit(endpoints, OpenApiV2Emitter_getInstance(), Method_DELETE_getInstance());
720
+ var tmp5_patch = emit(endpoints, OpenApiV2Emitter_getInstance(), Method_PATCH_getInstance());
721
+ var tmp6_options = emit(endpoints, OpenApiV2Emitter_getInstance(), Method_OPTIONS_getInstance());
722
+ var tmp7_trace = emit(endpoints, OpenApiV2Emitter_getInstance(), Method_TRACE_getInstance());
723
+ var tmp8_head = emit(endpoints, OpenApiV2Emitter_getInstance(), Method_HEAD_getInstance());
648
724
  var tmp$ret$15 = to(new Path(tmp_3), new PathItemObject(VOID, VOID, VOID, tmp1_get, tmp3_put, tmp2_post, tmp4_delete, tmp6_options, tmp8_head, tmp5_patch, tmp7_trace, VOID, destination_3));
649
725
  destination_1.e(tmp$ret$15);
650
726
  }
@@ -667,10 +743,10 @@
667
743
  while (tmp0_iterator_5.h()) {
668
744
  var element_3 = tmp0_iterator_5.i();
669
745
  // Inline function 'kotlin.collections.plusAssign' call
670
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
671
- var tmp_5 = element_3.z24_1.b1();
746
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
747
+ var tmp_5 = element_3.a25_1.b1();
672
748
  var tmp0_type = Type_STRING_getInstance();
673
- var tmp1_pattern = element_3.a25_1.q25_1;
749
+ var tmp1_pattern = element_3.b25_1.s25_1;
674
750
  var pair = to(tmp_5, new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_pattern, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_type));
675
751
  destination_5.m2(pair.ce_1, pair.de_1);
676
752
  }
@@ -693,10 +769,10 @@
693
769
  while (tmp0_iterator_7.h()) {
694
770
  var element_5 = tmp0_iterator_7.i();
695
771
  // Inline function 'kotlin.collections.plusAssign' call
696
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
772
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
697
773
  var tmp_7 = element_5.z22_1.b1();
698
774
  // Inline function 'kotlin.collections.associate' call
699
- var this_0 = element_5.a23_1.n25_1;
775
+ var this_0 = element_5.a23_1.p25_1;
700
776
  var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
701
777
  // Inline function 'kotlin.collections.associateTo' call
702
778
  var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
@@ -704,21 +780,21 @@
704
780
  while (tmp0_iterator_8.h()) {
705
781
  var element_6 = tmp0_iterator_8.i();
706
782
  // Inline function 'kotlin.collections.plusAssign' call
707
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
708
- var pair_0 = OpenApiV2Emitter_instance.s24(element_6);
783
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
784
+ var pair_0 = OpenApiV2Emitter_getInstance().t24(element_6);
709
785
  destination_8.m2(pair_0.ce_1, pair_0.de_1);
710
786
  }
711
787
  // Inline function 'kotlin.takeIf' call
712
788
  // Inline function 'kotlin.collections.map' call
713
789
  // Inline function 'kotlin.collections.filter' call
714
790
  // Inline function 'kotlin.collections.filterTo' call
715
- var this_1 = element_5.a23_1.n25_1;
791
+ var this_1 = element_5.a23_1.p25_1;
716
792
  var destination_9 = ArrayList_init_$Create$();
717
793
  var tmp0_iterator_9 = this_1.g();
718
794
  while (tmp0_iterator_9.h()) {
719
795
  var element_7 = tmp0_iterator_9.i();
720
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
721
- if (!element_7.k24_1) {
796
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
797
+ if (!element_7.l24_1) {
722
798
  destination_9.e(element_7);
723
799
  }
724
800
  }
@@ -727,13 +803,13 @@
727
803
  var tmp0_iterator_10 = destination_9.g();
728
804
  while (tmp0_iterator_10.h()) {
729
805
  var item_1 = tmp0_iterator_10.i();
730
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
731
- var tmp$ret$31 = item_1.i24_1.b1();
806
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
807
+ var tmp$ret$31 = item_1.j24_1.b1();
732
808
  destination_10.e(tmp$ret$31);
733
809
  }
734
810
  // Inline function 'kotlin.contracts.contract' call
735
811
  var tmp_8;
736
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
812
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
737
813
  // Inline function 'kotlin.collections.isNotEmpty' call
738
814
  if (!destination_10.l()) {
739
815
  tmp_8 = destination_10;
@@ -763,17 +839,17 @@
763
839
  while (tmp0_iterator_12.h()) {
764
840
  var element_9 = tmp0_iterator_12.i();
765
841
  // Inline function 'kotlin.collections.plusAssign' call
766
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
767
- var tmp_10 = element_9.c25_1.b1();
842
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
843
+ var tmp_10 = element_9.d25_1.b1();
768
844
  var tmp0_type_0 = Type_STRING_getInstance();
769
845
  // Inline function 'kotlin.collections.map' call
770
- var this_2 = element_9.d25_1;
846
+ var this_2 = element_9.e25_1;
771
847
  // Inline function 'kotlin.collections.mapTo' call
772
848
  var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
773
849
  var tmp0_iterator_13 = this_2.g();
774
850
  while (tmp0_iterator_13.h()) {
775
851
  var item_2 = tmp0_iterator_13.i();
776
- // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
852
+ // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
777
853
  var tmp$ret$42 = JsonPrimitive(item_2);
778
854
  destination_13.e(tmp$ret$42);
779
855
  }
@@ -782,17 +858,17 @@
782
858
  }
783
859
  return new SwaggerObject('2.0', tmp, VOID, VOID, VOID, tmp_0, tmp_1, tmp_4, plus_0(tmp_9, destination_12));
784
860
  };
785
- protoOf(OpenApiV2Emitter).s24 = function (_this__u8e3s4) {
786
- return to(_this__u8e3s4.i24_1.b1(), this.o24(_this__u8e3s4.j24_1));
861
+ protoOf(OpenApiV2Emitter).t24 = function (_this__u8e3s4) {
862
+ return to(_this__u8e3s4.j24_1.b1(), this.p24(_this__u8e3s4.k24_1));
787
863
  };
788
- protoOf(OpenApiV2Emitter).o24 = function (_this__u8e3s4) {
864
+ protoOf(OpenApiV2Emitter).p24 = function (_this__u8e3s4) {
789
865
  // Inline function 'kotlin.let' call
790
866
  var tmp;
791
867
  if (_this__u8e3s4 instanceof Custom) {
792
868
  tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.v22_1));
793
869
  } else {
794
870
  if (_this__u8e3s4 instanceof Primitive) {
795
- tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType(_this__u8e3s4.i23_1, this));
871
+ tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType(_this__u8e3s4.j23_1, this));
796
872
  } else {
797
873
  if (_this__u8e3s4 instanceof Any) {
798
874
  var message = 'Cannot map Any';
@@ -810,10 +886,12 @@
810
886
  // Inline function 'kotlin.contracts.contract' call
811
887
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
812
888
  var it = tmp;
813
- return _this__u8e3s4.e24() ? new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), it) : it;
889
+ return _this__u8e3s4.f24() ? new SchemaObject(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance(), it) : it;
814
890
  };
815
891
  var OpenApiV2Emitter_instance;
816
892
  function OpenApiV2Emitter_getInstance() {
893
+ if (OpenApiV2Emitter_instance == null)
894
+ new OpenApiV2Emitter();
817
895
  return OpenApiV2Emitter_instance;
818
896
  }
819
897
  function parseEndpoints(_this__u8e3s4, $this) {
@@ -940,7 +1018,7 @@
940
1018
  tmp_1 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, schema);
941
1019
  } else {
942
1020
  if (schema instanceof SchemaObject) {
943
- tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_instance.e2a([name, 'RequestBody']));
1021
+ tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_getInstance().o29([name, 'RequestBody']));
944
1022
  } else {
945
1023
  if (schema == null) {
946
1024
  var reason = 'Not yet implemented';
@@ -1059,7 +1137,7 @@
1059
1137
  tmp_11 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver);
1060
1138
  } else {
1061
1139
  if (tmp1_safe_receiver instanceof SchemaObject) {
1062
- tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_instance.e2a([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
1140
+ tmp_11 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_getInstance().o29([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']));
1063
1141
  } else {
1064
1142
  noWhenBranchMatchedException();
1065
1143
  }
@@ -1078,7 +1156,7 @@
1078
1156
  while (tmp0_iterator_12.h()) {
1079
1157
  var e = tmp0_iterator_12.i();
1080
1158
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
1081
- var key = to(e.v23_1, e.x23_1);
1159
+ var key = to(e.w23_1, e.y23_1);
1082
1160
  if (set.e(key)) {
1083
1161
  list_1.e(e);
1084
1162
  }
@@ -1139,7 +1217,7 @@
1139
1217
  while (tmp0_iterator_1.h()) {
1140
1218
  var element_0 = tmp0_iterator_1.i();
1141
1219
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
1142
- var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_instance.e2a([element_0.a1()]));
1220
+ var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_getInstance().o29([element_0.a1()]));
1143
1221
  addAll(destination_0, list);
1144
1222
  }
1145
1223
  return destination_0;
@@ -1420,7 +1498,7 @@
1420
1498
  while (tmp0_iterator_0.h()) {
1421
1499
  var e = tmp0_iterator_0.i();
1422
1500
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
1423
- var key = e.i24_1;
1501
+ var key = e.j24_1;
1424
1502
  if (set.e(key)) {
1425
1503
  list_0.e(e);
1426
1504
  }
@@ -1459,7 +1537,7 @@
1459
1537
  tmp_9 = emptyList();
1460
1538
  } else {
1461
1539
  if (value instanceof SchemaObject) {
1462
- tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.e2a([name, key_0]));
1540
+ tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().o29([name, key_0]));
1463
1541
  } else {
1464
1542
  noWhenBranchMatchedException();
1465
1543
  }
@@ -1518,7 +1596,7 @@
1518
1596
  var key_1 = element_2.a1();
1519
1597
  // Inline function 'kotlin.collections.component2' call
1520
1598
  var value_0 = element_2.b1();
1521
- var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_instance.e2a([name, key_1]));
1599
+ var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_getInstance().o29([name, key_1]));
1522
1600
  addAll(destination_3, list_3);
1523
1601
  }
1524
1602
 
@@ -1533,7 +1611,7 @@
1533
1611
  tmp_11 = emptyList();
1534
1612
  } else {
1535
1613
  if (it_0 instanceof SchemaObject) {
1536
- tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_instance.e2a([name, 'Array']));
1614
+ tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().o29([name, 'Array']));
1537
1615
  } else {
1538
1616
  if (it_0 == null) {
1539
1617
  tmp_11 = emptyList();
@@ -1591,7 +1669,7 @@
1591
1669
  }
1592
1670
  tmp = tmp_0;
1593
1671
  } else if (!(schema.d1n_1 == null)) {
1594
- tmp = new Custom(Common_instance.e2a([getReference(reference, OpenApiV2Parser_instance)]), false, false);
1672
+ tmp = new Custom(Common_getInstance().o29([getReference(reference, OpenApiV2Parser_instance)]), false, false);
1595
1673
  } else if (isPrimitive(schema.e1n_1)) {
1596
1674
  tmp = new Primitive(toPrimitive(ensureNotNull(schema.e1n_1), OpenApiV2Parser_instance), false, false);
1597
1675
  } else {
@@ -1604,7 +1682,7 @@
1604
1682
  tmp_2 = toIterable(toReference(_this__u8e3s4, OpenApiV2Parser_instance, items));
1605
1683
  } else {
1606
1684
  if (items instanceof SchemaObject) {
1607
- tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_instance.e2a([getReference(reference, OpenApiV2Parser_instance), 'Array'])));
1685
+ tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_getInstance().o29([getReference(reference, OpenApiV2Parser_instance), 'Array'])));
1608
1686
  } else {
1609
1687
  if (items == null) {
1610
1688
  var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.n1n_1);
@@ -1618,10 +1696,10 @@
1618
1696
  } else {
1619
1697
  var tmp_3;
1620
1698
  if (refOrSchema instanceof SchemaObject) {
1621
- tmp_3 = new Custom(Common_instance.e2a([getReference(reference, OpenApiV2Parser_instance)]), false);
1699
+ tmp_3 = new Custom(Common_getInstance().o29([getReference(reference, OpenApiV2Parser_instance)]), false);
1622
1700
  } else {
1623
1701
  if (refOrSchema instanceof ReferenceObject) {
1624
- tmp_3 = new Custom(Common_instance.e2a([getReference(refOrSchema, OpenApiV2Parser_instance)]), false);
1702
+ tmp_3 = new Custom(Common_getInstance().o29([getReference(refOrSchema, OpenApiV2Parser_instance)]), false);
1625
1703
  } else {
1626
1704
  noWhenBranchMatchedException();
1627
1705
  }
@@ -1727,7 +1805,7 @@
1727
1805
  return tmp;
1728
1806
  }
1729
1807
  function toOperationList(_this__u8e3s4, $this) {
1730
- var tmp = Common_instance;
1808
+ var tmp = Common_getInstance();
1731
1809
  // Inline function 'kotlin.collections.associateWith' call
1732
1810
  var this_0 = get_entries();
1733
1811
  var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16));
@@ -1769,7 +1847,7 @@
1769
1847
  var tmp$ret$0 = tmp_0;
1770
1848
  result.m2(element, tmp$ret$0);
1771
1849
  }
1772
- return tmp.f2a(result);
1850
+ return tmp.p29(result);
1773
1851
  }
1774
1852
  function getReference(_this__u8e3s4, $this) {
1775
1853
  return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.n1n_1), ['/']).k(2);
@@ -1852,7 +1930,7 @@
1852
1930
  var tmp;
1853
1931
  if (value instanceof SchemaObject) {
1854
1932
  var tmp_0 = new FieldIdentifier(key);
1855
- var tmp_1 = !(value.d1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.e2a([name, key])) : equals(value.e1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.e2a([name, key, 'Array'])) : toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_instance.e2a([name, key]));
1933
+ var tmp_1 = !(value.d1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().o29([name, key])) : equals(value.e1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().o29([name, key, 'Array'])) : toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().o29([name, key]));
1856
1934
  var tmp1_safe_receiver = schema.c1n_1;
1857
1935
  var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
1858
1936
  tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
@@ -1880,7 +1958,7 @@
1880
1958
  var it = resolve_3(_this__u8e3s4, $this, parameter);
1881
1959
  var tmp;
1882
1960
  if (!(parameter.f1j_1 == null)) {
1883
- tmp = new Custom(Common_instance.e2a([name, 'Parameter', it.k1i_1]), false);
1961
+ tmp = new Custom(Common_getInstance().o29([name, 'Parameter', it.k1i_1]), false);
1884
1962
  } else {
1885
1963
  var type = it.p1i_1;
1886
1964
  var tmp_0;
@@ -2050,7 +2128,7 @@
2050
2128
  // Inline function 'kotlin.let' call
2051
2129
  // Inline function 'kotlin.contracts.contract' call
2052
2130
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
2053
- tmp = Common_instance.e2a([tmp0_safe_receiver]);
2131
+ tmp = Common_getInstance().o29([tmp0_safe_receiver]);
2054
2132
  }
2055
2133
  return tmp;
2056
2134
  }
@@ -2072,21 +2150,21 @@
2072
2150
  return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV2Parser$toName$lambda);
2073
2151
  }
2074
2152
  function FlattenRequest(path, pathItem, method, operation, type) {
2075
- this.g2a_1 = path;
2076
- this.h2a_1 = pathItem;
2077
- this.i2a_1 = method;
2078
- this.j2a_1 = operation;
2079
- this.k2a_1 = type;
2153
+ this.u29_1 = path;
2154
+ this.v29_1 = pathItem;
2155
+ this.w29_1 = method;
2156
+ this.x29_1 = operation;
2157
+ this.y29_1 = type;
2080
2158
  }
2081
2159
  protoOf(FlattenRequest).toString = function () {
2082
- return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.g2a_1) + ', pathItem=' + this.h2a_1.toString() + ', method=' + this.i2a_1.toString() + ', operation=' + this.j2a_1.toString() + ', type=' + this.k2a_1 + ')';
2160
+ return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.u29_1) + ', pathItem=' + this.v29_1.toString() + ', method=' + this.w29_1.toString() + ', operation=' + this.x29_1.toString() + ', type=' + this.y29_1 + ')';
2083
2161
  };
2084
2162
  protoOf(FlattenRequest).hashCode = function () {
2085
- var result = Path__hashCode_impl_go73kd(this.g2a_1);
2086
- result = imul(result, 31) + this.h2a_1.hashCode() | 0;
2087
- result = imul(result, 31) + this.i2a_1.hashCode() | 0;
2088
- result = imul(result, 31) + this.j2a_1.hashCode() | 0;
2089
- result = imul(result, 31) + getStringHashCode(this.k2a_1) | 0;
2163
+ var result = Path__hashCode_impl_go73kd(this.u29_1);
2164
+ result = imul(result, 31) + this.v29_1.hashCode() | 0;
2165
+ result = imul(result, 31) + this.w29_1.hashCode() | 0;
2166
+ result = imul(result, 31) + this.x29_1.hashCode() | 0;
2167
+ result = imul(result, 31) + getStringHashCode(this.y29_1) | 0;
2090
2168
  return result;
2091
2169
  };
2092
2170
  protoOf(FlattenRequest).equals = function (other) {
@@ -2095,15 +2173,15 @@
2095
2173
  if (!(other instanceof FlattenRequest))
2096
2174
  return false;
2097
2175
  var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
2098
- if (!(this.g2a_1 === tmp0_other_with_cast.g2a_1))
2176
+ if (!(this.u29_1 === tmp0_other_with_cast.u29_1))
2099
2177
  return false;
2100
- if (!this.h2a_1.equals(tmp0_other_with_cast.h2a_1))
2178
+ if (!this.v29_1.equals(tmp0_other_with_cast.v29_1))
2101
2179
  return false;
2102
- if (!this.i2a_1.equals(tmp0_other_with_cast.i2a_1))
2180
+ if (!this.w29_1.equals(tmp0_other_with_cast.w29_1))
2103
2181
  return false;
2104
- if (!this.j2a_1.equals(tmp0_other_with_cast.j2a_1))
2182
+ if (!this.x29_1.equals(tmp0_other_with_cast.x29_1))
2105
2183
  return false;
2106
- if (!(this.k2a_1 === tmp0_other_with_cast.k2a_1))
2184
+ if (!(this.y29_1 === tmp0_other_with_cast.y29_1))
2107
2185
  return false;
2108
2186
  return true;
2109
2187
  };
@@ -2165,25 +2243,25 @@
2165
2243
  return destination_2;
2166
2244
  }
2167
2245
  function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
2168
- this.l2a_1 = path;
2169
- this.m2a_1 = pathItem;
2170
- this.n2a_1 = method;
2171
- this.o2a_1 = operation;
2172
- this.p2a_1 = statusCode;
2173
- this.q2a_1 = response;
2174
- this.r2a_1 = type;
2246
+ this.z29_1 = path;
2247
+ this.a2a_1 = pathItem;
2248
+ this.b2a_1 = method;
2249
+ this.c2a_1 = operation;
2250
+ this.d2a_1 = statusCode;
2251
+ this.e2a_1 = response;
2252
+ this.f2a_1 = type;
2175
2253
  }
2176
2254
  protoOf(FlattenResponse).toString = function () {
2177
- return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.l2a_1) + ', pathItem=' + this.m2a_1.toString() + ', method=' + this.n2a_1.toString() + ', operation=' + this.o2a_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.p2a_1) + ', response=' + toString(this.q2a_1) + ', type=' + this.r2a_1 + ')';
2255
+ return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.z29_1) + ', pathItem=' + this.a2a_1.toString() + ', method=' + this.b2a_1.toString() + ', operation=' + this.c2a_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.d2a_1) + ', response=' + toString(this.e2a_1) + ', type=' + this.f2a_1 + ')';
2178
2256
  };
2179
2257
  protoOf(FlattenResponse).hashCode = function () {
2180
- var result = Path__hashCode_impl_go73kd(this.l2a_1);
2181
- result = imul(result, 31) + this.m2a_1.hashCode() | 0;
2182
- result = imul(result, 31) + this.n2a_1.hashCode() | 0;
2183
- result = imul(result, 31) + this.o2a_1.hashCode() | 0;
2184
- result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.p2a_1) | 0;
2185
- result = imul(result, 31) + hashCode(this.q2a_1) | 0;
2186
- result = imul(result, 31) + getStringHashCode(this.r2a_1) | 0;
2258
+ var result = Path__hashCode_impl_go73kd(this.z29_1);
2259
+ result = imul(result, 31) + this.a2a_1.hashCode() | 0;
2260
+ result = imul(result, 31) + this.b2a_1.hashCode() | 0;
2261
+ result = imul(result, 31) + this.c2a_1.hashCode() | 0;
2262
+ result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.d2a_1) | 0;
2263
+ result = imul(result, 31) + hashCode(this.e2a_1) | 0;
2264
+ result = imul(result, 31) + getStringHashCode(this.f2a_1) | 0;
2187
2265
  return result;
2188
2266
  };
2189
2267
  protoOf(FlattenResponse).equals = function (other) {
@@ -2192,19 +2270,19 @@
2192
2270
  if (!(other instanceof FlattenResponse))
2193
2271
  return false;
2194
2272
  var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
2195
- if (!(this.l2a_1 === tmp0_other_with_cast.l2a_1))
2273
+ if (!(this.z29_1 === tmp0_other_with_cast.z29_1))
2196
2274
  return false;
2197
- if (!this.m2a_1.equals(tmp0_other_with_cast.m2a_1))
2275
+ if (!this.a2a_1.equals(tmp0_other_with_cast.a2a_1))
2198
2276
  return false;
2199
- if (!this.n2a_1.equals(tmp0_other_with_cast.n2a_1))
2277
+ if (!this.b2a_1.equals(tmp0_other_with_cast.b2a_1))
2200
2278
  return false;
2201
- if (!this.o2a_1.equals(tmp0_other_with_cast.o2a_1))
2279
+ if (!this.c2a_1.equals(tmp0_other_with_cast.c2a_1))
2202
2280
  return false;
2203
- if (!(this.p2a_1 === tmp0_other_with_cast.p2a_1))
2281
+ if (!(this.d2a_1 === tmp0_other_with_cast.d2a_1))
2204
2282
  return false;
2205
- if (!equals(this.q2a_1, tmp0_other_with_cast.q2a_1))
2283
+ if (!equals(this.e2a_1, tmp0_other_with_cast.e2a_1))
2206
2284
  return false;
2207
- if (!(this.r2a_1 === tmp0_other_with_cast.r2a_1))
2285
+ if (!(this.f2a_1 === tmp0_other_with_cast.f2a_1))
2208
2286
  return false;
2209
2287
  return true;
2210
2288
  };
@@ -2292,9 +2370,9 @@
2292
2370
  }
2293
2371
  function OpenApiV2Parser$parseParameters$lambda($this_parseParameters) {
2294
2372
  return function ($this$flatMapRequests) {
2295
- var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.h2a_1), resolveParameters($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.j2a_1));
2296
- var tmp0_elvis_lhs = toName($this$flatMapRequests.j2a_1, OpenApiV2Parser_instance);
2297
- var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.g2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.i2a_1.p2_1 : tmp0_elvis_lhs;
2373
+ var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.v29_1), resolveParameters($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.x29_1));
2374
+ var tmp0_elvis_lhs = toName($this$flatMapRequests.x29_1, OpenApiV2Parser_instance);
2375
+ var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.u29_1, OpenApiV2Parser_instance) + $this$flatMapRequests.w29_1.p2_1 : tmp0_elvis_lhs;
2298
2376
  // Inline function 'kotlin.collections.flatMap' call
2299
2377
  // Inline function 'kotlin.collections.filter' call
2300
2378
  // Inline function 'kotlin.collections.filterTo' call
@@ -2321,7 +2399,7 @@
2321
2399
  // Inline function 'kotlin.let' call
2322
2400
  // Inline function 'kotlin.contracts.contract' call
2323
2401
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
2324
- tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_instance.e2a([name, 'Parameter', element_0.k1i_1]));
2402
+ tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_getInstance().o29([name, 'Parameter', element_0.k1i_1]));
2325
2403
  }
2326
2404
  var tmp1_elvis_lhs = tmp;
2327
2405
  var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
@@ -2332,9 +2410,9 @@
2332
2410
  }
2333
2411
  function OpenApiV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
2334
2412
  return function ($this$flatMapRequests) {
2335
- var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.h2a_1), resolveParameters($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.j2a_1));
2336
- var tmp0_elvis_lhs = toName($this$flatMapRequests.j2a_1, OpenApiV2Parser_instance);
2337
- var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.g2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.i2a_1.p2_1 : tmp0_elvis_lhs;
2413
+ var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.v29_1), resolveParameters($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.x29_1));
2414
+ var tmp0_elvis_lhs = toName($this$flatMapRequests.x29_1, OpenApiV2Parser_instance);
2415
+ var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.u29_1, OpenApiV2Parser_instance) + $this$flatMapRequests.w29_1.p2_1 : tmp0_elvis_lhs;
2338
2416
  // Inline function 'kotlin.collections.flatMap' call
2339
2417
  // Inline function 'kotlin.collections.flatMapTo' call
2340
2418
  var destination = ArrayList_init_$Create$();
@@ -2344,7 +2422,7 @@
2344
2422
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
2345
2423
  var tmp;
2346
2424
  if (!(element.f1j_1 == null)) {
2347
- var tmp_0 = new DefinitionIdentifier(Common_instance.e2a([name, 'Parameter', element.k1i_1]));
2425
+ var tmp_0 = new DefinitionIdentifier(Common_getInstance().o29([name, 'Parameter', element.k1i_1]));
2348
2426
  // Inline function 'kotlin.collections.map' call
2349
2427
  var this_0 = ensureNotNull(element.f1j_1);
2350
2428
  // Inline function 'kotlin.collections.mapTo' call
@@ -2364,7 +2442,7 @@
2364
2442
  addAll(destination, list);
2365
2443
  }
2366
2444
  var enums = destination;
2367
- var tmp1_safe_receiver = $this$flatMapRequests.j2a_1.h1l_1;
2445
+ var tmp1_safe_receiver = $this$flatMapRequests.x29_1.h1l_1;
2368
2446
  var tmp_1;
2369
2447
  if (tmp1_safe_receiver == null) {
2370
2448
  tmp_1 = null;
@@ -2419,7 +2497,7 @@
2419
2497
  switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
2420
2498
  case -1:
2421
2499
  case 5:
2422
- tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_instance.e2a([name, 'RequestBody']));
2500
+ tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_getInstance().o29([name, 'RequestBody']));
2423
2501
  break;
2424
2502
  case 4:
2425
2503
  // Inline function 'kotlin.collections.orEmpty' call
@@ -2432,7 +2510,7 @@
2432
2510
  // Inline function 'kotlin.let' call
2433
2511
  // Inline function 'kotlin.contracts.contract' call
2434
2512
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
2435
- tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_instance.e2a([name, 'RequestBody']));
2513
+ tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().o29([name, 'RequestBody']));
2436
2514
  }
2437
2515
 
2438
2516
  var tmp0_elvis_lhs_0 = tmp_6;
@@ -2458,9 +2536,9 @@
2458
2536
  }
2459
2537
  function OpenApiV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
2460
2538
  return function ($this$flatMapResponses) {
2461
- var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.q2a_1).m1j_1;
2462
- var tmp0_elvis_lhs = toName($this$flatMapResponses.o2a_1, OpenApiV2Parser_instance);
2463
- var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.l2a_1, OpenApiV2Parser_instance) + $this$flatMapResponses.n2a_1.p2_1 : tmp0_elvis_lhs;
2539
+ var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.e2a_1).m1j_1;
2540
+ var tmp0_elvis_lhs = toName($this$flatMapResponses.c2a_1, OpenApiV2Parser_instance);
2541
+ var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.z29_1, OpenApiV2Parser_instance) + $this$flatMapResponses.b2a_1.p2_1 : tmp0_elvis_lhs;
2464
2542
  var tmp;
2465
2543
  if (schema instanceof SchemaObject) {
2466
2544
  var tmp2_subject = schema.e1n_1;
@@ -2468,7 +2546,7 @@
2468
2546
  switch (tmp2_subject == null ? -1 : tmp2_subject.q2_1) {
2469
2547
  case -1:
2470
2548
  case 5:
2471
- tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_instance.e2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.p2a_1), 'ResponseBody']));
2549
+ tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_getInstance().o29([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.d2a_1), 'ResponseBody']));
2472
2550
  break;
2473
2551
  case 4:
2474
2552
  // Inline function 'kotlin.collections.orEmpty' call
@@ -2481,7 +2559,7 @@
2481
2559
  // Inline function 'kotlin.let' call
2482
2560
  // Inline function 'kotlin.contracts.contract' call
2483
2561
  // Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
2484
- tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_instance.e2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.p2a_1), 'ResponseBody']));
2562
+ tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_getInstance().o29([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.d2a_1), 'ResponseBody']));
2485
2563
  }
2486
2564
 
2487
2565
  var tmp0_elvis_lhs_0 = tmp_1;
@@ -2502,17 +2580,17 @@
2502
2580
  var tmp;
2503
2581
  switch (isParam(it, OpenApiV2Parser_instance)) {
2504
2582
  case true:
2505
- var tmp_0 = Common_instance;
2583
+ var tmp_0 = Common_getInstance();
2506
2584
  // Inline function 'kotlin.text.substring' call
2507
2585
 
2508
2586
  var endIndex = it.length - 1 | 0;
2509
2587
  // Inline function 'kotlin.js.asDynamic' call
2510
2588
 
2511
2589
  var tmp$ret$1 = it.substring(1, endIndex);
2512
- tmp = tmp_0.e2a([tmp$ret$1]);
2590
+ tmp = tmp_0.o29([tmp$ret$1]);
2513
2591
  break;
2514
2592
  case false:
2515
- tmp = Common_instance.e2a([it]);
2593
+ tmp = Common_getInstance().o29([it]);
2516
2594
  break;
2517
2595
  default:
2518
2596
  noWhenBranchMatchedException();
@@ -2522,14 +2600,14 @@
2522
2600
  }
2523
2601
  function OpenApiV2Parser() {
2524
2602
  }
2525
- protoOf(OpenApiV2Parser).s2a = function (json, ignoreUnknown) {
2526
- return this.t2a((new OpenAPI(Json(VOID, OpenApiV2Parser$parse$lambda(ignoreUnknown)))).i1g(json));
2603
+ protoOf(OpenApiV2Parser).g2a = function (json, ignoreUnknown) {
2604
+ return this.h2a((new OpenAPI(Json(VOID, OpenApiV2Parser$parse$lambda(ignoreUnknown)))).i1g(json));
2527
2605
  };
2528
- protoOf(OpenApiV2Parser).u2a = function (json, ignoreUnknown, $super) {
2606
+ protoOf(OpenApiV2Parser).i2a = function (json, ignoreUnknown, $super) {
2529
2607
  ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
2530
- return $super === VOID ? this.s2a(json, ignoreUnknown) : $super.s2a.call(this, json, ignoreUnknown);
2608
+ return $super === VOID ? this.g2a(json, ignoreUnknown) : $super.g2a.call(this, json, ignoreUnknown);
2531
2609
  };
2532
- protoOf(OpenApiV2Parser).t2a = function (_this__u8e3s4) {
2610
+ protoOf(OpenApiV2Parser).h2a = function (_this__u8e3s4) {
2533
2611
  // Inline function 'kotlin.collections.reduce' call
2534
2612
  var iterator = listOf_0([parseEndpoints(_this__u8e3s4, this), parseParameters(_this__u8e3s4, this), parseRequestBody(_this__u8e3s4, this), parseResponseBody(_this__u8e3s4, this), parseDefinitions(_this__u8e3s4, this)]).g();
2535
2613
  if (!iterator.h())
@@ -2549,16 +2627,16 @@
2549
2627
  function toMap_0(_this__u8e3s4) {
2550
2628
  var tmp;
2551
2629
  if (_this__u8e3s4 instanceof Custom) {
2552
- tmp = _this__u8e3s4.o28(VOID, VOID, true);
2630
+ tmp = _this__u8e3s4.v28(VOID, VOID, true);
2553
2631
  } else {
2554
2632
  if (_this__u8e3s4 instanceof Any) {
2555
- tmp = _this__u8e3s4.i28(VOID, true);
2633
+ tmp = _this__u8e3s4.p28(VOID, true);
2556
2634
  } else {
2557
2635
  if (_this__u8e3s4 instanceof Primitive) {
2558
- tmp = _this__u8e3s4.q28(VOID, VOID, true);
2636
+ tmp = _this__u8e3s4.x28(VOID, VOID, true);
2559
2637
  } else {
2560
2638
  if (_this__u8e3s4 instanceof Unit) {
2561
- tmp = _this__u8e3s4.m28(VOID, true);
2639
+ tmp = _this__u8e3s4.t28(VOID, true);
2562
2640
  } else {
2563
2641
  noWhenBranchMatchedException();
2564
2642
  }
@@ -2603,16 +2681,16 @@
2603
2681
  function toIterable(_this__u8e3s4) {
2604
2682
  var tmp;
2605
2683
  if (_this__u8e3s4 instanceof Custom) {
2606
- tmp = _this__u8e3s4.o28(VOID, true);
2684
+ tmp = _this__u8e3s4.v28(VOID, true);
2607
2685
  } else {
2608
2686
  if (_this__u8e3s4 instanceof Any) {
2609
- tmp = _this__u8e3s4.i28(true);
2687
+ tmp = _this__u8e3s4.p28(true);
2610
2688
  } else {
2611
2689
  if (_this__u8e3s4 instanceof Primitive) {
2612
- tmp = _this__u8e3s4.q28(VOID, true);
2690
+ tmp = _this__u8e3s4.x28(VOID, true);
2613
2691
  } else {
2614
2692
  if (_this__u8e3s4 instanceof Unit) {
2615
- tmp = _this__u8e3s4.m28(true);
2693
+ tmp = _this__u8e3s4.t28(true);
2616
2694
  } else {
2617
2695
  noWhenBranchMatchedException();
2618
2696
  }
@@ -2653,19 +2731,19 @@
2653
2731
  var element_1 = tmp0_iterator_1.i();
2654
2732
  // Inline function 'kotlin.collections.plusAssign' call
2655
2733
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
2656
- var tmp = element_1.c28().b1();
2734
+ var tmp = element_1.i28().b1();
2657
2735
  var tmp_0;
2658
2736
  if (element_1 instanceof Enum) {
2659
- tmp_0 = emit_3(element_1, OpenApiV3Emitter_instance);
2737
+ tmp_0 = emit_3(element_1, OpenApiV3Emitter_getInstance());
2660
2738
  } else {
2661
2739
  if (element_1 instanceof Refined) {
2662
- tmp_0 = emit_1(element_1, OpenApiV3Emitter_instance);
2740
+ tmp_0 = emit_1(element_1, OpenApiV3Emitter_getInstance());
2663
2741
  } else {
2664
2742
  if (element_1 instanceof Type) {
2665
- tmp_0 = emit_2(element_1, OpenApiV3Emitter_instance);
2743
+ tmp_0 = emit_2(element_1, OpenApiV3Emitter_getInstance());
2666
2744
  } else {
2667
2745
  if (element_1 instanceof Union) {
2668
- tmp_0 = emit_4(element_1, OpenApiV3Emitter_instance);
2746
+ tmp_0 = emit_4(element_1, OpenApiV3Emitter_getInstance());
2669
2747
  } else {
2670
2748
  if (element_1 instanceof Endpoint) {
2671
2749
  var message = 'Cannot emit endpoint';
@@ -2708,7 +2786,7 @@
2708
2786
  while (tmp0_iterator_0.h()) {
2709
2787
  var element_0 = tmp0_iterator_0.i();
2710
2788
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>' call
2711
- var key = element_0.p23_1;
2789
+ var key = element_0.q23_1;
2712
2790
  // Inline function 'kotlin.collections.getOrPut' call
2713
2791
  var value = destination_0.f2(key);
2714
2792
  var tmp;
@@ -2734,7 +2812,7 @@
2734
2812
  var path = item.a1();
2735
2813
  // Inline function 'kotlin.collections.component2' call
2736
2814
  var endpoints = item.b1();
2737
- var tmp_0 = _Path___init__impl__6uf4pw_0(emitSegment_0(path, OpenApiV3Emitter_instance));
2815
+ var tmp_0 = _Path___init__impl__6uf4pw_0(emitSegment_0(path, OpenApiV3Emitter_getInstance()));
2738
2816
  // Inline function 'kotlin.collections.ifEmpty' call
2739
2817
  // Inline function 'kotlin.collections.map' call
2740
2818
  // Inline function 'kotlin.collections.filterIsInstance' call
@@ -2753,7 +2831,7 @@
2753
2831
  while (tmp0_iterator_3.h()) {
2754
2832
  var item_0 = tmp0_iterator_3.i();
2755
2833
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>.<anonymous>' call
2756
- var tmp$ret$12 = emitParameter_1(item_0, OpenApiV3Emitter_instance);
2834
+ var tmp$ret$12 = emitParameter_1(item_0, OpenApiV3Emitter_getInstance());
2757
2835
  destination_3.e(tmp$ret$12);
2758
2836
  }
2759
2837
  // Inline function 'kotlin.contracts.contract' call
@@ -2765,25 +2843,34 @@
2765
2843
  tmp_1 = destination_3;
2766
2844
  }
2767
2845
  var tmp0_parameters = tmp_1;
2768
- var tmp1_get = emit_5(endpoints, OpenApiV3Emitter_instance, Method_GET_getInstance());
2769
- var tmp2_post = emit_5(endpoints, OpenApiV3Emitter_instance, Method_POST_getInstance());
2770
- var tmp3_put = emit_5(endpoints, OpenApiV3Emitter_instance, Method_PUT_getInstance());
2771
- var tmp4_delete = emit_5(endpoints, OpenApiV3Emitter_instance, Method_DELETE_getInstance());
2772
- var tmp5_patch = emit_5(endpoints, OpenApiV3Emitter_instance, Method_PATCH_getInstance());
2773
- var tmp6_options = emit_5(endpoints, OpenApiV3Emitter_instance, Method_OPTIONS_getInstance());
2774
- var tmp7_trace = emit_5(endpoints, OpenApiV3Emitter_instance, Method_TRACE_getInstance());
2775
- var tmp8_head = emit_5(endpoints, OpenApiV3Emitter_instance, Method_HEAD_getInstance());
2846
+ var tmp1_get = emit_5(endpoints, OpenApiV3Emitter_getInstance(), Method_GET_getInstance());
2847
+ var tmp2_post = emit_5(endpoints, OpenApiV3Emitter_getInstance(), Method_POST_getInstance());
2848
+ var tmp3_put = emit_5(endpoints, OpenApiV3Emitter_getInstance(), Method_PUT_getInstance());
2849
+ var tmp4_delete = emit_5(endpoints, OpenApiV3Emitter_getInstance(), Method_DELETE_getInstance());
2850
+ var tmp5_patch = emit_5(endpoints, OpenApiV3Emitter_getInstance(), Method_PATCH_getInstance());
2851
+ var tmp6_options = emit_5(endpoints, OpenApiV3Emitter_getInstance(), Method_OPTIONS_getInstance());
2852
+ var tmp7_trace = emit_5(endpoints, OpenApiV3Emitter_getInstance(), Method_TRACE_getInstance());
2853
+ var tmp8_head = emit_5(endpoints, OpenApiV3Emitter_getInstance(), Method_HEAD_getInstance());
2776
2854
  var tmp$ret$17 = to(new Path_0(tmp_0), new PathItemObject_0(VOID, VOID, VOID, tmp1_get, tmp3_put, tmp2_post, tmp4_delete, tmp6_options, tmp8_head, tmp5_patch, tmp7_trace, VOID, tmp0_parameters));
2777
2855
  destination_1.e(tmp$ret$17);
2778
2856
  }
2779
2857
  return toMap(destination_1);
2780
2858
  }
2781
2859
  function emit_1(_this__u8e3s4, $this) {
2782
- return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.a25_1.q25_1);
2860
+ return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_STRING_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, _this__u8e3s4.b25_1.s25_1);
2783
2861
  }
2784
2862
  function emit_2(_this__u8e3s4, $this) {
2863
+ var tmp0_safe_receiver = _this__u8e3s4.y22_1;
2864
+ var tmp;
2865
+ var tmp_0 = tmp0_safe_receiver;
2866
+ if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
2867
+ tmp = null;
2868
+ } else {
2869
+ tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
2870
+ }
2871
+ var tmp1_description = tmp;
2785
2872
  // Inline function 'kotlin.collections.associate' call
2786
- var this_0 = _this__u8e3s4.a23_1.n25_1;
2873
+ var this_0 = _this__u8e3s4.a23_1.p25_1;
2787
2874
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
2788
2875
  // Inline function 'kotlin.collections.associateTo' call
2789
2876
  var destination = LinkedHashMap_init_$Create$(capacity);
@@ -2792,21 +2879,20 @@
2792
2879
  var element = tmp0_iterator.i();
2793
2880
  // Inline function 'kotlin.collections.plusAssign' call
2794
2881
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2795
- var pair = emitSchema(element, OpenApiV3Emitter_instance);
2882
+ var pair = emitSchema(element, OpenApiV3Emitter_getInstance());
2796
2883
  destination.m2(pair.ce_1, pair.de_1);
2797
2884
  }
2798
- var tmp = destination;
2799
2885
  // Inline function 'kotlin.takeIf' call
2800
2886
  // Inline function 'kotlin.collections.map' call
2801
2887
  // Inline function 'kotlin.collections.filter' call
2802
2888
  // Inline function 'kotlin.collections.filterTo' call
2803
- var this_1 = _this__u8e3s4.a23_1.n25_1;
2889
+ var this_1 = _this__u8e3s4.a23_1.p25_1;
2804
2890
  var destination_0 = ArrayList_init_$Create$();
2805
2891
  var tmp0_iterator_0 = this_1.g();
2806
2892
  while (tmp0_iterator_0.h()) {
2807
2893
  var element_0 = tmp0_iterator_0.i();
2808
2894
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2809
- if (!element_0.k24_1) {
2895
+ if (!element_0.l24_1) {
2810
2896
  destination_0.e(element_0);
2811
2897
  }
2812
2898
  }
@@ -2816,25 +2902,34 @@
2816
2902
  while (tmp0_iterator_1.h()) {
2817
2903
  var item = tmp0_iterator_1.i();
2818
2904
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2819
- var tmp$ret$6 = item.i24_1.b1();
2905
+ var tmp$ret$6 = item.j24_1.b1();
2820
2906
  destination_1.e(tmp$ret$6);
2821
2907
  }
2822
2908
  // Inline function 'kotlin.contracts.contract' call
2823
- var tmp_0;
2909
+ var tmp_1;
2824
2910
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2825
2911
  // Inline function 'kotlin.collections.isNotEmpty' call
2826
2912
  if (!destination_1.l()) {
2827
- tmp_0 = destination_1;
2913
+ tmp_1 = destination_1;
2828
2914
  } else {
2829
- tmp_0 = null;
2915
+ tmp_1 = null;
2830
2916
  }
2831
- var tmp$ret$11 = tmp_0;
2832
- return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp$ret$11);
2917
+ var tmp3_required = tmp_1;
2918
+ return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp3_required);
2833
2919
  }
2834
2920
  function emit_3(_this__u8e3s4, $this) {
2835
- var tmp = Type_STRING_getInstance_0();
2921
+ var tmp0_safe_receiver = _this__u8e3s4.c25_1;
2922
+ var tmp;
2923
+ var tmp_0 = tmp0_safe_receiver;
2924
+ if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
2925
+ tmp = null;
2926
+ } else {
2927
+ tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
2928
+ }
2929
+ var tmp1_description = tmp;
2930
+ var tmp2_type = Type_STRING_getInstance_0();
2836
2931
  // Inline function 'kotlin.collections.map' call
2837
- var this_0 = _this__u8e3s4.d25_1;
2932
+ var this_0 = _this__u8e3s4.e25_1;
2838
2933
  // Inline function 'kotlin.collections.mapTo' call
2839
2934
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
2840
2935
  var tmp0_iterator = this_0.g();
@@ -2844,10 +2939,19 @@
2844
2939
  var tmp$ret$0 = JsonPrimitive(item);
2845
2940
  destination.e(tmp$ret$0);
2846
2941
  }
2847
- return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination);
2942
+ return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_type, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_description, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, destination);
2848
2943
  }
2849
2944
  function emit_4(_this__u8e3s4, $this) {
2850
- var tmp = Type_STRING_getInstance_0();
2945
+ var tmp0_safe_receiver = _this__u8e3s4.s22_1;
2946
+ var tmp;
2947
+ var tmp_0 = tmp0_safe_receiver;
2948
+ if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
2949
+ tmp = null;
2950
+ } else {
2951
+ tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
2952
+ }
2953
+ var tmp1_description = tmp;
2954
+ var tmp2_type = Type_STRING_getInstance_0();
2851
2955
  // Inline function 'kotlin.collections.map' call
2852
2956
  var this_0 = _this__u8e3s4.u22_1;
2853
2957
  // Inline function 'kotlin.collections.mapTo' call
@@ -2856,10 +2960,10 @@
2856
2960
  while (tmp0_iterator.h()) {
2857
2961
  var item = tmp0_iterator.i();
2858
2962
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2859
- var tmp$ret$0 = emitSchema_0(item, OpenApiV3Emitter_instance);
2963
+ var tmp$ret$0 = emitSchema_0(item, OpenApiV3Emitter_getInstance());
2860
2964
  destination.e(tmp$ret$0);
2861
2965
  }
2862
- return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp, VOID, destination);
2966
+ return new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_type, VOID, destination, VOID, VOID, VOID, VOID, VOID, tmp1_description);
2863
2967
  }
2864
2968
  function emit_5(_this__u8e3s4, $this, method) {
2865
2969
  // Inline function 'kotlin.collections.map' call
@@ -2870,7 +2974,7 @@
2870
2974
  while (tmp0_iterator.h()) {
2871
2975
  var element = tmp0_iterator.i();
2872
2976
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2873
- if (element.o23_1.equals(method)) {
2977
+ if (element.p23_1.equals(method)) {
2874
2978
  destination.e(element);
2875
2979
  }
2876
2980
  }
@@ -2880,17 +2984,26 @@
2880
2984
  while (tmp0_iterator_0.h()) {
2881
2985
  var item = tmp0_iterator_0.i();
2882
2986
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2883
- var tmp$ret$3 = emit_6(item, OpenApiV3Emitter_instance);
2987
+ var tmp$ret$3 = emit_6(item, OpenApiV3Emitter_getInstance());
2884
2988
  destination_0.e(tmp$ret$3);
2885
2989
  }
2886
2990
  return firstOrNull(destination_0);
2887
2991
  }
2888
2992
  function emit_6(_this__u8e3s4, $this) {
2889
- var tmp = _this__u8e3s4.n23_1.b1();
2993
+ var tmp1_operationId = _this__u8e3s4.o23_1.b1();
2994
+ var tmp0_safe_receiver = _this__u8e3s4.n23_1;
2995
+ var tmp;
2996
+ var tmp_0 = tmp0_safe_receiver;
2997
+ if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
2998
+ tmp = null;
2999
+ } else {
3000
+ tmp = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver);
3001
+ }
3002
+ var tmp2_description = tmp;
2890
3003
  // Inline function 'kotlin.collections.map' call
2891
3004
  // Inline function 'kotlin.collections.filterIsInstance' call
2892
3005
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
2893
- var this_0 = _this__u8e3s4.p23_1;
3006
+ var this_0 = _this__u8e3s4.q23_1;
2894
3007
  var destination = ArrayList_init_$Create$();
2895
3008
  var tmp0_iterator = this_0.g();
2896
3009
  while (tmp0_iterator.h()) {
@@ -2905,38 +3018,38 @@
2905
3018
  while (tmp0_iterator_0.h()) {
2906
3019
  var item = tmp0_iterator_0.i();
2907
3020
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2908
- var tmp$ret$2 = emitParameter_1(item, OpenApiV3Emitter_instance);
3021
+ var tmp$ret$2 = emitParameter_1(item, OpenApiV3Emitter_getInstance());
2909
3022
  destination_0.e(tmp$ret$2);
2910
3023
  }
2911
- var tmp_0 = destination_0;
3024
+ var tmp_1 = destination_0;
2912
3025
  // Inline function 'kotlin.collections.map' call
2913
- var this_1 = _this__u8e3s4.q23_1;
3026
+ var this_1 = _this__u8e3s4.r23_1;
2914
3027
  // Inline function 'kotlin.collections.mapTo' call
2915
3028
  var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
2916
3029
  var tmp0_iterator_1 = this_1.g();
2917
3030
  while (tmp0_iterator_1.h()) {
2918
3031
  var item_0 = tmp0_iterator_1.i();
2919
3032
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2920
- var tmp$ret$5 = emitParameter_0(item_0, OpenApiV3Emitter_instance, ParameterLocation_QUERY_getInstance_0());
3033
+ var tmp$ret$5 = emitParameter_0(item_0, OpenApiV3Emitter_getInstance(), ParameterLocation_QUERY_getInstance_0());
2921
3034
  destination_1.e(tmp$ret$5);
2922
3035
  }
2923
- var tmp_1 = plus(tmp_0, destination_1);
3036
+ var tmp_2 = plus(tmp_1, destination_1);
2924
3037
  // Inline function 'kotlin.collections.map' call
2925
- var this_2 = _this__u8e3s4.r23_1;
3038
+ var this_2 = _this__u8e3s4.s23_1;
2926
3039
  // Inline function 'kotlin.collections.mapTo' call
2927
3040
  var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
2928
3041
  var tmp0_iterator_2 = this_2.g();
2929
3042
  while (tmp0_iterator_2.h()) {
2930
3043
  var item_1 = tmp0_iterator_2.i();
2931
3044
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2932
- var tmp$ret$8 = emitParameter_0(item_1, OpenApiV3Emitter_instance, ParameterLocation_HEADER_getInstance_0());
3045
+ var tmp$ret$8 = emitParameter_0(item_1, OpenApiV3Emitter_getInstance(), ParameterLocation_HEADER_getInstance_0());
2933
3046
  destination_2.e(tmp$ret$8);
2934
3047
  }
2935
- var tmp_2 = plus(tmp_1, destination_2);
3048
+ var tmp3_parameters = plus(tmp_2, destination_2);
2936
3049
  // Inline function 'kotlin.collections.ifEmpty' call
2937
3050
  // Inline function 'kotlin.collections.mapNotNull' call
2938
3051
  // Inline function 'kotlin.collections.mapNotNullTo' call
2939
- var this_3 = _this__u8e3s4.t23_1;
3052
+ var this_3 = _this__u8e3s4.u23_1;
2940
3053
  var destination_3 = ArrayList_init_$Create$();
2941
3054
  // Inline function 'kotlin.collections.forEach' call
2942
3055
  var tmp0_iterator_3 = this_3.g();
@@ -2944,14 +3057,14 @@
2944
3057
  var element_0 = tmp0_iterator_3.i();
2945
3058
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
2946
3059
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2947
- var tmp0_safe_receiver = element_0.a24_1;
2948
- var tmp0_safe_receiver_0 = tmp0_safe_receiver == null ? null : emit_7(tmp0_safe_receiver, OpenApiV3Emitter_instance);
2949
- if (tmp0_safe_receiver_0 == null)
3060
+ var tmp0_safe_receiver_0 = element_0.b24_1;
3061
+ var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : emit_7(tmp0_safe_receiver_0, OpenApiV3Emitter_getInstance());
3062
+ if (tmp0_safe_receiver_1 == null)
2950
3063
  null;
2951
3064
  else {
2952
3065
  // Inline function 'kotlin.let' call
2953
3066
  // Inline function 'kotlin.contracts.contract' call
2954
- destination_3.e(tmp0_safe_receiver_0);
3067
+ destination_3.e(tmp0_safe_receiver_1);
2955
3068
  }
2956
3069
  }
2957
3070
  var this_4 = toMap(destination_3);
@@ -2967,7 +3080,7 @@
2967
3080
  var tmp$ret$17;
2968
3081
  $l$block_0: {
2969
3082
  // Inline function 'kotlin.collections.any' call
2970
- var this_5 = _this__u8e3s4.t23_1;
3083
+ var this_5 = _this__u8e3s4.u23_1;
2971
3084
  var tmp_5;
2972
3085
  if (isInterface(this_5, Collection)) {
2973
3086
  tmp_5 = this_5.l();
@@ -2982,8 +3095,8 @@
2982
3095
  while (tmp0_iterator_4.h()) {
2983
3096
  var element_1 = tmp0_iterator_4.i();
2984
3097
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
2985
- var tmp0_safe_receiver_1 = element_1.a24_1;
2986
- var tmp1_elvis_lhs = tmp0_safe_receiver_1 == null ? null : tmp0_safe_receiver_1.d24_1;
3098
+ var tmp0_safe_receiver_2 = element_1.b24_1;
3099
+ var tmp1_elvis_lhs = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.e24_1;
2987
3100
  if (tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs) {
2988
3101
  tmp$ret$17 = true;
2989
3102
  break $l$block_0;
@@ -2991,29 +3104,29 @@
2991
3104
  }
2992
3105
  tmp$ret$17 = false;
2993
3106
  }
2994
- var tmp_6 = new RequestBodyObject(VOID, tmp_4, !tmp$ret$17);
3107
+ var tmp4_requestBody = new RequestBodyObject(VOID, tmp_4, !tmp$ret$17);
2995
3108
  // Inline function 'kotlin.collections.map' call
2996
3109
  // Inline function 'kotlin.collections.groupBy' call
2997
3110
  // Inline function 'kotlin.collections.groupByTo' call
2998
- var this_6 = _this__u8e3s4.u23_1;
3111
+ var this_6 = _this__u8e3s4.v23_1;
2999
3112
  var destination_4 = LinkedHashMap_init_$Create$_0();
3000
3113
  var tmp0_iterator_5 = this_6.g();
3001
3114
  while (tmp0_iterator_5.h()) {
3002
3115
  var element_2 = tmp0_iterator_5.i();
3003
3116
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
3004
- var key = element_2.v23_1;
3117
+ var key = element_2.w23_1;
3005
3118
  // Inline function 'kotlin.collections.getOrPut' call
3006
3119
  var value = destination_4.f2(key);
3007
- var tmp_7;
3120
+ var tmp_6;
3008
3121
  if (value == null) {
3009
3122
  // Inline function 'kotlin.collections.groupByTo.<anonymous>' call
3010
3123
  var answer = ArrayList_init_$Create$();
3011
3124
  destination_4.m2(key, answer);
3012
- tmp_7 = answer;
3125
+ tmp_6 = answer;
3013
3126
  } else {
3014
- tmp_7 = value;
3127
+ tmp_6 = value;
3015
3128
  }
3016
- var list = tmp_7;
3129
+ var list = tmp_6;
3017
3130
  list.e(element_2);
3018
3131
  }
3019
3132
  // Inline function 'kotlin.collections.mapTo' call
@@ -3027,7 +3140,7 @@
3027
3140
  var statusCode = item_2.a1();
3028
3141
  // Inline function 'kotlin.collections.component2' call
3029
3142
  var res = item_2.b1();
3030
- var tmp_8 = _StatusCode___init__impl__t1yi9q_0(statusCode);
3143
+ var tmp_7 = _StatusCode___init__impl__t1yi9q_0(statusCode);
3031
3144
  // Inline function 'kotlin.collections.associate' call
3032
3145
  // Inline function 'kotlin.collections.flatMap' call
3033
3146
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -3036,7 +3149,7 @@
3036
3149
  while (tmp0_iterator_7.h()) {
3037
3150
  var element_3 = tmp0_iterator_7.i();
3038
3151
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
3039
- var list_0 = element_3.w23_1;
3152
+ var list_0 = element_3.x23_1;
3040
3153
  addAll(destination_6, list_0);
3041
3154
  }
3042
3155
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_6, 10)), 16);
@@ -3047,10 +3160,10 @@
3047
3160
  var element_4 = tmp0_iterator_8.i();
3048
3161
  // Inline function 'kotlin.collections.plusAssign' call
3049
3162
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
3050
- var pair = emitHeader(element_4, OpenApiV3Emitter_instance);
3163
+ var pair = emitHeader(element_4, OpenApiV3Emitter_getInstance());
3051
3164
  destination_7.m2(pair.ce_1, pair.de_1);
3052
3165
  }
3053
- var tmp1_description = _this__u8e3s4.n23_1.toString() + ' ' + statusCode + ' response';
3166
+ var tmp1_description = _this__u8e3s4.o23_1.b1() + ' ' + statusCode + ' response';
3054
3167
  // Inline function 'kotlin.collections.ifEmpty' call
3055
3168
  // Inline function 'kotlin.collections.associate' call
3056
3169
  // Inline function 'kotlin.collections.mapNotNull' call
@@ -3062,13 +3175,13 @@
3062
3175
  var element_5 = tmp0_iterator_9.i();
3063
3176
  // Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
3064
3177
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
3065
- var tmp0_safe_receiver_2 = element_5.x23_1;
3066
- if (tmp0_safe_receiver_2 == null)
3178
+ var tmp0_safe_receiver_3 = element_5.y23_1;
3179
+ if (tmp0_safe_receiver_3 == null)
3067
3180
  null;
3068
3181
  else {
3069
3182
  // Inline function 'kotlin.let' call
3070
3183
  // Inline function 'kotlin.contracts.contract' call
3071
- destination_8.e(tmp0_safe_receiver_2);
3184
+ destination_8.e(tmp0_safe_receiver_3);
3072
3185
  }
3073
3186
  }
3074
3187
  var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_8, 10)), 16);
@@ -3079,42 +3192,43 @@
3079
3192
  var element_6 = tmp0_iterator_10.i();
3080
3193
  // Inline function 'kotlin.collections.plusAssign' call
3081
3194
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
3082
- var pair_0 = emit_7(element_6, OpenApiV3Emitter_instance);
3195
+ var pair_0 = emit_7(element_6, OpenApiV3Emitter_getInstance());
3083
3196
  destination_9.m2(pair_0.ce_1, pair_0.de_1);
3084
3197
  }
3085
3198
  // Inline function 'kotlin.contracts.contract' call
3086
- var tmp_9;
3199
+ var tmp_8;
3087
3200
  if (destination_9.l()) {
3088
3201
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
3089
- tmp_9 = null;
3202
+ tmp_8 = null;
3090
3203
  } else {
3091
- tmp_9 = destination_9;
3204
+ tmp_8 = destination_9;
3092
3205
  }
3093
- var tmp2_content = tmp_9;
3094
- var tmp$ret$42 = to(new StatusCode_0(tmp_8), new ResponseObject_0(tmp1_description, destination_7, tmp2_content));
3206
+ var tmp2_content = tmp_8;
3207
+ var tmp$ret$42 = to(new StatusCode_0(tmp_7), new ResponseObject_0(tmp1_description, destination_7, tmp2_content));
3095
3208
  destination_5.e(tmp$ret$42);
3096
3209
  }
3097
- return new OperationObject_0(VOID, VOID, VOID, VOID, tmp, tmp_2, tmp_6, toMap(destination_5));
3210
+ var tmp5_responses = toMap(destination_5);
3211
+ return new OperationObject_0(VOID, VOID, tmp2_description, VOID, tmp1_operationId, tmp3_parameters, tmp4_requestBody, tmp5_responses);
3098
3212
  }
3099
3213
  function emitSegment_0(_this__u8e3s4, $this) {
3100
3214
  return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV3Emitter$emitSegment$lambda);
3101
3215
  }
3102
3216
  function emitParameter_0(_this__u8e3s4, $this, location) {
3103
- var tmp0_name = _this__u8e3s4.i24_1.b1();
3104
- var tmp1_schema = emitSchema_0(_this__u8e3s4.j24_1, $this);
3217
+ var tmp0_name = _this__u8e3s4.j24_1.b1();
3218
+ var tmp1_schema = emitSchema_0(_this__u8e3s4.k24_1, $this);
3105
3219
  return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
3106
3220
  }
3107
3221
  function emitParameter_1(_this__u8e3s4, $this) {
3108
3222
  var tmp0_in = ParameterLocation_PATH_getInstance_0();
3109
- var tmp1_name = _this__u8e3s4.m24_1.b1();
3110
- var tmp2_schema = emitSchema_0(_this__u8e3s4.n24_1, $this);
3223
+ var tmp1_name = _this__u8e3s4.n24_1.b1();
3224
+ var tmp2_schema = emitSchema_0(_this__u8e3s4.o24_1, $this);
3111
3225
  return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
3112
3226
  }
3113
3227
  function emitHeader(_this__u8e3s4, $this) {
3114
- return to(_this__u8e3s4.i24_1.b1(), emitHeader_0(_this__u8e3s4.j24_1, $this));
3228
+ return to(_this__u8e3s4.j24_1.b1(), emitHeader_0(_this__u8e3s4.k24_1, $this));
3115
3229
  }
3116
3230
  function emitSchema(_this__u8e3s4, $this) {
3117
- return to(_this__u8e3s4.i24_1.b1(), emitSchema_0(_this__u8e3s4.j24_1, $this));
3231
+ return to(_this__u8e3s4.j24_1.b1(), emitSchema_0(_this__u8e3s4.k24_1, $this));
3118
3232
  }
3119
3233
  function emitHeader_0(_this__u8e3s4, $this) {
3120
3234
  var tmp;
@@ -3146,7 +3260,7 @@
3146
3260
  tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.v22_1));
3147
3261
  } else {
3148
3262
  if (_this__u8e3s4 instanceof Primitive) {
3149
- tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.i23_1, $this));
3263
+ tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.j23_1, $this));
3150
3264
  } else {
3151
3265
  if (_this__u8e3s4 instanceof Any) {
3152
3266
  var message = 'Cannot map Any';
@@ -3164,7 +3278,7 @@
3164
3278
  // Inline function 'kotlin.contracts.contract' call
3165
3279
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitSchema.<anonymous>' call
3166
3280
  var it = tmp;
3167
- return _this__u8e3s4.q24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, it) : _this__u8e3s4.e24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, it) : it;
3281
+ return _this__u8e3s4.r24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_OBJECT_getInstance_0(), VOID, VOID, VOID, VOID, VOID, VOID, it) : _this__u8e3s4.f24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, it) : it;
3168
3282
  }
3169
3283
  function emitType_1(_this__u8e3s4, $this) {
3170
3284
  var tmp;
@@ -3188,15 +3302,15 @@
3188
3302
  return tmp;
3189
3303
  }
3190
3304
  function emit_7(_this__u8e3s4, $this) {
3191
- return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.b24_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.c24_1, $this)));
3305
+ return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.c24_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.d24_1, $this)));
3192
3306
  }
3193
3307
  function OpenApiV3Emitter$emitSegment$lambda(it) {
3194
3308
  var tmp;
3195
3309
  if (it instanceof Param) {
3196
- tmp = '{' + it.m24_1.b1() + '}';
3310
+ tmp = '{' + it.n24_1.b1() + '}';
3197
3311
  } else {
3198
3312
  if (it instanceof Literal) {
3199
- tmp = it.v24_1;
3313
+ tmp = it.w24_1;
3200
3314
  } else {
3201
3315
  noWhenBranchMatchedException();
3202
3316
  }
@@ -3204,19 +3318,53 @@
3204
3318
  return tmp;
3205
3319
  }
3206
3320
  function OpenApiV3Emitter() {
3321
+ OpenApiV3Emitter_instance = this;
3322
+ Emitter.call(this, get_noLogger());
3323
+ this.l2a_1 = '';
3207
3324
  }
3208
- protoOf(OpenApiV3Emitter).v2a = function (ast, options) {
3209
- var tmp1_elvis_lhs = options == null ? null : options.w2a_1;
3325
+ protoOf(OpenApiV3Emitter).j25 = function () {
3326
+ return this.l2a_1;
3327
+ };
3328
+ protoOf(OpenApiV3Emitter).p22 = function (ast) {
3329
+ // Inline function 'kotlinx.serialization.encodeToString' call
3330
+ var this_0 = Common_getInstance().n29_1;
3331
+ var value = this.m2a(ast, null);
3332
+ // Inline function 'kotlinx.serialization.serializer' call
3333
+ var this_1 = this_0.mo();
3334
+ // Inline function 'kotlinx.serialization.internal.cast' call
3335
+ var this_2 = serializer(this_1, createKType(getKClass(OpenAPIObject), arrayOf([]), false));
3336
+ var tmp$ret$1 = isInterface(this_2, KSerializer) ? this_2 : THROW_CCE();
3337
+ var tmp$ret$2 = this_0.b15(tmp$ret$1, value);
3338
+ return listOf(new Emitted('OpenAPIObject', tmp$ret$2));
3339
+ };
3340
+ protoOf(OpenApiV3Emitter).n25 = function (type, ast) {
3341
+ return this.d26();
3342
+ };
3343
+ protoOf(OpenApiV3Emitter).u25 = function (enum_0) {
3344
+ return this.d26();
3345
+ };
3346
+ protoOf(OpenApiV3Emitter).q25 = function (refined) {
3347
+ return this.d26();
3348
+ };
3349
+ protoOf(OpenApiV3Emitter).y25 = function (endpoint) {
3350
+ return this.d26();
3351
+ };
3352
+ protoOf(OpenApiV3Emitter).w25 = function (union) {
3353
+ return this.d26();
3354
+ };
3355
+ protoOf(OpenApiV3Emitter).x25 = function (channel) {
3356
+ return this.d26();
3357
+ };
3358
+ protoOf(OpenApiV3Emitter).m2a = function (ast, options) {
3359
+ var tmp1_elvis_lhs = options == null ? null : options.n2a_1;
3210
3360
  var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
3211
- var tmp3_elvis_lhs = options == null ? null : options.x2a_1;
3361
+ var tmp3_elvis_lhs = options == null ? null : options.o2a_1;
3212
3362
  return new OpenAPIObject('3.0.0', new InfoObject_0(tmp, VOID, VOID, VOID, VOID, tmp3_elvis_lhs == null ? '0.0.0' : tmp3_elvis_lhs), VOID, emitPaths(ast, this), emitComponents(ast, this));
3213
3363
  };
3214
- protoOf(OpenApiV3Emitter).y2a = function (ast, options, $super) {
3215
- options = options === VOID ? null : options;
3216
- return $super === VOID ? this.v2a(ast, options) : $super.v2a.call(this, ast, options);
3217
- };
3218
3364
  var OpenApiV3Emitter_instance;
3219
3365
  function OpenApiV3Emitter_getInstance() {
3366
+ if (OpenApiV3Emitter_instance == null)
3367
+ new OpenApiV3Emitter();
3220
3368
  return OpenApiV3Emitter_instance;
3221
3369
  }
3222
3370
  function parseEndpoint(_this__u8e3s4, $this) {
@@ -3268,7 +3416,7 @@
3268
3416
  while (tmp0_iterator_2.h()) {
3269
3417
  var item_0 = tmp0_iterator_2.i();
3270
3418
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
3271
- var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_instance.e2a([name, 'Parameter', item_0.w1v_1]));
3419
+ var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_getInstance().o29([name, 'Parameter', item_0.w1v_1]));
3272
3420
  destination_2.e(tmp$ret$9);
3273
3421
  }
3274
3422
  var query = destination_2;
@@ -3290,7 +3438,7 @@
3290
3438
  while (tmp0_iterator_4.h()) {
3291
3439
  var item_1 = tmp0_iterator_4.i();
3292
3440
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
3293
- var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_instance.e2a([name, 'Parameter', item_1.w1v_1]));
3441
+ var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_getInstance().o29([name, 'Parameter', item_1.w1v_1]));
3294
3442
  destination_4.e(tmp$ret$15);
3295
3443
  }
3296
3444
  var headers = destination_4;
@@ -3312,7 +3460,7 @@
3312
3460
  while (tmp0_iterator_6.h()) {
3313
3461
  var item_2 = tmp0_iterator_6.i();
3314
3462
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
3315
- var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_instance.e2a([name, 'Parameter', item_2.w1v_1]));
3463
+ var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_getInstance().o29([name, 'Parameter', item_2.w1v_1]));
3316
3464
  destination_6.e(tmp$ret$21);
3317
3465
  }
3318
3466
  var cookies = destination_6;
@@ -3357,7 +3505,7 @@
3357
3505
  tmp_2 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema);
3358
3506
  } else {
3359
3507
  if (schema instanceof SchemaObject_0) {
3360
- tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_instance.e2a([name, 'RequestBody']));
3508
+ tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().o29([name, 'RequestBody']));
3361
3509
  } else {
3362
3510
  if (schema == null) {
3363
3511
  tmp_2 = null;
@@ -3439,7 +3587,7 @@
3439
3587
  while (tmp0_iterator_10.h()) {
3440
3588
  var item_5 = tmp0_iterator_10.i();
3441
3589
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
3442
- var tmp$ret$44 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_instance.e2a([name, 'ResponseHeader']));
3590
+ var tmp$ret$44 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().o29([name, 'ResponseHeader']));
3443
3591
  destination_10.e(tmp$ret$44);
3444
3592
  }
3445
3593
  tmp_7 = destination_10;
@@ -3453,7 +3601,7 @@
3453
3601
  tmp_10 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema_0);
3454
3602
  } else {
3455
3603
  if (schema_0 instanceof SchemaObject_0) {
3456
- tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_instance.e2a([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
3604
+ tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_getInstance().o29([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
3457
3605
  } else {
3458
3606
  if (schema_0 == null) {
3459
3607
  tmp_10 = new Any(false);
@@ -3521,7 +3669,7 @@
3521
3669
  switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
3522
3670
  case -1:
3523
3671
  case 5:
3524
- tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_instance.e2a([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
3672
+ tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().o29([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
3525
3673
  break;
3526
3674
  case 4:
3527
3675
  // Inline function 'kotlin.collections.orEmpty' call
@@ -3534,7 +3682,7 @@
3534
3682
  // Inline function 'kotlin.let' call
3535
3683
  // Inline function 'kotlin.contracts.contract' call
3536
3684
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
3537
- tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_instance.e2a([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
3685
+ tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_getInstance().o29([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
3538
3686
  }
3539
3687
 
3540
3688
  var tmp0_elvis_lhs_0 = tmp_1;
@@ -3588,7 +3736,7 @@
3588
3736
  while (tmp0_iterator_0.h()) {
3589
3737
  var element_0 = tmp0_iterator_0.i();
3590
3738
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
3591
- var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_instance.e2a([element_0.a1()]));
3739
+ var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_getInstance().o29([element_0.a1()]));
3592
3740
  addAll(destination_0, list);
3593
3741
  }
3594
3742
  return destination_0;
@@ -3605,7 +3753,7 @@
3605
3753
  // Inline function 'kotlin.let' call
3606
3754
  // Inline function 'kotlin.contracts.contract' call
3607
3755
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
3608
- tmp = Common_instance.e2a([tmp0_safe_receiver]);
3756
+ tmp = Common_getInstance().o29([tmp0_safe_receiver]);
3609
3757
  }
3610
3758
  return tmp;
3611
3759
  }
@@ -3695,7 +3843,7 @@
3695
3843
  // Inline function 'kotlin.let' call
3696
3844
  // Inline function 'kotlin.contracts.contract' call
3697
3845
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
3698
- tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, Common_instance.e2a([name, 'Parameter', param]));
3846
+ tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, Common_getInstance().o29([name, 'Parameter', param]));
3699
3847
  }
3700
3848
 
3701
3849
  var tmp5_safe_receiver = tmp_1;
@@ -4105,7 +4253,7 @@
4105
4253
  tmp_6 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, item);
4106
4254
  } else {
4107
4255
  if (item instanceof SchemaObject_0) {
4108
- tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_instance.e2a([name, index_0.toString()]));
4256
+ tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_getInstance().o29([name, index_0.toString()]));
4109
4257
  } else {
4110
4258
  noWhenBranchMatchedException();
4111
4259
  }
@@ -4133,7 +4281,7 @@
4133
4281
  tmp_8 = emptyList();
4134
4282
  } else {
4135
4283
  if (element instanceof SchemaObject_0) {
4136
- tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_instance.e2a([name, index_2.toString()]));
4284
+ tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_getInstance().o29([name, index_2.toString()]));
4137
4285
  } else {
4138
4286
  noWhenBranchMatchedException();
4139
4287
  }
@@ -4164,7 +4312,7 @@
4164
4312
  while (tmp0_iterator_2.h()) {
4165
4313
  var e = tmp0_iterator_2.i();
4166
4314
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
4167
- var key = e.i24_1;
4315
+ var key = e.j24_1;
4168
4316
  if (set.e(key)) {
4169
4317
  list_1.e(e);
4170
4318
  }
@@ -4205,7 +4353,7 @@
4205
4353
  var key_0 = element_2.a1();
4206
4354
  // Inline function 'kotlin.collections.component2' call
4207
4355
  var value = element_2.b1();
4208
- var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.e2a([name, key_0]));
4356
+ var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().o29([name, key_0]));
4209
4357
  addAll(destination_3, list_2);
4210
4358
  }
4211
4359
  var list_3 = destination_3;
@@ -4254,7 +4402,7 @@
4254
4402
  var key_1 = element_3.a1();
4255
4403
  // Inline function 'kotlin.collections.component2' call
4256
4404
  var value_0 = element_3.b1();
4257
- var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_instance.e2a([name, key_1]));
4405
+ var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_getInstance().o29([name, key_1]));
4258
4406
  addAll(destination_5, list_4);
4259
4407
  }
4260
4408
 
@@ -4276,7 +4424,7 @@
4276
4424
  tmp_14 = emptyList();
4277
4425
  } else {
4278
4426
  if (tmp6_safe_receiver instanceof SchemaObject_0) {
4279
- tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_instance.e2a([name, 'array']));
4427
+ tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_getInstance().o29([name, 'array']));
4280
4428
  } else {
4281
4429
  noWhenBranchMatchedException();
4282
4430
  }
@@ -4334,7 +4482,7 @@
4334
4482
  }
4335
4483
  tmp = tmp_0;
4336
4484
  } else if (!(schema.o1x_1 == null)) {
4337
- tmp = new Custom(Common_instance.e2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false, false);
4485
+ tmp = new Custom(Common_getInstance().o29([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false, false);
4338
4486
  } else if (isPrimitive_0(schema.o1w_1)) {
4339
4487
  tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.o1w_1), OpenApiV3Parser_instance), false, false);
4340
4488
  } else if (equals(schema.o1w_1, Type_ARRAY_getInstance_0())) {
@@ -4344,7 +4492,7 @@
4344
4492
  tmp_1 = toIterable_0(toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, items));
4345
4493
  } else {
4346
4494
  if (items instanceof SchemaObject_0) {
4347
- tmp_1 = new Custom(Common_instance.e2a([getReference_0(referencingObject, OpenApiV3Parser_instance), 'Array']), true);
4495
+ tmp_1 = new Custom(Common_getInstance().o29([getReference_0(referencingObject, OpenApiV3Parser_instance), 'Array']), true);
4348
4496
  } else {
4349
4497
  if (items == null) {
4350
4498
  var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi_0(reference.c1w_1);
@@ -4356,7 +4504,7 @@
4356
4504
  }
4357
4505
  tmp = tmp_1;
4358
4506
  } else {
4359
- tmp = new Custom(Common_instance.e2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false);
4507
+ tmp = new Custom(Common_getInstance().o29([getReference_0(referencingObject, OpenApiV3Parser_instance)]), false);
4360
4508
  }
4361
4509
  return tmp;
4362
4510
  }
@@ -4469,7 +4617,7 @@
4469
4617
  return tmp;
4470
4618
  }
4471
4619
  function toOperationList_0(_this__u8e3s4, $this) {
4472
- var tmp = Common_instance;
4620
+ var tmp = Common_getInstance();
4473
4621
  // Inline function 'kotlin.collections.associateWith' call
4474
4622
  var this_0 = get_entries();
4475
4623
  var result = LinkedHashMap_init_$Create$(coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16));
@@ -4511,7 +4659,7 @@
4511
4659
  var tmp$ret$0 = tmp_0;
4512
4660
  result.m2(element, tmp$ret$0);
4513
4661
  }
4514
- return tmp.f2a(result);
4662
+ return tmp.p29(result);
4515
4663
  }
4516
4664
  function getReference_0(_this__u8e3s4, $this) {
4517
4665
  var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.c1w_1), ['/']), 3);
@@ -4564,7 +4712,7 @@
4564
4712
  var tmp;
4565
4713
  if (value instanceof SchemaObject_0) {
4566
4714
  var tmp_0 = new FieldIdentifier(key);
4567
- var tmp_1 = !(value.o1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.e2a([name, key])) : equals(value.o1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.e2a([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_instance.e2a([name, key]));
4715
+ var tmp_1 = !(value.o1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().o29([name, key])) : equals(value.o1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().o29([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().o29([name, key]));
4568
4716
  var tmp1_safe_receiver = schema.n1x_1;
4569
4717
  var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
4570
4718
  tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
@@ -4633,19 +4781,19 @@
4633
4781
  return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
4634
4782
  }
4635
4783
  function FlattenRequest_0(path, pathItem, method, operation) {
4636
- this.z2a_1 = path;
4637
- this.a2b_1 = pathItem;
4638
- this.b2b_1 = method;
4639
- this.c2b_1 = operation;
4784
+ this.p2a_1 = path;
4785
+ this.q2a_1 = pathItem;
4786
+ this.r2a_1 = method;
4787
+ this.s2a_1 = operation;
4640
4788
  }
4641
4789
  protoOf(FlattenRequest_0).toString = function () {
4642
- return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.z2a_1) + ', pathItem=' + this.a2b_1.toString() + ', method=' + this.b2b_1.toString() + ', operation=' + this.c2b_1.toString() + ')';
4790
+ return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.p2a_1) + ', pathItem=' + this.q2a_1.toString() + ', method=' + this.r2a_1.toString() + ', operation=' + this.s2a_1.toString() + ')';
4643
4791
  };
4644
4792
  protoOf(FlattenRequest_0).hashCode = function () {
4645
- var result = Path__hashCode_impl_go73kd_0(this.z2a_1);
4646
- result = imul(result, 31) + this.a2b_1.hashCode() | 0;
4647
- result = imul(result, 31) + this.b2b_1.hashCode() | 0;
4648
- result = imul(result, 31) + this.c2b_1.hashCode() | 0;
4793
+ var result = Path__hashCode_impl_go73kd_0(this.p2a_1);
4794
+ result = imul(result, 31) + this.q2a_1.hashCode() | 0;
4795
+ result = imul(result, 31) + this.r2a_1.hashCode() | 0;
4796
+ result = imul(result, 31) + this.s2a_1.hashCode() | 0;
4649
4797
  return result;
4650
4798
  };
4651
4799
  protoOf(FlattenRequest_0).equals = function (other) {
@@ -4654,13 +4802,13 @@
4654
4802
  if (!(other instanceof FlattenRequest_0))
4655
4803
  return false;
4656
4804
  var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
4657
- if (!(this.z2a_1 === tmp0_other_with_cast.z2a_1))
4805
+ if (!(this.p2a_1 === tmp0_other_with_cast.p2a_1))
4658
4806
  return false;
4659
- if (!this.a2b_1.equals(tmp0_other_with_cast.a2b_1))
4807
+ if (!this.q2a_1.equals(tmp0_other_with_cast.q2a_1))
4660
4808
  return false;
4661
- if (!this.b2b_1.equals(tmp0_other_with_cast.b2b_1))
4809
+ if (!this.r2a_1.equals(tmp0_other_with_cast.r2a_1))
4662
4810
  return false;
4663
- if (!this.c2b_1.equals(tmp0_other_with_cast.c2b_1))
4811
+ if (!this.s2a_1.equals(tmp0_other_with_cast.s2a_1))
4664
4812
  return false;
4665
4813
  return true;
4666
4814
  };
@@ -4709,23 +4857,23 @@
4709
4857
  return destination_1;
4710
4858
  }
4711
4859
  function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
4712
- this.d2b_1 = path;
4713
- this.e2b_1 = pathItem;
4714
- this.f2b_1 = method;
4715
- this.g2b_1 = operation;
4716
- this.h2b_1 = statusCode;
4717
- this.i2b_1 = response;
4860
+ this.t2a_1 = path;
4861
+ this.u2a_1 = pathItem;
4862
+ this.v2a_1 = method;
4863
+ this.w2a_1 = operation;
4864
+ this.x2a_1 = statusCode;
4865
+ this.y2a_1 = response;
4718
4866
  }
4719
4867
  protoOf(FlattenResponse_0).toString = function () {
4720
- return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.d2b_1) + ', pathItem=' + this.e2b_1.toString() + ', method=' + this.f2b_1.toString() + ', operation=' + this.g2b_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.h2b_1) + ', response=' + toString(this.i2b_1) + ')';
4868
+ return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.t2a_1) + ', pathItem=' + this.u2a_1.toString() + ', method=' + this.v2a_1.toString() + ', operation=' + this.w2a_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.x2a_1) + ', response=' + toString(this.y2a_1) + ')';
4721
4869
  };
4722
4870
  protoOf(FlattenResponse_0).hashCode = function () {
4723
- var result = Path__hashCode_impl_go73kd_0(this.d2b_1);
4724
- result = imul(result, 31) + this.e2b_1.hashCode() | 0;
4725
- result = imul(result, 31) + this.f2b_1.hashCode() | 0;
4726
- result = imul(result, 31) + this.g2b_1.hashCode() | 0;
4727
- result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.h2b_1) | 0;
4728
- result = imul(result, 31) + hashCode(this.i2b_1) | 0;
4871
+ var result = Path__hashCode_impl_go73kd_0(this.t2a_1);
4872
+ result = imul(result, 31) + this.u2a_1.hashCode() | 0;
4873
+ result = imul(result, 31) + this.v2a_1.hashCode() | 0;
4874
+ result = imul(result, 31) + this.w2a_1.hashCode() | 0;
4875
+ result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.x2a_1) | 0;
4876
+ result = imul(result, 31) + hashCode(this.y2a_1) | 0;
4729
4877
  return result;
4730
4878
  };
4731
4879
  protoOf(FlattenResponse_0).equals = function (other) {
@@ -4734,17 +4882,17 @@
4734
4882
  if (!(other instanceof FlattenResponse_0))
4735
4883
  return false;
4736
4884
  var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
4737
- if (!(this.d2b_1 === tmp0_other_with_cast.d2b_1))
4885
+ if (!(this.t2a_1 === tmp0_other_with_cast.t2a_1))
4738
4886
  return false;
4739
- if (!this.e2b_1.equals(tmp0_other_with_cast.e2b_1))
4887
+ if (!this.u2a_1.equals(tmp0_other_with_cast.u2a_1))
4740
4888
  return false;
4741
- if (!this.f2b_1.equals(tmp0_other_with_cast.f2b_1))
4889
+ if (!this.v2a_1.equals(tmp0_other_with_cast.v2a_1))
4742
4890
  return false;
4743
- if (!this.g2b_1.equals(tmp0_other_with_cast.g2b_1))
4891
+ if (!this.w2a_1.equals(tmp0_other_with_cast.w2a_1))
4744
4892
  return false;
4745
- if (!(this.h2b_1 === tmp0_other_with_cast.h2b_1))
4893
+ if (!(this.x2a_1 === tmp0_other_with_cast.x2a_1))
4746
4894
  return false;
4747
- if (!equals(this.i2b_1, tmp0_other_with_cast.i2b_1))
4895
+ if (!equals(this.y2a_1, tmp0_other_with_cast.y2a_1))
4748
4896
  return false;
4749
4897
  return true;
4750
4898
  };
@@ -4825,9 +4973,9 @@
4825
4973
  }
4826
4974
  function OpenApiV3Parser$parseParameters$lambda($this_parseParameters) {
4827
4975
  return function ($this$flatMapRequests) {
4828
- var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.a2b_1), resolveParameters_1($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.c2b_1));
4829
- var tmp0_elvis_lhs = toName_1($this$flatMapRequests.c2b_1, OpenApiV3Parser_instance);
4830
- var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.z2a_1, OpenApiV3Parser_instance) + $this$flatMapRequests.b2b_1.p2_1 : tmp0_elvis_lhs;
4976
+ var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.q2a_1), resolveParameters_1($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.s2a_1));
4977
+ var tmp0_elvis_lhs = toName_1($this$flatMapRequests.s2a_1, OpenApiV3Parser_instance);
4978
+ var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.p2a_1, OpenApiV3Parser_instance) + $this$flatMapRequests.r2a_1.p2_1 : tmp0_elvis_lhs;
4831
4979
  // Inline function 'kotlin.collections.flatMap' call
4832
4980
  // Inline function 'kotlin.collections.flatMapTo' call
4833
4981
  var destination = ArrayList_init_$Create$();
@@ -4843,7 +4991,7 @@
4843
4991
  // Inline function 'kotlin.let' call
4844
4992
  // Inline function 'kotlin.contracts.contract' call
4845
4993
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
4846
- tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_instance.e2a([name, 'Parameter', element.w1v_1]));
4994
+ tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_getInstance().o29([name, 'Parameter', element.w1v_1]));
4847
4995
  }
4848
4996
  var tmp1_elvis_lhs = tmp;
4849
4997
  var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
@@ -4854,11 +5002,11 @@
4854
5002
  }
4855
5003
  function OpenApiV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
4856
5004
  return function ($this$flatMapRequests) {
4857
- var tmp0_elvis_lhs = toName_1($this$flatMapRequests.c2b_1, OpenApiV3Parser_instance);
4858
- var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.z2a_1, OpenApiV3Parser_instance) + $this$flatMapRequests.b2b_1.p2_1 : tmp0_elvis_lhs;
5005
+ var tmp0_elvis_lhs = toName_1($this$flatMapRequests.s2a_1, OpenApiV3Parser_instance);
5006
+ var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.p2a_1, OpenApiV3Parser_instance) + $this$flatMapRequests.r2a_1.p2_1 : tmp0_elvis_lhs;
4859
5007
  // Inline function 'kotlin.collections.flatMap' call
4860
5008
  // Inline function 'kotlin.collections.orEmpty' call
4861
- var tmp1_safe_receiver = $this$flatMapRequests.c2b_1.z1t_1;
5009
+ var tmp1_safe_receiver = $this$flatMapRequests.s2a_1.z1t_1;
4862
5010
  var tmp;
4863
5011
  if (tmp1_safe_receiver == null) {
4864
5012
  tmp = null;
@@ -4888,7 +5036,7 @@
4888
5036
  switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
4889
5037
  case -1:
4890
5038
  case 5:
4891
- tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_instance.e2a([name, 'RequestBody']));
5039
+ tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_getInstance().o29([name, 'RequestBody']));
4892
5040
  break;
4893
5041
  case 4:
4894
5042
  // Inline function 'kotlin.collections.orEmpty' call
@@ -4901,7 +5049,7 @@
4901
5049
  // Inline function 'kotlin.let' call
4902
5050
  // Inline function 'kotlin.contracts.contract' call
4903
5051
  // Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
4904
- tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_instance.e2a([name, 'RequestBody']));
5052
+ tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().o29([name, 'RequestBody']));
4905
5053
  }
4906
5054
 
4907
5055
  var tmp0_elvis_lhs_1 = tmp_2;
@@ -4933,15 +5081,15 @@
4933
5081
  }
4934
5082
  function OpenApiV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
4935
5083
  return function ($this$flatMapResponses) {
4936
- var tmp0_elvis_lhs = toName_1($this$flatMapResponses.g2b_1, OpenApiV3Parser_instance);
4937
- var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.d2b_1, OpenApiV3Parser_instance) + $this$flatMapResponses.f2b_1.p2_1 : tmp0_elvis_lhs;
4938
- var response = $this$flatMapResponses.i2b_1;
5084
+ var tmp0_elvis_lhs = toName_1($this$flatMapResponses.w2a_1, OpenApiV3Parser_instance);
5085
+ var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.t2a_1, OpenApiV3Parser_instance) + $this$flatMapResponses.v2a_1.p2_1 : tmp0_elvis_lhs;
5086
+ var response = $this$flatMapResponses.y2a_1;
4939
5087
  var tmp;
4940
5088
  if (response instanceof ResponseObject_0) {
4941
- tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.h2b_1);
5089
+ tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.x2a_1);
4942
5090
  } else {
4943
5091
  if (response instanceof ReferenceObject_0) {
4944
- tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.h2b_1);
5092
+ tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.x2a_1);
4945
5093
  } else {
4946
5094
  noWhenBranchMatchedException();
4947
5095
  }
@@ -4953,17 +5101,17 @@
4953
5101
  var tmp;
4954
5102
  switch (isParam_0(it, OpenApiV3Parser_instance)) {
4955
5103
  case true:
4956
- var tmp_0 = Common_instance;
5104
+ var tmp_0 = Common_getInstance();
4957
5105
  // Inline function 'kotlin.text.substring' call
4958
5106
 
4959
5107
  var endIndex = it.length - 1 | 0;
4960
5108
  // Inline function 'kotlin.js.asDynamic' call
4961
5109
 
4962
5110
  var tmp$ret$1 = it.substring(1, endIndex);
4963
- tmp = tmp_0.e2a([tmp$ret$1]);
5111
+ tmp = tmp_0.o29([tmp$ret$1]);
4964
5112
  break;
4965
5113
  case false:
4966
- tmp = Common_instance.e2a([it]);
5114
+ tmp = Common_getInstance().o29([it]);
4967
5115
  break;
4968
5116
  default:
4969
5117
  noWhenBranchMatchedException();
@@ -4973,14 +5121,14 @@
4973
5121
  }
4974
5122
  function OpenApiV3Parser() {
4975
5123
  }
4976
- protoOf(OpenApiV3Parser).s2a = function (json, strict) {
4977
- return this.j2b((new OpenAPI_0(Json(VOID, OpenApiV3Parser$parse$lambda(strict)))).i1g(json));
5124
+ protoOf(OpenApiV3Parser).g2a = function (json, strict) {
5125
+ return this.z2a((new OpenAPI_0(Json(VOID, OpenApiV3Parser$parse$lambda(strict)))).i1g(json));
4978
5126
  };
4979
- protoOf(OpenApiV3Parser).k2b = function (json, strict, $super) {
5127
+ protoOf(OpenApiV3Parser).a2b = function (json, strict, $super) {
4980
5128
  strict = strict === VOID ? false : strict;
4981
- return $super === VOID ? this.s2a(json, strict) : $super.s2a.call(this, json, strict);
5129
+ return $super === VOID ? this.g2a(json, strict) : $super.g2a.call(this, json, strict);
4982
5130
  };
4983
- protoOf(OpenApiV3Parser).j2b = function (_this__u8e3s4) {
5131
+ protoOf(OpenApiV3Parser).z2a = function (_this__u8e3s4) {
4984
5132
  // Inline function 'kotlin.collections.reduce' call
4985
5133
  var iterator = listOf_0([parseEndpoint(_this__u8e3s4, this), parseParameters_0(_this__u8e3s4, this), parseRequestBody_0(_this__u8e3s4, this), parseResponseBody_0(_this__u8e3s4, this), parseComponents(_this__u8e3s4, this)]).g();
4986
5134
  if (!iterator.h())
@@ -5000,16 +5148,16 @@
5000
5148
  function toMap_1(_this__u8e3s4) {
5001
5149
  var tmp;
5002
5150
  if (_this__u8e3s4 instanceof Custom) {
5003
- tmp = _this__u8e3s4.o28(VOID, VOID, true);
5151
+ tmp = _this__u8e3s4.v28(VOID, VOID, true);
5004
5152
  } else {
5005
5153
  if (_this__u8e3s4 instanceof Any) {
5006
- tmp = _this__u8e3s4.i28(VOID, true);
5154
+ tmp = _this__u8e3s4.p28(VOID, true);
5007
5155
  } else {
5008
5156
  if (_this__u8e3s4 instanceof Primitive) {
5009
- tmp = _this__u8e3s4.q28(VOID, VOID, true);
5157
+ tmp = _this__u8e3s4.x28(VOID, VOID, true);
5010
5158
  } else {
5011
5159
  if (_this__u8e3s4 instanceof Unit) {
5012
- tmp = _this__u8e3s4.m28(VOID, true);
5160
+ tmp = _this__u8e3s4.t28(VOID, true);
5013
5161
  } else {
5014
5162
  noWhenBranchMatchedException();
5015
5163
  }
@@ -5051,16 +5199,16 @@
5051
5199
  function toIterable_0(_this__u8e3s4) {
5052
5200
  var tmp;
5053
5201
  if (_this__u8e3s4 instanceof Custom) {
5054
- tmp = _this__u8e3s4.o28(VOID, true);
5202
+ tmp = _this__u8e3s4.v28(VOID, true);
5055
5203
  } else {
5056
5204
  if (_this__u8e3s4 instanceof Any) {
5057
- tmp = _this__u8e3s4.i28(true);
5205
+ tmp = _this__u8e3s4.p28(true);
5058
5206
  } else {
5059
5207
  if (_this__u8e3s4 instanceof Primitive) {
5060
- tmp = _this__u8e3s4.q28(VOID, true);
5208
+ tmp = _this__u8e3s4.x28(VOID, true);
5061
5209
  } else {
5062
5210
  if (_this__u8e3s4 instanceof Unit) {
5063
- tmp = _this__u8e3s4.m28(true);
5211
+ tmp = _this__u8e3s4.t28(true);
5064
5212
  } else {
5065
5213
  noWhenBranchMatchedException();
5066
5214
  }
@@ -5070,17 +5218,14 @@
5070
5218
  return tmp;
5071
5219
  }
5072
5220
  //region block: init
5073
- Common_instance = new Common();
5074
- OpenApiV2Emitter_instance = new OpenApiV2Emitter();
5075
5221
  OpenApiV2Parser_instance = new OpenApiV2Parser();
5076
- OpenApiV3Emitter_instance = new OpenApiV3Emitter();
5077
5222
  OpenApiV3Parser_instance = new OpenApiV3Parser();
5078
5223
  //endregion
5079
5224
  //region block: exports
5080
5225
  _.$_$ = _.$_$ || {};
5081
- _.$_$.a = OpenApiV2Emitter_instance;
5226
+ _.$_$.a = OpenApiV2Emitter_getInstance;
5082
5227
  _.$_$.b = OpenApiV2Parser_instance;
5083
- _.$_$.c = OpenApiV3Emitter_instance;
5228
+ _.$_$.c = OpenApiV3Emitter_getInstance;
5084
5229
  _.$_$.d = OpenApiV3Parser_instance;
5085
5230
  //endregion
5086
5231
  return _;