@flock/wirespec 0.11.4 → 0.11.6
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.
- package/clikt-clikt.js +1170 -1170
- package/colormath-root-colormath.js +425 -425
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-openapi-bindings.js +48 -47
- package/kotlin-openapi-bindings.js.map +1 -1
- package/kotlin-rgxgen.js +1767 -1767
- package/markdown.js +1873 -1873
- package/mordant-mordant.js +1642 -1642
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +1936 -1888
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +415 -384
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-avro.js +208 -211
- package/wirespec-src-converter-avro.js.map +1 -1
- package/wirespec-src-converter-openapi.js +691 -710
- package/wirespec-src-converter-openapi.js.map +1 -1
- package/wirespec-src-plugin-arguments.js +78 -78
- package/wirespec-src-plugin-cli.js +133 -133
- package/wirespec-src-plugin-npm.d.ts +37 -24
- package/wirespec-src-plugin-npm.js +16 -16
- package/wirespec-src-tools-generator.js +100 -90
- package/wirespec-src-tools-generator.js.map +1 -1
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
'use strict';
|
|
26
26
|
//region block: imports
|
|
27
27
|
var imul = Math.imul;
|
|
28
|
-
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
28
|
+
var Companion_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.k2;
|
|
29
29
|
var Unit_instance = kotlin_kotlin.$_$.g4;
|
|
30
30
|
var VOID = kotlin_kotlin.$_$.g;
|
|
31
31
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.l;
|
|
@@ -40,45 +40,47 @@
|
|
|
40
40
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i5;
|
|
41
41
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.k;
|
|
42
42
|
var firstOrNull = kotlin_kotlin.$_$.g6;
|
|
43
|
-
var _Comment___get_value__impl__8r3pla = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
43
|
+
var _Comment___get_value__impl__8r3pla = kotlin_community_flock_wirespec_compiler_core.$_$.j2;
|
|
44
44
|
var Comment = kotlin_community_flock_wirespec_compiler_core.$_$.j;
|
|
45
45
|
var distinct = kotlin_kotlin.$_$.y5;
|
|
46
46
|
var take = kotlin_kotlin.$_$.g8;
|
|
47
|
-
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
47
|
+
var ParameterLocation_BODY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f1;
|
|
48
48
|
var ParameterObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f;
|
|
49
|
-
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
49
|
+
var ParameterLocation_QUERY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i1;
|
|
50
50
|
var plus = kotlin_kotlin.$_$.s7;
|
|
51
|
-
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
51
|
+
var ParameterLocation_HEADER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g1;
|
|
52
52
|
var mapCapacity = kotlin_kotlin.$_$.i7;
|
|
53
53
|
var coerceAtLeast = kotlin_kotlin.$_$.jb;
|
|
54
54
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
55
|
-
var _StatusCode___init__impl__t1yi9q = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
55
|
+
var _StatusCode___init__impl__t1yi9q = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g2;
|
|
56
|
+
var Iterable = kotlin_community_flock_wirespec_compiler_core.$_$.z;
|
|
56
57
|
var HeaderObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b;
|
|
57
|
-
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
58
|
-
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
58
|
+
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.g1;
|
|
59
|
+
var Type_ARRAY_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j1;
|
|
59
60
|
var SchemaObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k;
|
|
60
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.fg;
|
|
61
61
|
var StatusCode = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l;
|
|
62
62
|
var ResponseObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j;
|
|
63
63
|
var OperationObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e;
|
|
64
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.fg;
|
|
64
65
|
var ReferenceObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i;
|
|
65
|
-
var Type_STRING_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
66
|
-
var Bytes = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
67
|
-
var Type_BOOLEAN_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
68
|
-
var Boolean_0 = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
69
|
-
var Type_NUMBER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
70
|
-
var Number_0 = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
71
|
-
var Type_INTEGER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
72
|
-
var Integer = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
73
|
-
var String_0 = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
74
|
-
var Type_OBJECT_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
66
|
+
var Type_STRING_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o1;
|
|
67
|
+
var Bytes = kotlin_community_flock_wirespec_compiler_core.$_$.b1;
|
|
68
|
+
var Type_BOOLEAN_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k1;
|
|
69
|
+
var Boolean_0 = kotlin_community_flock_wirespec_compiler_core.$_$.a1;
|
|
70
|
+
var Type_NUMBER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m1;
|
|
71
|
+
var Number_0 = kotlin_community_flock_wirespec_compiler_core.$_$.d1;
|
|
72
|
+
var Type_INTEGER_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l1;
|
|
73
|
+
var Integer = kotlin_community_flock_wirespec_compiler_core.$_$.c1;
|
|
74
|
+
var String_0 = kotlin_community_flock_wirespec_compiler_core.$_$.e1;
|
|
75
|
+
var Type_OBJECT_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n1;
|
|
75
76
|
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.w;
|
|
76
77
|
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.x;
|
|
77
|
-
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
78
|
+
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.f1;
|
|
79
|
+
var Dict = kotlin_community_flock_wirespec_compiler_core.$_$.y;
|
|
78
80
|
var Literal = kotlin_community_flock_wirespec_compiler_core.$_$.q;
|
|
79
81
|
var Param = kotlin_community_flock_wirespec_compiler_core.$_$.r;
|
|
80
82
|
var Emitter = kotlin_community_flock_wirespec_compiler_core.$_$.b;
|
|
81
|
-
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
83
|
+
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.u1;
|
|
82
84
|
var SwaggerObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m;
|
|
83
85
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
84
86
|
var arrayOf = kotlin_kotlin.$_$.wf;
|
|
@@ -92,111 +94,112 @@
|
|
|
92
94
|
var InfoObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c;
|
|
93
95
|
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.s;
|
|
94
96
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.u;
|
|
95
|
-
var _Path___init__impl__6uf4pw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
96
|
-
var ParameterLocation_PATH_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
97
|
-
var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
98
|
-
var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
99
|
-
var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
100
|
-
var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
101
|
-
var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
102
|
-
var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
103
|
-
var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
104
|
-
var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
97
|
+
var _Path___init__impl__6uf4pw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z1;
|
|
98
|
+
var ParameterLocation_PATH_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h1;
|
|
99
|
+
var Method_GET_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.w1;
|
|
100
|
+
var Method_POST_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.a2;
|
|
101
|
+
var Method_PUT_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.b2;
|
|
102
|
+
var Method_DELETE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.v1;
|
|
103
|
+
var Method_PATCH_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.z1;
|
|
104
|
+
var Method_OPTIONS_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y1;
|
|
105
|
+
var Method_TRACE_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.c2;
|
|
106
|
+
var Method_HEAD_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.x1;
|
|
105
107
|
var Path = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h;
|
|
106
108
|
var PathItemObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.g;
|
|
107
|
-
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
108
|
-
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
109
|
+
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.i1;
|
|
110
|
+
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.k1;
|
|
109
111
|
var plus_0 = kotlin_kotlin.$_$.o7;
|
|
110
112
|
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.t;
|
|
111
113
|
var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h;
|
|
112
114
|
var toString = kotlin_kotlin.$_$.cb;
|
|
113
115
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.l1;
|
|
114
|
-
var _Ref___init__impl__7qfl46 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
116
|
+
var _Ref___init__impl__7qfl46 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d2;
|
|
115
117
|
var emptyList = kotlin_kotlin.$_$.b6;
|
|
116
118
|
var NotImplementedError = kotlin_kotlin.$_$.ef;
|
|
117
119
|
var Content = kotlin_community_flock_wirespec_compiler_core.$_$.m;
|
|
118
120
|
var Request = kotlin_community_flock_wirespec_compiler_core.$_$.o;
|
|
119
121
|
var emptyMap = kotlin_kotlin.$_$.c6;
|
|
120
|
-
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
122
|
+
var _StatusCode___get_value__impl__we50mu = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.j2;
|
|
121
123
|
var Response = kotlin_community_flock_wirespec_compiler_core.$_$.p;
|
|
122
124
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
123
125
|
var DefinitionIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.k;
|
|
124
126
|
var KtMap = kotlin_kotlin.$_$.t4;
|
|
125
|
-
var String_instance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
126
|
-
var Precision_P64_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
127
|
-
var Precision_P32_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
128
|
-
var Boolean_instance = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
129
|
-
var Ref__toString_impl_irb7zi = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
127
|
+
var String_instance = kotlin_community_flock_wirespec_compiler_core.$_$.o2;
|
|
128
|
+
var Precision_P64_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.e2;
|
|
129
|
+
var Precision_P32_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.d2;
|
|
130
|
+
var Boolean_instance = kotlin_community_flock_wirespec_compiler_core.$_$.m2;
|
|
131
|
+
var Ref__toString_impl_irb7zi = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e2;
|
|
130
132
|
var BooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a;
|
|
131
|
-
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
133
|
+
var Shape = kotlin_community_flock_wirespec_compiler_core.$_$.j1;
|
|
132
134
|
var ensureNotNull = kotlin_kotlin.$_$.zf;
|
|
133
135
|
var toSet = kotlin_kotlin.$_$.q8;
|
|
134
136
|
var get_entries = kotlin_community_flock_wirespec_compiler_core.$_$.n;
|
|
135
|
-
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
137
|
+
var _Ref___get_value__impl__kxavfe = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.f2;
|
|
136
138
|
var FieldIdentifier = kotlin_community_flock_wirespec_compiler_core.$_$.u;
|
|
137
139
|
var Field = kotlin_community_flock_wirespec_compiler_core.$_$.v;
|
|
138
140
|
var equals = kotlin_kotlin.$_$.r9;
|
|
139
|
-
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
141
|
+
var _Path___get_value__impl__thmflc = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c2;
|
|
140
142
|
var drop = kotlin_kotlin.$_$.a6;
|
|
141
143
|
var charSequenceLength = kotlin_kotlin.$_$.n9;
|
|
142
144
|
var charSequenceGet = kotlin_kotlin.$_$.m9;
|
|
143
145
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.v1;
|
|
144
146
|
var isBlank = kotlin_kotlin.$_$.uc;
|
|
145
|
-
var Path__toString_impl_wlr1lw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
146
|
-
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
147
|
+
var Path__toString_impl_wlr1lw = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b2;
|
|
148
|
+
var Path__hashCode_impl_go73kd = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a2;
|
|
147
149
|
var getStringHashCode = kotlin_kotlin.$_$.w9;
|
|
148
150
|
var initMetadataForClass = kotlin_kotlin.$_$.y9;
|
|
149
|
-
var StatusCode__toString_impl_6caewy = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
150
|
-
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
151
|
+
var StatusCode__toString_impl_6caewy = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.i2;
|
|
152
|
+
var StatusCode__hashCode_impl_fevhvx = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.h2;
|
|
151
153
|
var hashCode = kotlin_kotlin.$_$.x9;
|
|
152
154
|
var OpenAPI = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d;
|
|
153
155
|
var listOf_0 = kotlin_kotlin.$_$.h7;
|
|
154
156
|
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
155
157
|
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.l;
|
|
156
158
|
var Channel = kotlin_community_flock_wirespec_compiler_core.$_$.i;
|
|
157
|
-
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.
|
|
159
|
+
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.l1;
|
|
158
160
|
var ComponentsObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o;
|
|
159
|
-
var _Path___init__impl__6uf4pw_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
161
|
+
var _Path___init__impl__6uf4pw_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.m2;
|
|
160
162
|
var Path_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y;
|
|
161
163
|
var PathItemObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x;
|
|
162
|
-
var Type_STRING_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
164
|
+
var Type_STRING_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.y1;
|
|
163
165
|
var SchemaObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.c1;
|
|
164
|
-
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
165
|
-
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
166
|
+
var ParameterLocation_QUERY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s1;
|
|
167
|
+
var ParameterLocation_HEADER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q1;
|
|
166
168
|
var Collection = kotlin_kotlin.$_$.k4;
|
|
167
169
|
var RequestBodyObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.a1;
|
|
168
|
-
var _StatusCode___init__impl__t1yi9q_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
169
|
-
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
170
|
+
var _StatusCode___init__impl__t1yi9q_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t2;
|
|
171
|
+
var StatusCode_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.e1;
|
|
170
172
|
var ResponseObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.b1;
|
|
171
173
|
var OperationObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v;
|
|
172
174
|
var ParameterObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w;
|
|
173
|
-
var ParameterLocation_PATH_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
175
|
+
var ParameterLocation_PATH_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r1;
|
|
174
176
|
var HeaderObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p;
|
|
175
|
-
var _Ref___init__impl__7qfl46_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
177
|
+
var _Ref___init__impl__7qfl46_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q2;
|
|
176
178
|
var ReferenceObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.z;
|
|
177
|
-
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
178
|
-
var Type_OBJECT_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
179
|
-
var
|
|
180
|
-
var
|
|
181
|
-
var
|
|
182
|
-
var
|
|
179
|
+
var Type_ARRAY_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t1;
|
|
180
|
+
var Type_OBJECT_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.x1;
|
|
181
|
+
var SchemaOrReferenceOrBooleanObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.d1;
|
|
182
|
+
var Type_BOOLEAN_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u1;
|
|
183
|
+
var Type_NUMBER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w1;
|
|
184
|
+
var Type_INTEGER_getInstance_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v1;
|
|
185
|
+
var _MediaType___init__impl__i9gzb9 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.k2;
|
|
183
186
|
var MediaType = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s;
|
|
184
187
|
var MediaTypeObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r;
|
|
185
188
|
var OpenAPIObject = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.t;
|
|
186
189
|
var InfoObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.q;
|
|
187
|
-
var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
188
|
-
var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
189
|
-
var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
190
|
-
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
191
|
-
var Ref__toString_impl_irb7zi_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
190
|
+
var ParameterLocation_COOKIE_getInstance = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p1;
|
|
191
|
+
var _MediaType___get_value__impl__wy58mp = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.l2;
|
|
192
|
+
var _StatusCode___get_value__impl__we50mu_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.w2;
|
|
193
|
+
var _Path___get_value__impl__thmflc_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.p2;
|
|
194
|
+
var Ref__toString_impl_irb7zi_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.r2;
|
|
192
195
|
var BooleanObject_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n;
|
|
193
196
|
var checkIndexOverflow = kotlin_kotlin.$_$.h5;
|
|
194
|
-
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
197
|
+
var _Ref___get_value__impl__kxavfe_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.s2;
|
|
195
198
|
var getOrNull = kotlin_kotlin.$_$.l6;
|
|
196
|
-
var Path__toString_impl_wlr1lw_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
197
|
-
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
198
|
-
var StatusCode__toString_impl_6caewy_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
199
|
-
var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.
|
|
199
|
+
var Path__toString_impl_wlr1lw_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.o2;
|
|
200
|
+
var Path__hashCode_impl_go73kd_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.n2;
|
|
201
|
+
var StatusCode__toString_impl_6caewy_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.v2;
|
|
202
|
+
var StatusCode__hashCode_impl_fevhvx_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u2;
|
|
200
203
|
var OpenAPI_0 = kotlin_community_flock_kotlinx_openapi_bindings_kotlin_openapi_bindings.$_$.u;
|
|
201
204
|
//endregion
|
|
202
205
|
//region block: pre-declaration
|
|
@@ -211,7 +214,7 @@
|
|
|
211
214
|
initMetadataForObject(OpenApiV3Parser, 'OpenApiV3Parser');
|
|
212
215
|
//endregion
|
|
213
216
|
function Common$className$lambda(it) {
|
|
214
|
-
return Companion_getInstance().
|
|
217
|
+
return Companion_getInstance().h24(it);
|
|
215
218
|
}
|
|
216
219
|
function Common$json$lambda($this$Json) {
|
|
217
220
|
$this$Json.x15_1 = true;
|
|
@@ -220,9 +223,9 @@
|
|
|
220
223
|
function Common() {
|
|
221
224
|
Common_instance = this;
|
|
222
225
|
var tmp = this;
|
|
223
|
-
tmp.
|
|
226
|
+
tmp.b2a_1 = Json(VOID, Common$json$lambda);
|
|
224
227
|
}
|
|
225
|
-
protoOf(Common).
|
|
228
|
+
protoOf(Common).c2a = function (arg) {
|
|
226
229
|
// Inline function 'kotlin.collections.flatMap' call
|
|
227
230
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
228
231
|
var destination = ArrayList_init_$Create$();
|
|
@@ -238,7 +241,7 @@
|
|
|
238
241
|
var tmp = destination;
|
|
239
242
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, Common$className$lambda);
|
|
240
243
|
};
|
|
241
|
-
protoOf(Common).
|
|
244
|
+
protoOf(Common).d2a = function (_this__u8e3s4) {
|
|
242
245
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
243
246
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
244
247
|
var destination = ArrayList_init_$Create$();
|
|
@@ -288,7 +291,7 @@
|
|
|
288
291
|
while (tmp0_iterator.h()) {
|
|
289
292
|
var element = tmp0_iterator.i();
|
|
290
293
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
291
|
-
if (element.
|
|
294
|
+
if (element.q23_1.equals(method)) {
|
|
292
295
|
destination.e(element);
|
|
293
296
|
}
|
|
294
297
|
}
|
|
@@ -304,8 +307,8 @@
|
|
|
304
307
|
return firstOrNull(destination_0);
|
|
305
308
|
}
|
|
306
309
|
function emit_0(_this__u8e3s4, $this) {
|
|
307
|
-
var tmp1_operationId = _this__u8e3s4.
|
|
308
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
310
|
+
var tmp1_operationId = _this__u8e3s4.p23_1.b1();
|
|
311
|
+
var tmp0_safe_receiver = _this__u8e3s4.o23_1;
|
|
309
312
|
var tmp;
|
|
310
313
|
var tmp_0 = tmp0_safe_receiver;
|
|
311
314
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -317,7 +320,7 @@
|
|
|
317
320
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
318
321
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
319
322
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
320
|
-
var this_0 = _this__u8e3s4.
|
|
323
|
+
var this_0 = _this__u8e3s4.v23_1;
|
|
321
324
|
var destination = ArrayList_init_$Create$();
|
|
322
325
|
// Inline function 'kotlin.collections.forEach' call
|
|
323
326
|
var tmp0_iterator = this_0.g();
|
|
@@ -325,8 +328,8 @@
|
|
|
325
328
|
var element = tmp0_iterator.i();
|
|
326
329
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
327
330
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
328
|
-
var tmp0_safe_receiver_0 = element.
|
|
329
|
-
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.
|
|
331
|
+
var tmp0_safe_receiver_0 = element.c24_1;
|
|
332
|
+
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.d24_1;
|
|
330
333
|
if (tmp0_safe_receiver_1 == null)
|
|
331
334
|
null;
|
|
332
335
|
else {
|
|
@@ -348,7 +351,7 @@
|
|
|
348
351
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
349
352
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
350
353
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
351
|
-
var this_2 = _this__u8e3s4.
|
|
354
|
+
var this_2 = _this__u8e3s4.w23_1;
|
|
352
355
|
var destination_0 = ArrayList_init_$Create$();
|
|
353
356
|
// Inline function 'kotlin.collections.forEach' call
|
|
354
357
|
var tmp0_iterator_0 = this_2.g();
|
|
@@ -356,8 +359,8 @@
|
|
|
356
359
|
var element_0 = tmp0_iterator_0.i();
|
|
357
360
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
358
361
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
359
|
-
var tmp0_safe_receiver_2 = element_0.
|
|
360
|
-
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.
|
|
362
|
+
var tmp0_safe_receiver_2 = element_0.z23_1;
|
|
363
|
+
var tmp0_safe_receiver_3 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.d24_1;
|
|
361
364
|
if (tmp0_safe_receiver_3 == null)
|
|
362
365
|
null;
|
|
363
366
|
else {
|
|
@@ -379,7 +382,7 @@
|
|
|
379
382
|
// Inline function 'kotlin.collections.map' call
|
|
380
383
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
381
384
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
382
|
-
var this_4 = _this__u8e3s4.
|
|
385
|
+
var this_4 = _this__u8e3s4.v23_1;
|
|
383
386
|
var destination_1 = ArrayList_init_$Create$();
|
|
384
387
|
// Inline function 'kotlin.collections.forEach' call
|
|
385
388
|
var tmp0_iterator_1 = this_4.g();
|
|
@@ -387,7 +390,7 @@
|
|
|
387
390
|
var element_1 = tmp0_iterator_1.i();
|
|
388
391
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
389
392
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
390
|
-
var tmp0_safe_receiver_4 = element_1.
|
|
393
|
+
var tmp0_safe_receiver_4 = element_1.c24_1;
|
|
391
394
|
if (tmp0_safe_receiver_4 == null)
|
|
392
395
|
null;
|
|
393
396
|
else {
|
|
@@ -404,14 +407,14 @@
|
|
|
404
407
|
var item = tmp0_iterator_2.i();
|
|
405
408
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
406
409
|
var tmp0_in = ParameterLocation_BODY_getInstance();
|
|
407
|
-
var tmp1_schema = OpenApiV2Emitter_getInstance().
|
|
408
|
-
var tmp2_required = !item.
|
|
410
|
+
var tmp1_schema = OpenApiV2Emitter_getInstance().q24(item.e24_1);
|
|
411
|
+
var tmp2_required = !item.e24_1.wl();
|
|
409
412
|
var tmp$ret$16 = new ParameterObject('RequestBody', tmp0_in, VOID, tmp2_required, tmp1_schema);
|
|
410
413
|
destination_2.e(tmp$ret$16);
|
|
411
414
|
}
|
|
412
415
|
var tmp_3 = destination_2;
|
|
413
416
|
// Inline function 'kotlin.collections.map' call
|
|
414
|
-
var this_6 = _this__u8e3s4.
|
|
417
|
+
var this_6 = _this__u8e3s4.s23_1;
|
|
415
418
|
// Inline function 'kotlin.collections.mapTo' call
|
|
416
419
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10));
|
|
417
420
|
var tmp0_iterator_3 = this_6.g();
|
|
@@ -423,7 +426,7 @@
|
|
|
423
426
|
}
|
|
424
427
|
var tmp_4 = plus(tmp_3, destination_3);
|
|
425
428
|
// Inline function 'kotlin.collections.map' call
|
|
426
|
-
var this_7 = _this__u8e3s4.
|
|
429
|
+
var this_7 = _this__u8e3s4.t23_1;
|
|
427
430
|
// Inline function 'kotlin.collections.mapTo' call
|
|
428
431
|
var destination_4 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_7, 10));
|
|
429
432
|
var tmp0_iterator_4 = this_7.g();
|
|
@@ -435,7 +438,7 @@
|
|
|
435
438
|
}
|
|
436
439
|
var tmp5_parameters = plus(tmp_4, destination_4);
|
|
437
440
|
// Inline function 'kotlin.collections.associate' call
|
|
438
|
-
var this_8 = _this__u8e3s4.
|
|
441
|
+
var this_8 = _this__u8e3s4.w23_1;
|
|
439
442
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_8, 10)), 16);
|
|
440
443
|
// Inline function 'kotlin.collections.associateTo' call
|
|
441
444
|
var destination_5 = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -444,8 +447,8 @@
|
|
|
444
447
|
var element_2 = tmp0_iterator_5.i();
|
|
445
448
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
446
449
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
447
|
-
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.
|
|
448
|
-
var tmp0_safe_receiver_5 = _this__u8e3s4.
|
|
450
|
+
var tmp_5 = _StatusCode___init__impl__t1yi9q(element_2.x23_1);
|
|
451
|
+
var tmp0_safe_receiver_5 = _this__u8e3s4.o23_1;
|
|
449
452
|
var tmp_6;
|
|
450
453
|
var tmp_7 = tmp0_safe_receiver_5;
|
|
451
454
|
if ((tmp_7 == null ? null : new Comment(tmp_7)) == null) {
|
|
@@ -454,9 +457,9 @@
|
|
|
454
457
|
tmp_6 = _Comment___get_value__impl__8r3pla(tmp0_safe_receiver_5);
|
|
455
458
|
}
|
|
456
459
|
var tmp1_elvis_lhs = tmp_6;
|
|
457
|
-
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.
|
|
460
|
+
var tmp4_description = tmp1_elvis_lhs == null ? _this__u8e3s4.p23_1.b1() + ' ' + element_2.x23_1 + ' response' : tmp1_elvis_lhs;
|
|
458
461
|
// Inline function 'kotlin.collections.associate' call
|
|
459
|
-
var this_9 = element_2.
|
|
462
|
+
var this_9 = element_2.y23_1;
|
|
460
463
|
var capacity_0 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_9, 10)), 16);
|
|
461
464
|
// Inline function 'kotlin.collections.associateTo' call
|
|
462
465
|
var destination_6 = LinkedHashMap_init_$Create$(capacity_0);
|
|
@@ -465,49 +468,50 @@
|
|
|
465
468
|
var element_3 = tmp0_iterator_6.i();
|
|
466
469
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
467
470
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
468
|
-
var
|
|
471
|
+
var tmp_8 = element_3.j24_1.b1();
|
|
472
|
+
var tmp_9 = emitType_0(element_3.k24_1, OpenApiV2Emitter_getInstance()).p2_1;
|
|
473
|
+
var tmp_10 = emitFormat(element_3.k24_1, OpenApiV2Emitter_getInstance());
|
|
474
|
+
var tmp_11 = element_3.k24_1;
|
|
475
|
+
var tmp0_safe_receiver_6 = tmp_11 instanceof Iterable ? tmp_11 : null;
|
|
476
|
+
var tmp1_safe_receiver = tmp0_safe_receiver_6 == null ? null : tmp0_safe_receiver_6.y25_1;
|
|
477
|
+
var pair = to(tmp_8, new HeaderObject(VOID, tmp_9, tmp_10, tmp1_safe_receiver == null ? null : OpenApiV2Emitter_getInstance().q24(tmp1_safe_receiver)));
|
|
469
478
|
destination_6.m2(pair.ce_1, pair.de_1);
|
|
470
479
|
}
|
|
471
|
-
var tmp2_safe_receiver = element_2.
|
|
472
|
-
var
|
|
480
|
+
var tmp2_safe_receiver = element_2.z23_1;
|
|
481
|
+
var tmp_12;
|
|
473
482
|
if (tmp2_safe_receiver == null) {
|
|
474
|
-
|
|
483
|
+
tmp_12 = null;
|
|
475
484
|
} else {
|
|
476
485
|
// Inline function 'kotlin.takeIf' call
|
|
477
486
|
// Inline function 'kotlin.contracts.contract' call
|
|
478
|
-
var
|
|
487
|
+
var tmp_13;
|
|
479
488
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
480
|
-
var
|
|
481
|
-
if (!(
|
|
482
|
-
|
|
489
|
+
var tmp_14 = tmp2_safe_receiver.e24_1;
|
|
490
|
+
if (!(tmp_14 instanceof Unit)) {
|
|
491
|
+
tmp_13 = tmp2_safe_receiver;
|
|
483
492
|
} else {
|
|
484
|
-
|
|
493
|
+
tmp_13 = null;
|
|
485
494
|
}
|
|
486
|
-
|
|
495
|
+
tmp_12 = tmp_13;
|
|
487
496
|
}
|
|
488
|
-
var tmp3_safe_receiver =
|
|
489
|
-
var
|
|
497
|
+
var tmp3_safe_receiver = tmp_12;
|
|
498
|
+
var tmp_15;
|
|
490
499
|
if (tmp3_safe_receiver == null) {
|
|
491
|
-
|
|
500
|
+
tmp_15 = null;
|
|
492
501
|
} else {
|
|
493
502
|
// Inline function 'kotlin.let' call
|
|
494
503
|
// Inline function 'kotlin.contracts.contract' call
|
|
495
504
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>.<anonymous>' call
|
|
496
|
-
var
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
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().v24(tmp3_safe_receiver.g24_1));
|
|
503
|
-
break;
|
|
504
|
-
default:
|
|
505
|
-
noWhenBranchMatchedException();
|
|
506
|
-
break;
|
|
505
|
+
var ref = tmp3_safe_receiver.e24_1;
|
|
506
|
+
var tmp_16;
|
|
507
|
+
if (ref instanceof Iterable) {
|
|
508
|
+
tmp_16 = 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().q24(ref.y25_1));
|
|
509
|
+
} else {
|
|
510
|
+
tmp_16 = OpenApiV2Emitter_getInstance().q24(ref);
|
|
507
511
|
}
|
|
508
|
-
|
|
512
|
+
tmp_15 = tmp_16;
|
|
509
513
|
}
|
|
510
|
-
var tmp6_schema =
|
|
514
|
+
var tmp6_schema = tmp_15;
|
|
511
515
|
var pair_0 = to(new StatusCode(tmp_5), new ResponseObject(tmp4_description, tmp6_schema, destination_6));
|
|
512
516
|
destination_5.m2(pair_0.ce_1, pair_0.de_1);
|
|
513
517
|
}
|
|
@@ -517,36 +521,30 @@
|
|
|
517
521
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV2Emitter$emitSegment$lambda);
|
|
518
522
|
}
|
|
519
523
|
function emitParameter(_this__u8e3s4, $this, location) {
|
|
520
|
-
var
|
|
521
|
-
var
|
|
522
|
-
var
|
|
524
|
+
var tmp0_name = _this__u8e3s4.j24_1.b1();
|
|
525
|
+
var tmp1_type = emitType_0(_this__u8e3s4.k24_1, $this);
|
|
526
|
+
var tmp2_format = emitFormat(_this__u8e3s4.k24_1, $this);
|
|
527
|
+
var ref = _this__u8e3s4.k24_1;
|
|
523
528
|
var tmp;
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
529
|
+
if (ref instanceof Iterable) {
|
|
530
|
+
var emit = $this.q24(ref);
|
|
531
|
+
var tmp_0;
|
|
532
|
+
if (emit instanceof ReferenceObject) {
|
|
533
|
+
tmp_0 = emit;
|
|
534
|
+
} else {
|
|
535
|
+
if (emit instanceof SchemaObject) {
|
|
536
|
+
tmp_0 = emit.f1n_1;
|
|
530
537
|
} else {
|
|
531
|
-
|
|
532
|
-
tmp_0 = emit.f1n_1;
|
|
533
|
-
} else {
|
|
534
|
-
noWhenBranchMatchedException();
|
|
535
|
-
}
|
|
538
|
+
noWhenBranchMatchedException();
|
|
536
539
|
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
tmp = null;
|
|
542
|
-
break;
|
|
543
|
-
default:
|
|
544
|
-
noWhenBranchMatchedException();
|
|
545
|
-
break;
|
|
540
|
+
}
|
|
541
|
+
tmp = tmp_0;
|
|
542
|
+
} else {
|
|
543
|
+
tmp = null;
|
|
546
544
|
}
|
|
547
|
-
var
|
|
548
|
-
var
|
|
549
|
-
return new ParameterObject(
|
|
545
|
+
var tmp3_items = tmp;
|
|
546
|
+
var tmp4_required = !_this__u8e3s4.k24_1.wl();
|
|
547
|
+
return new ParameterObject(tmp0_name, location, VOID, tmp4_required, VOID, tmp1_type, tmp3_items, tmp2_format);
|
|
550
548
|
}
|
|
551
549
|
function emitType(_this__u8e3s4, $this) {
|
|
552
550
|
var tmp;
|
|
@@ -575,39 +573,41 @@
|
|
|
575
573
|
}
|
|
576
574
|
function emitType_0(_this__u8e3s4, $this) {
|
|
577
575
|
var tmp;
|
|
578
|
-
if (_this__u8e3s4
|
|
579
|
-
tmp =
|
|
576
|
+
if (_this__u8e3s4 instanceof Dict) {
|
|
577
|
+
tmp = Type_OBJECT_getInstance();
|
|
580
578
|
} else {
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
tmp_0 = emitType(_this__u8e3s4.i23_1, $this);
|
|
579
|
+
if (_this__u8e3s4 instanceof Iterable) {
|
|
580
|
+
tmp = Type_ARRAY_getInstance();
|
|
584
581
|
} else {
|
|
585
|
-
if (_this__u8e3s4 instanceof
|
|
586
|
-
|
|
582
|
+
if (_this__u8e3s4 instanceof Primitive) {
|
|
583
|
+
tmp = emitType(_this__u8e3s4.h23_1, $this);
|
|
587
584
|
} else {
|
|
588
|
-
if (_this__u8e3s4 instanceof
|
|
589
|
-
|
|
585
|
+
if (_this__u8e3s4 instanceof Custom) {
|
|
586
|
+
tmp = Type_OBJECT_getInstance();
|
|
590
587
|
} else {
|
|
591
|
-
if (_this__u8e3s4 instanceof
|
|
592
|
-
|
|
588
|
+
if (_this__u8e3s4 instanceof Any) {
|
|
589
|
+
tmp = Type_OBJECT_getInstance();
|
|
593
590
|
} else {
|
|
594
|
-
|
|
591
|
+
if (_this__u8e3s4 instanceof Unit) {
|
|
592
|
+
tmp = Type_OBJECT_getInstance();
|
|
593
|
+
} else {
|
|
594
|
+
noWhenBranchMatchedException();
|
|
595
|
+
}
|
|
595
596
|
}
|
|
596
597
|
}
|
|
597
598
|
}
|
|
598
599
|
}
|
|
599
|
-
tmp = tmp_0;
|
|
600
600
|
}
|
|
601
601
|
return tmp;
|
|
602
602
|
}
|
|
603
603
|
function emitFormat(_this__u8e3s4, $this) {
|
|
604
604
|
var tmp;
|
|
605
605
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
606
|
-
var t = _this__u8e3s4.
|
|
606
|
+
var t = _this__u8e3s4.h23_1;
|
|
607
607
|
var tmp_0;
|
|
608
608
|
if (t instanceof Number_0) {
|
|
609
609
|
var tmp_1;
|
|
610
|
-
switch (t.
|
|
610
|
+
switch (t.k23_1.q2_1) {
|
|
611
611
|
case 0:
|
|
612
612
|
tmp_1 = 'float';
|
|
613
613
|
break;
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
} else {
|
|
623
623
|
if (t instanceof Integer) {
|
|
624
624
|
var tmp_2;
|
|
625
|
-
switch (t.
|
|
625
|
+
switch (t.m23_1.q2_1) {
|
|
626
626
|
case 0:
|
|
627
627
|
tmp_2 = 'int32';
|
|
628
628
|
break;
|
|
@@ -651,10 +651,10 @@
|
|
|
651
651
|
function OpenApiV2Emitter$emitSegment$lambda(it) {
|
|
652
652
|
var tmp;
|
|
653
653
|
if (it instanceof Param) {
|
|
654
|
-
tmp = '{' + it.
|
|
654
|
+
tmp = '{' + it.o24_1.b1() + '}';
|
|
655
655
|
} else {
|
|
656
656
|
if (it instanceof Literal) {
|
|
657
|
-
tmp = it.
|
|
657
|
+
tmp = it.y24_1;
|
|
658
658
|
} else {
|
|
659
659
|
noWhenBranchMatchedException();
|
|
660
660
|
}
|
|
@@ -664,15 +664,15 @@
|
|
|
664
664
|
function OpenApiV2Emitter() {
|
|
665
665
|
OpenApiV2Emitter_instance = this;
|
|
666
666
|
Emitter.call(this, get_noLogger());
|
|
667
|
-
this.
|
|
667
|
+
this.g2a_1 = '';
|
|
668
668
|
}
|
|
669
|
-
protoOf(OpenApiV2Emitter).
|
|
670
|
-
return this.
|
|
669
|
+
protoOf(OpenApiV2Emitter).q25 = function () {
|
|
670
|
+
return this.g2a_1;
|
|
671
671
|
};
|
|
672
672
|
protoOf(OpenApiV2Emitter).k22 = function (ast) {
|
|
673
673
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
674
|
-
var this_0 = Common_getInstance().
|
|
675
|
-
var value = this.
|
|
674
|
+
var this_0 = Common_getInstance().b2a_1;
|
|
675
|
+
var value = this.h2a(ast);
|
|
676
676
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
677
677
|
var this_1 = this_0.mo();
|
|
678
678
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -681,25 +681,25 @@
|
|
|
681
681
|
var tmp$ret$2 = this_0.b15(tmp$ret$1, value);
|
|
682
682
|
return listOf(new Emitted('SwaggerObject', tmp$ret$2));
|
|
683
683
|
};
|
|
684
|
-
protoOf(OpenApiV2Emitter).
|
|
685
|
-
return this.
|
|
684
|
+
protoOf(OpenApiV2Emitter).u25 = function (type, ast) {
|
|
685
|
+
return this.r26();
|
|
686
686
|
};
|
|
687
|
-
protoOf(OpenApiV2Emitter).
|
|
688
|
-
return this.
|
|
687
|
+
protoOf(OpenApiV2Emitter).i26 = function (enum_0, ast) {
|
|
688
|
+
return this.r26();
|
|
689
689
|
};
|
|
690
|
-
protoOf(OpenApiV2Emitter).
|
|
691
|
-
return this.
|
|
690
|
+
protoOf(OpenApiV2Emitter).e26 = function (refined) {
|
|
691
|
+
return this.r26();
|
|
692
692
|
};
|
|
693
|
-
protoOf(OpenApiV2Emitter).
|
|
694
|
-
return this.
|
|
693
|
+
protoOf(OpenApiV2Emitter).m26 = function (endpoint) {
|
|
694
|
+
return this.r26();
|
|
695
695
|
};
|
|
696
|
-
protoOf(OpenApiV2Emitter).
|
|
697
|
-
return this.
|
|
696
|
+
protoOf(OpenApiV2Emitter).k26 = function (union) {
|
|
697
|
+
return this.r26();
|
|
698
698
|
};
|
|
699
|
-
protoOf(OpenApiV2Emitter).
|
|
700
|
-
return this.
|
|
699
|
+
protoOf(OpenApiV2Emitter).l26 = function (channel) {
|
|
700
|
+
return this.r26();
|
|
701
701
|
};
|
|
702
|
-
protoOf(OpenApiV2Emitter).
|
|
702
|
+
protoOf(OpenApiV2Emitter).h2a = function (ast) {
|
|
703
703
|
var tmp = new InfoObject('Wirespec', VOID, VOID, VOID, VOID, '0.0.0');
|
|
704
704
|
var tmp_0 = listOf('application/json');
|
|
705
705
|
var tmp_1 = listOf('application/json');
|
|
@@ -721,7 +721,7 @@
|
|
|
721
721
|
while (tmp0_iterator_0.h()) {
|
|
722
722
|
var element_0 = tmp0_iterator_0.i();
|
|
723
723
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
724
|
-
var key = element_0.
|
|
724
|
+
var key = element_0.r23_1;
|
|
725
725
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
726
726
|
var value = destination_0.f2(key);
|
|
727
727
|
var tmp_2;
|
|
@@ -766,9 +766,9 @@
|
|
|
766
766
|
var item_0 = tmp0_iterator_3.i();
|
|
767
767
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
768
768
|
var tmp0_in = ParameterLocation_PATH_getInstance();
|
|
769
|
-
var tmp1_name = item_0.
|
|
770
|
-
var tmp2_type = emitType_0(item_0.
|
|
771
|
-
var tmp3_format = emitFormat(item_0.
|
|
769
|
+
var tmp1_name = item_0.o24_1.b1();
|
|
770
|
+
var tmp2_type = emitType_0(item_0.p24_1, OpenApiV2Emitter_getInstance());
|
|
771
|
+
var tmp3_format = emitFormat(item_0.p24_1, OpenApiV2Emitter_getInstance());
|
|
772
772
|
var tmp$ret$12 = new ParameterObject(tmp1_name, tmp0_in, VOID, VOID, VOID, tmp2_type, VOID, tmp3_format);
|
|
773
773
|
destination_3.e(tmp$ret$12);
|
|
774
774
|
}
|
|
@@ -803,9 +803,9 @@
|
|
|
803
803
|
var element_3 = tmp0_iterator_5.i();
|
|
804
804
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
805
805
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
806
|
-
var tmp_5 = element_3.
|
|
806
|
+
var tmp_5 = element_3.i25_1.b1();
|
|
807
807
|
var tmp0_type = Type_STRING_getInstance();
|
|
808
|
-
var tmp1_pattern = element_3.
|
|
808
|
+
var tmp1_pattern = element_3.j25_1.g26_1;
|
|
809
809
|
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));
|
|
810
810
|
destination_5.m2(pair.ce_1, pair.de_1);
|
|
811
811
|
}
|
|
@@ -829,9 +829,9 @@
|
|
|
829
829
|
var element_5 = tmp0_iterator_7.i();
|
|
830
830
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
831
831
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
832
|
-
var tmp_7 = element_5.
|
|
832
|
+
var tmp_7 = element_5.e25_1.b1();
|
|
833
833
|
// Inline function 'kotlin.collections.associate' call
|
|
834
|
-
var this_0 = element_5.
|
|
834
|
+
var this_0 = element_5.f25_1.x25_1;
|
|
835
835
|
var capacity_1 = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
836
836
|
// Inline function 'kotlin.collections.associateTo' call
|
|
837
837
|
var destination_8 = LinkedHashMap_init_$Create$(capacity_1);
|
|
@@ -840,20 +840,20 @@
|
|
|
840
840
|
var element_6 = tmp0_iterator_8.i();
|
|
841
841
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
842
842
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
843
|
-
var pair_0 = OpenApiV2Emitter_getInstance().
|
|
843
|
+
var pair_0 = OpenApiV2Emitter_getInstance().t24(element_6);
|
|
844
844
|
destination_8.m2(pair_0.ce_1, pair_0.de_1);
|
|
845
845
|
}
|
|
846
846
|
// Inline function 'kotlin.takeIf' call
|
|
847
847
|
// Inline function 'kotlin.collections.map' call
|
|
848
848
|
// Inline function 'kotlin.collections.filter' call
|
|
849
849
|
// Inline function 'kotlin.collections.filterTo' call
|
|
850
|
-
var this_1 = element_5.
|
|
850
|
+
var this_1 = element_5.f25_1.x25_1;
|
|
851
851
|
var destination_9 = ArrayList_init_$Create$();
|
|
852
852
|
var tmp0_iterator_9 = this_1.g();
|
|
853
853
|
while (tmp0_iterator_9.h()) {
|
|
854
854
|
var element_7 = tmp0_iterator_9.i();
|
|
855
855
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
856
|
-
if (!element_7.
|
|
856
|
+
if (!element_7.k24_1.wl()) {
|
|
857
857
|
destination_9.e(element_7);
|
|
858
858
|
}
|
|
859
859
|
}
|
|
@@ -863,7 +863,7 @@
|
|
|
863
863
|
while (tmp0_iterator_10.h()) {
|
|
864
864
|
var item_1 = tmp0_iterator_10.i();
|
|
865
865
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>.<anonymous>' call
|
|
866
|
-
var tmp$ret$31 = item_1.
|
|
866
|
+
var tmp$ret$31 = item_1.j24_1.b1();
|
|
867
867
|
destination_10.e(tmp$ret$31);
|
|
868
868
|
}
|
|
869
869
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -899,10 +899,10 @@
|
|
|
899
899
|
var element_9 = tmp0_iterator_12.i();
|
|
900
900
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
901
901
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emitSwaggerObject.<anonymous>' call
|
|
902
|
-
var tmp_10 = element_9.
|
|
902
|
+
var tmp_10 = element_9.l25_1.b1();
|
|
903
903
|
var tmp0_type_0 = Type_STRING_getInstance();
|
|
904
904
|
// Inline function 'kotlin.collections.map' call
|
|
905
|
-
var this_2 = element_9.
|
|
905
|
+
var this_2 = element_9.m25_1;
|
|
906
906
|
// Inline function 'kotlin.collections.mapTo' call
|
|
907
907
|
var destination_13 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
908
908
|
var tmp0_iterator_13 = this_2.g();
|
|
@@ -917,37 +917,41 @@
|
|
|
917
917
|
}
|
|
918
918
|
return new SwaggerObject('2.0', tmp, VOID, VOID, VOID, tmp_0, tmp_1, tmp_4, plus_0(tmp_9, destination_12));
|
|
919
919
|
};
|
|
920
|
-
protoOf(OpenApiV2Emitter).
|
|
921
|
-
return to(_this__u8e3s4.
|
|
920
|
+
protoOf(OpenApiV2Emitter).t24 = function (_this__u8e3s4) {
|
|
921
|
+
return to(_this__u8e3s4.j24_1.b1(), this.q24(_this__u8e3s4.k24_1));
|
|
922
922
|
};
|
|
923
|
-
protoOf(OpenApiV2Emitter).
|
|
924
|
-
// Inline function 'kotlin.let' call
|
|
923
|
+
protoOf(OpenApiV2Emitter).q24 = function (_this__u8e3s4) {
|
|
925
924
|
var tmp;
|
|
926
|
-
if (_this__u8e3s4 instanceof
|
|
927
|
-
tmp = new
|
|
925
|
+
if (_this__u8e3s4 instanceof Dict) {
|
|
926
|
+
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, Type_OBJECT_getInstance(), this.q24(_this__u8e3s4.b26_1));
|
|
928
927
|
} else {
|
|
929
|
-
if (_this__u8e3s4 instanceof
|
|
930
|
-
|
|
931
|
-
var tmp2_format = emitFormat(_this__u8e3s4, this);
|
|
932
|
-
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_type);
|
|
928
|
+
if (_this__u8e3s4 instanceof Iterable) {
|
|
929
|
+
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, Type_ARRAY_getInstance(), this.q24(_this__u8e3s4.y25_1));
|
|
933
930
|
} else {
|
|
934
|
-
if (_this__u8e3s4 instanceof
|
|
935
|
-
|
|
936
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
931
|
+
if (_this__u8e3s4 instanceof Custom) {
|
|
932
|
+
tmp = new ReferenceObject(_Ref___init__impl__7qfl46('#/definitions/' + _this__u8e3s4.z22_1));
|
|
937
933
|
} else {
|
|
938
|
-
if (_this__u8e3s4 instanceof
|
|
939
|
-
var
|
|
940
|
-
|
|
934
|
+
if (_this__u8e3s4 instanceof Primitive) {
|
|
935
|
+
var tmp1_type = emitType(_this__u8e3s4.h23_1, this);
|
|
936
|
+
var tmp2_format = emitFormat(_this__u8e3s4, this);
|
|
937
|
+
tmp = new SchemaObject(VOID, VOID, VOID, VOID, VOID, tmp2_format, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_type);
|
|
941
938
|
} else {
|
|
942
|
-
|
|
939
|
+
if (_this__u8e3s4 instanceof Any) {
|
|
940
|
+
var message = 'Cannot map Any';
|
|
941
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
942
|
+
} else {
|
|
943
|
+
if (_this__u8e3s4 instanceof Unit) {
|
|
944
|
+
var message_0 = 'Cannot map Unit';
|
|
945
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
946
|
+
} else {
|
|
947
|
+
noWhenBranchMatchedException();
|
|
948
|
+
}
|
|
949
|
+
}
|
|
943
950
|
}
|
|
944
951
|
}
|
|
945
952
|
}
|
|
946
953
|
}
|
|
947
|
-
|
|
948
|
-
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Emitter.emit.<anonymous>' call
|
|
949
|
-
var it = tmp;
|
|
950
|
-
return _this__u8e3s4.i24() ? 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;
|
|
954
|
+
return tmp;
|
|
951
955
|
};
|
|
952
956
|
var OpenApiV2Emitter_instance;
|
|
953
957
|
function OpenApiV2Emitter_getInstance() {
|
|
@@ -1073,13 +1077,14 @@
|
|
|
1073
1077
|
while (tmp0_iterator_7.h()) {
|
|
1074
1078
|
var item_1 = tmp0_iterator_7.i();
|
|
1075
1079
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1080
|
+
var isNullable = false;
|
|
1076
1081
|
var schema = element_4.o1i_1;
|
|
1077
1082
|
var tmp_1;
|
|
1078
1083
|
if (schema instanceof ReferenceObject) {
|
|
1079
|
-
tmp_1 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, schema);
|
|
1084
|
+
tmp_1 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, schema, isNullable);
|
|
1080
1085
|
} else {
|
|
1081
1086
|
if (schema instanceof SchemaObject) {
|
|
1082
|
-
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
1087
|
+
tmp_1 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, schema, Common_getInstance().c2a([name, 'RequestBody']), isNullable);
|
|
1083
1088
|
} else {
|
|
1084
1089
|
if (schema == null) {
|
|
1085
1090
|
var reason = 'Not yet implemented';
|
|
@@ -1089,29 +1094,27 @@
|
|
|
1089
1094
|
}
|
|
1090
1095
|
}
|
|
1091
1096
|
}
|
|
1092
|
-
var
|
|
1093
|
-
var tmp0_elvis_lhs_2 = element_4.n1i_1;
|
|
1094
|
-
var tmp$ret$25 = new Request(new Content(item_1, tmp_2, !(tmp0_elvis_lhs_2 == null ? false : tmp0_elvis_lhs_2)));
|
|
1097
|
+
var tmp$ret$25 = new Request(new Content(item_1, tmp_1));
|
|
1095
1098
|
destination_7.e(tmp$ret$25);
|
|
1096
1099
|
}
|
|
1097
1100
|
var list = destination_7;
|
|
1098
1101
|
addAll(destination_6, list);
|
|
1099
1102
|
}
|
|
1100
1103
|
// Inline function 'kotlin.contracts.contract' call
|
|
1101
|
-
var
|
|
1104
|
+
var tmp_2;
|
|
1102
1105
|
if (destination_6.l()) {
|
|
1103
1106
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1104
|
-
|
|
1107
|
+
tmp_2 = listOf(new Request(null));
|
|
1105
1108
|
} else {
|
|
1106
|
-
|
|
1109
|
+
tmp_2 = destination_6;
|
|
1107
1110
|
}
|
|
1108
|
-
var requests =
|
|
1111
|
+
var requests = tmp_2;
|
|
1109
1112
|
// Inline function 'kotlin.collections.distinctBy' call
|
|
1110
1113
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1111
1114
|
// Inline function 'kotlin.collections.mapValues' call
|
|
1112
1115
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1113
|
-
var
|
|
1114
|
-
var this_4 =
|
|
1116
|
+
var tmp0_elvis_lhs_2 = operation.i1l_1;
|
|
1117
|
+
var this_4 = tmp0_elvis_lhs_2 == null ? emptyMap() : tmp0_elvis_lhs_2;
|
|
1115
1118
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
1116
1119
|
var destination_8 = LinkedHashMap_init_$Create$(mapCapacity(this_4.j()));
|
|
1117
1120
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
@@ -1119,10 +1122,10 @@
|
|
|
1119
1122
|
while (tmp0_iterator_8.h()) {
|
|
1120
1123
|
var element_5 = tmp0_iterator_8.i();
|
|
1121
1124
|
// Inline function 'kotlin.collections.mapValuesTo.<anonymous>' call
|
|
1122
|
-
var
|
|
1125
|
+
var tmp_3 = element_5.a1();
|
|
1123
1126
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1124
1127
|
var tmp$ret$35 = resolve_1(_this__u8e3s4, OpenApiV2Parser_instance, element_5.b1());
|
|
1125
|
-
destination_8.m2(
|
|
1128
|
+
destination_8.m2(tmp_3, tmp$ret$35);
|
|
1126
1129
|
}
|
|
1127
1130
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1128
1131
|
var destination_9 = ArrayList_init_$Create$();
|
|
@@ -1138,33 +1141,33 @@
|
|
|
1138
1141
|
// Inline function 'kotlin.collections.map' call
|
|
1139
1142
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
1140
1143
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1141
|
-
var
|
|
1142
|
-
var
|
|
1144
|
+
var tmp0_elvis_lhs_3 = _this__u8e3s4.s1g_1;
|
|
1145
|
+
var tmp_4 = tmp0_elvis_lhs_3 == null ? emptyList() : tmp0_elvis_lhs_3;
|
|
1143
1146
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1144
|
-
var
|
|
1145
|
-
var tmp$ret$43 =
|
|
1146
|
-
var this_5 = distinct(plus(
|
|
1147
|
+
var tmp0_elvis_lhs_4 = operation.g1l_1;
|
|
1148
|
+
var tmp$ret$43 = tmp0_elvis_lhs_4 == null ? emptyList() : tmp0_elvis_lhs_4;
|
|
1149
|
+
var this_5 = distinct(plus(tmp_4, tmp$ret$43));
|
|
1147
1150
|
// Inline function 'kotlin.contracts.contract' call
|
|
1148
|
-
var
|
|
1151
|
+
var tmp_5;
|
|
1149
1152
|
if (this_5.l()) {
|
|
1150
1153
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1151
|
-
|
|
1154
|
+
tmp_5 = listOf('application/json');
|
|
1152
1155
|
} else {
|
|
1153
|
-
|
|
1156
|
+
tmp_5 = this_5;
|
|
1154
1157
|
}
|
|
1155
|
-
var this_6 =
|
|
1158
|
+
var this_6 = tmp_5;
|
|
1156
1159
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1157
1160
|
var destination_10 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_6, 10));
|
|
1158
1161
|
var tmp0_iterator_10 = this_6.g();
|
|
1159
1162
|
while (tmp0_iterator_10.h()) {
|
|
1160
1163
|
var item_2 = tmp0_iterator_10.i();
|
|
1161
1164
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1162
|
-
var
|
|
1165
|
+
var tmp_6 = _StatusCode___get_value__impl__we50mu(status);
|
|
1163
1166
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1164
1167
|
var tmp0_safe_receiver = res.n1j_1;
|
|
1165
|
-
var
|
|
1168
|
+
var tmp_7;
|
|
1166
1169
|
if (tmp0_safe_receiver == null) {
|
|
1167
|
-
|
|
1170
|
+
tmp_7 = null;
|
|
1168
1171
|
} else {
|
|
1169
1172
|
// Inline function 'kotlin.collections.map' call
|
|
1170
1173
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1181,31 +1184,31 @@
|
|
|
1181
1184
|
var tmp$ret$49 = toField(_this__u8e3s4, OpenApiV2Parser_instance, resolve_2(header, OpenApiV2Parser_instance), identifier);
|
|
1182
1185
|
destination_11.e(tmp$ret$49);
|
|
1183
1186
|
}
|
|
1184
|
-
|
|
1187
|
+
tmp_7 = destination_11;
|
|
1185
1188
|
}
|
|
1186
|
-
var
|
|
1187
|
-
var
|
|
1189
|
+
var tmp0_elvis_lhs_5 = tmp_7;
|
|
1190
|
+
var tmp_8 = tmp0_elvis_lhs_5 == null ? emptyList() : tmp0_elvis_lhs_5;
|
|
1188
1191
|
var tmp1_safe_receiver = res.m1j_1;
|
|
1189
|
-
var
|
|
1192
|
+
var tmp_9;
|
|
1190
1193
|
if (tmp1_safe_receiver == null) {
|
|
1191
|
-
|
|
1194
|
+
tmp_9 = null;
|
|
1192
1195
|
} else {
|
|
1193
1196
|
// Inline function 'kotlin.let' call
|
|
1194
1197
|
// Inline function 'kotlin.contracts.contract' call
|
|
1195
1198
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
1196
|
-
var
|
|
1199
|
+
var tmp_10;
|
|
1197
1200
|
if (tmp1_safe_receiver instanceof ReferenceObject) {
|
|
1198
|
-
|
|
1201
|
+
tmp_10 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, false);
|
|
1199
1202
|
} else {
|
|
1200
1203
|
if (tmp1_safe_receiver instanceof SchemaObject) {
|
|
1201
|
-
|
|
1204
|
+
tmp_10 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver, Common_getInstance().c2a([name, _StatusCode___get_value__impl__we50mu(status), 'ResponseBody']), false);
|
|
1202
1205
|
} else {
|
|
1203
1206
|
noWhenBranchMatchedException();
|
|
1204
1207
|
}
|
|
1205
1208
|
}
|
|
1206
|
-
|
|
1209
|
+
tmp_9 = new Content(item_2, tmp_10);
|
|
1207
1210
|
}
|
|
1208
|
-
var tmp$ret$55 = new Response(
|
|
1211
|
+
var tmp$ret$55 = new Response(tmp_6, tmp_8, tmp_9);
|
|
1209
1212
|
destination_10.e(tmp$ret$55);
|
|
1210
1213
|
}
|
|
1211
1214
|
var list_0 = destination_10;
|
|
@@ -1217,7 +1220,7 @@
|
|
|
1217
1220
|
while (tmp0_iterator_12.h()) {
|
|
1218
1221
|
var e = tmp0_iterator_12.i();
|
|
1219
1222
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseEndpoints.<anonymous>.<anonymous>.<anonymous>' call
|
|
1220
|
-
var key = to(e.
|
|
1223
|
+
var key = to(e.x23_1, e.z23_1);
|
|
1221
1224
|
if (set.e(key)) {
|
|
1222
1225
|
list_1.e(e);
|
|
1223
1226
|
}
|
|
@@ -1278,7 +1281,7 @@
|
|
|
1278
1281
|
while (tmp0_iterator_1.h()) {
|
|
1279
1282
|
var element_0 = tmp0_iterator_1.i();
|
|
1280
1283
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseDefinitions.<anonymous>' call
|
|
1281
|
-
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_getInstance().
|
|
1284
|
+
var list = flatten(_this__u8e3s4, OpenApiV2Parser_instance, element_0.b1(), Common_getInstance().c2a([element_0.a1()]));
|
|
1282
1285
|
addAll(destination_0, list);
|
|
1283
1286
|
}
|
|
1284
1287
|
return destination_0;
|
|
@@ -1559,7 +1562,7 @@
|
|
|
1559
1562
|
while (tmp0_iterator_0.h()) {
|
|
1560
1563
|
var e = tmp0_iterator_0.i();
|
|
1561
1564
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.flatten.<anonymous>' call
|
|
1562
|
-
var key = e.
|
|
1565
|
+
var key = e.j24_1;
|
|
1563
1566
|
if (set.e(key)) {
|
|
1564
1567
|
list_0.e(e);
|
|
1565
1568
|
}
|
|
@@ -1598,7 +1601,7 @@
|
|
|
1598
1601
|
tmp_9 = emptyList();
|
|
1599
1602
|
} else {
|
|
1600
1603
|
if (value instanceof SchemaObject) {
|
|
1601
|
-
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().
|
|
1604
|
+
tmp_9 = flatten(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().c2a([name, key_0]));
|
|
1602
1605
|
} else {
|
|
1603
1606
|
noWhenBranchMatchedException();
|
|
1604
1607
|
}
|
|
@@ -1657,7 +1660,7 @@
|
|
|
1657
1660
|
var key_1 = element_2.a1();
|
|
1658
1661
|
// Inline function 'kotlin.collections.component2' call
|
|
1659
1662
|
var value_0 = element_2.b1();
|
|
1660
|
-
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_getInstance().
|
|
1663
|
+
var list_3 = flatten_0(_this__u8e3s4, OpenApiV2Parser_instance, value_0, Common_getInstance().c2a([name, key_1]));
|
|
1661
1664
|
addAll(destination_3, list_3);
|
|
1662
1665
|
}
|
|
1663
1666
|
|
|
@@ -1672,7 +1675,7 @@
|
|
|
1672
1675
|
tmp_11 = emptyList();
|
|
1673
1676
|
} else {
|
|
1674
1677
|
if (it_0 instanceof SchemaObject) {
|
|
1675
|
-
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().
|
|
1678
|
+
tmp_11 = flatten(_this__u8e3s4, $this, it_0, Common_getInstance().c2a([name, 'Array']));
|
|
1676
1679
|
} else {
|
|
1677
1680
|
if (it_0 == null) {
|
|
1678
1681
|
tmp_11 = emptyList();
|
|
@@ -1705,7 +1708,7 @@
|
|
|
1705
1708
|
}
|
|
1706
1709
|
return tmp;
|
|
1707
1710
|
}
|
|
1708
|
-
function toReference(_this__u8e3s4, $this, reference) {
|
|
1711
|
+
function toReference(_this__u8e3s4, $this, reference, isNullable) {
|
|
1709
1712
|
// Inline function 'kotlin.let' call
|
|
1710
1713
|
// Inline function 'kotlin.contracts.contract' call
|
|
1711
1714
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toReference.<anonymous>' call
|
|
@@ -1716,13 +1719,13 @@
|
|
|
1716
1719
|
var additionalProperties = ensureNotNull(schema.i1n_1);
|
|
1717
1720
|
var tmp_0;
|
|
1718
1721
|
if (additionalProperties instanceof BooleanObject) {
|
|
1719
|
-
tmp_0 = new Any(false,
|
|
1722
|
+
tmp_0 = new Dict(new Any(false), isNullable);
|
|
1720
1723
|
} else {
|
|
1721
1724
|
if (additionalProperties instanceof ReferenceObject) {
|
|
1722
|
-
tmp_0 =
|
|
1725
|
+
tmp_0 = toDict(toReference(_this__u8e3s4, OpenApiV2Parser_instance, additionalProperties, false), isNullable);
|
|
1723
1726
|
} else {
|
|
1724
1727
|
if (additionalProperties instanceof SchemaObject) {
|
|
1725
|
-
tmp_0 =
|
|
1728
|
+
tmp_0 = toDict(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, additionalProperties, getReference(reference, OpenApiV2Parser_instance), false), isNullable);
|
|
1726
1729
|
} else {
|
|
1727
1730
|
noWhenBranchMatchedException();
|
|
1728
1731
|
}
|
|
@@ -1730,9 +1733,9 @@
|
|
|
1730
1733
|
}
|
|
1731
1734
|
tmp = tmp_0;
|
|
1732
1735
|
} else if (!(schema.d1n_1 == null)) {
|
|
1733
|
-
tmp = new Custom(Common_getInstance().
|
|
1736
|
+
tmp = new Custom(Common_getInstance().c2a([getReference(reference, OpenApiV2Parser_instance)]), isNullable);
|
|
1734
1737
|
} else if (isPrimitive(schema.e1n_1)) {
|
|
1735
|
-
tmp = new Primitive(toPrimitive(ensureNotNull(schema.e1n_1), OpenApiV2Parser_instance, schema.l1m_1),
|
|
1738
|
+
tmp = new Primitive(toPrimitive(ensureNotNull(schema.e1n_1), OpenApiV2Parser_instance, schema.l1m_1), isNullable);
|
|
1736
1739
|
} else {
|
|
1737
1740
|
var tmp0_subject = schema.e1n_1;
|
|
1738
1741
|
var tmp_1;
|
|
@@ -1740,10 +1743,10 @@
|
|
|
1740
1743
|
var items = schema.f1n_1;
|
|
1741
1744
|
var tmp_2;
|
|
1742
1745
|
if (items instanceof ReferenceObject) {
|
|
1743
|
-
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenApiV2Parser_instance, items));
|
|
1746
|
+
tmp_2 = toIterable(toReference(_this__u8e3s4, OpenApiV2Parser_instance, items, false), isNullable);
|
|
1744
1747
|
} else {
|
|
1745
1748
|
if (items instanceof SchemaObject) {
|
|
1746
|
-
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_getInstance().
|
|
1749
|
+
tmp_2 = toIterable(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, items, Common_getInstance().c2a([getReference(reference, OpenApiV2Parser_instance), 'Array']), isNullable), isNullable);
|
|
1747
1750
|
} else {
|
|
1748
1751
|
if (items == null) {
|
|
1749
1752
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi(reference.n1n_1);
|
|
@@ -1757,10 +1760,10 @@
|
|
|
1757
1760
|
} else {
|
|
1758
1761
|
var tmp_3;
|
|
1759
1762
|
if (refOrSchema instanceof SchemaObject) {
|
|
1760
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1763
|
+
tmp_3 = new Custom(Common_getInstance().c2a([getReference(reference, OpenApiV2Parser_instance)]), isNullable);
|
|
1761
1764
|
} else {
|
|
1762
1765
|
if (refOrSchema instanceof ReferenceObject) {
|
|
1763
|
-
tmp_3 = new Custom(Common_getInstance().
|
|
1766
|
+
tmp_3 = new Custom(Common_getInstance().c2a([getReference(refOrSchema, OpenApiV2Parser_instance)]), isNullable);
|
|
1764
1767
|
} else {
|
|
1765
1768
|
noWhenBranchMatchedException();
|
|
1766
1769
|
}
|
|
@@ -1771,16 +1774,16 @@
|
|
|
1771
1774
|
}
|
|
1772
1775
|
return tmp;
|
|
1773
1776
|
}
|
|
1774
|
-
function toReference_0(_this__u8e3s4, $this, schema, name) {
|
|
1777
|
+
function toReference_0(_this__u8e3s4, $this, schema, name, isNullable) {
|
|
1775
1778
|
var tmp;
|
|
1776
1779
|
if (!(schema.i1n_1 == null)) {
|
|
1777
1780
|
var additionalProperties = ensureNotNull(schema.i1n_1);
|
|
1778
1781
|
var tmp_0;
|
|
1779
1782
|
if (additionalProperties instanceof BooleanObject) {
|
|
1780
|
-
tmp_0 = new Any(false,
|
|
1783
|
+
tmp_0 = new Dict(new Any(false), isNullable);
|
|
1781
1784
|
} else {
|
|
1782
1785
|
if (additionalProperties instanceof ReferenceObject) {
|
|
1783
|
-
tmp_0 =
|
|
1786
|
+
tmp_0 = toDict(toReference(_this__u8e3s4, $this, additionalProperties, false), isNullable);
|
|
1784
1787
|
} else {
|
|
1785
1788
|
if (additionalProperties instanceof SchemaObject) {
|
|
1786
1789
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -1800,10 +1803,10 @@
|
|
|
1800
1803
|
// Inline function 'kotlin.let' call
|
|
1801
1804
|
// Inline function 'kotlin.contracts.contract' call
|
|
1802
1805
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toReference.<anonymous>' call
|
|
1803
|
-
tmp_2 =
|
|
1806
|
+
tmp_2 = toDict(toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp0_safe_receiver, name, false), isNullable);
|
|
1804
1807
|
}
|
|
1805
1808
|
var tmp1_elvis_lhs = tmp_2;
|
|
1806
|
-
tmp_0 = tmp1_elvis_lhs == null ? new Any(false,
|
|
1809
|
+
tmp_0 = tmp1_elvis_lhs == null ? new Dict(new Any(false), isNullable) : tmp1_elvis_lhs;
|
|
1807
1810
|
} else {
|
|
1808
1811
|
noWhenBranchMatchedException();
|
|
1809
1812
|
}
|
|
@@ -1811,7 +1814,7 @@
|
|
|
1811
1814
|
}
|
|
1812
1815
|
tmp = tmp_0;
|
|
1813
1816
|
} else if (!(schema.d1n_1 == null)) {
|
|
1814
|
-
tmp = new Custom(name, false,
|
|
1817
|
+
tmp = !(schema.i1n_1 == null) ? new Dict(new Custom(name, false), isNullable) : new Custom(name, isNullable);
|
|
1815
1818
|
} else {
|
|
1816
1819
|
var type = schema.e1n_1;
|
|
1817
1820
|
var tmp_3;
|
|
@@ -1820,16 +1823,19 @@
|
|
|
1820
1823
|
case 2:
|
|
1821
1824
|
case 1:
|
|
1822
1825
|
case 3:
|
|
1823
|
-
tmp_3 = new Primitive(toPrimitive(type, $this, schema.l1m_1), false,
|
|
1826
|
+
tmp_3 = !(schema.i1n_1 == null) ? new Dict(new Primitive(toPrimitive(type, $this, schema.l1m_1), false), isNullable) : new Primitive(toPrimitive(type, $this, schema.l1m_1), isNullable);
|
|
1824
1827
|
break;
|
|
1825
1828
|
case -1:
|
|
1826
1829
|
case 5:
|
|
1827
1830
|
var tmp_4;
|
|
1828
1831
|
var tmp_5 = schema.i1n_1;
|
|
1829
1832
|
if (tmp_5 instanceof BooleanObject) {
|
|
1830
|
-
tmp_4 =
|
|
1833
|
+
tmp_4 = !(schema.i1n_1 == null) ? new Dict(new Any(isNullable), false) : new Any(isNullable);
|
|
1831
1834
|
} else {
|
|
1832
|
-
|
|
1835
|
+
if (!(schema.i1n_1 == null)) {
|
|
1836
|
+
new Dict(new Custom(name, isNullable), false);
|
|
1837
|
+
}
|
|
1838
|
+
tmp_4 = new Custom(name, isNullable);
|
|
1833
1839
|
}
|
|
1834
1840
|
|
|
1835
1841
|
tmp_3 = tmp_4;
|
|
@@ -1838,10 +1844,10 @@
|
|
|
1838
1844
|
var items = schema.f1n_1;
|
|
1839
1845
|
var tmp_6;
|
|
1840
1846
|
if (items instanceof ReferenceObject) {
|
|
1841
|
-
tmp_6 = toIterable(toReference(_this__u8e3s4, $this, items));
|
|
1847
|
+
tmp_6 = toIterable(toReference(_this__u8e3s4, $this, items, false), isNullable);
|
|
1842
1848
|
} else {
|
|
1843
1849
|
if (items instanceof SchemaObject) {
|
|
1844
|
-
tmp_6 = toIterable(toReference_0(_this__u8e3s4, $this, items, name));
|
|
1850
|
+
tmp_6 = toIterable(toReference_0(_this__u8e3s4, $this, items, name, false), isNullable);
|
|
1845
1851
|
} else {
|
|
1846
1852
|
if (items == null) {
|
|
1847
1853
|
var message = 'When schema is of type array items cannot be null for name: ' + name;
|
|
@@ -1908,7 +1914,7 @@
|
|
|
1908
1914
|
var tmp$ret$0 = tmp_0;
|
|
1909
1915
|
result.m2(element, tmp$ret$0);
|
|
1910
1916
|
}
|
|
1911
|
-
return tmp.
|
|
1917
|
+
return tmp.d2a(result);
|
|
1912
1918
|
}
|
|
1913
1919
|
function getReference(_this__u8e3s4, $this) {
|
|
1914
1920
|
return split(_Ref___get_value__impl__kxavfe(_this__u8e3s4.n1n_1), ['/']).k(2);
|
|
@@ -1956,7 +1962,7 @@
|
|
|
1956
1962
|
// Inline function 'kotlin.let' call
|
|
1957
1963
|
// Inline function 'kotlin.contracts.contract' call
|
|
1958
1964
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
1959
|
-
tmp_2 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp2_safe_receiver, identifier);
|
|
1965
|
+
tmp_2 = toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, tmp2_safe_receiver, identifier, false);
|
|
1960
1966
|
}
|
|
1961
1967
|
var tmp3_elvis_lhs = tmp_2;
|
|
1962
1968
|
var tmp_3;
|
|
@@ -1968,9 +1974,9 @@
|
|
|
1968
1974
|
}
|
|
1969
1975
|
tmp_0 = tmp_3;
|
|
1970
1976
|
} else {
|
|
1971
|
-
tmp_0 = new Primitive(mapType(header.g1o_1, $this, header.h1o_1), false
|
|
1977
|
+
tmp_0 = new Primitive(mapType(header.g1o_1, $this, header.h1o_1), false);
|
|
1972
1978
|
}
|
|
1973
|
-
return new Field(tmp, tmp_0
|
|
1979
|
+
return new Field(tmp, tmp_0);
|
|
1974
1980
|
}
|
|
1975
1981
|
function toField_0(_this__u8e3s4, $this, schema, name) {
|
|
1976
1982
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -1988,20 +1994,15 @@
|
|
|
1988
1994
|
var key = item.a1();
|
|
1989
1995
|
// Inline function 'kotlin.collections.component2' call
|
|
1990
1996
|
var value = item.b1();
|
|
1997
|
+
var tmp0_safe_receiver = schema.c1n_1;
|
|
1998
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1(key);
|
|
1999
|
+
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
1991
2000
|
var tmp;
|
|
1992
2001
|
if (value instanceof SchemaObject) {
|
|
1993
|
-
|
|
1994
|
-
var tmp_1 = !(value.d1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().o2a([name, key])) : equals(value.e1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().o2a([name, key, 'Array'])) : toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().o2a([name, key]));
|
|
1995
|
-
var tmp1_safe_receiver = schema.c1n_1;
|
|
1996
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
|
|
1997
|
-
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
2002
|
+
tmp = new Field(new FieldIdentifier(key), !(value.d1n_1 == null) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().c2a([name, key]), isNullable) : equals(value.e1n_1, Type_ARRAY_getInstance()) ? toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().c2a([name, key, 'Array']), isNullable) : toReference_0(_this__u8e3s4, OpenApiV2Parser_instance, value, Common_getInstance().c2a([name, key]), isNullable));
|
|
1998
2003
|
} else {
|
|
1999
2004
|
if (value instanceof ReferenceObject) {
|
|
2000
|
-
|
|
2001
|
-
var tmp_3 = toReference(_this__u8e3s4, OpenApiV2Parser_instance, value);
|
|
2002
|
-
var tmp3_safe_receiver = schema.c1n_1;
|
|
2003
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.p1(key);
|
|
2004
|
-
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
2005
|
+
tmp = new Field(new FieldIdentifier(key), toReference(_this__u8e3s4, OpenApiV2Parser_instance, value, isNullable));
|
|
2005
2006
|
} else {
|
|
2006
2007
|
noWhenBranchMatchedException();
|
|
2007
2008
|
}
|
|
@@ -2017,9 +2018,11 @@
|
|
|
2017
2018
|
// Inline function 'kotlin.contracts.contract' call
|
|
2018
2019
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
2019
2020
|
var it = resolve_3(_this__u8e3s4, $this, parameter);
|
|
2021
|
+
var tmp0_elvis_lhs = parameter.n1i_1;
|
|
2022
|
+
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
2020
2023
|
var tmp;
|
|
2021
2024
|
if (!(parameter.f1j_1 == null)) {
|
|
2022
|
-
tmp = new Custom(Common_getInstance().
|
|
2025
|
+
tmp = new Custom(Common_getInstance().c2a([name, 'Parameter', it.k1i_1]), isNullable);
|
|
2023
2026
|
} else {
|
|
2024
2027
|
var type = it.p1i_1;
|
|
2025
2028
|
var tmp_0;
|
|
@@ -2035,50 +2038,50 @@
|
|
|
2035
2038
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
|
|
2036
2039
|
|
|
2037
2040
|
var primitive = toPrimitive(type, OpenApiV2Parser_instance, it.r1i_1);
|
|
2038
|
-
tmp_0 = new Primitive(primitive,
|
|
2041
|
+
tmp_0 = new Primitive(primitive, isNullable);
|
|
2039
2042
|
break;
|
|
2040
2043
|
case 4:
|
|
2041
|
-
var
|
|
2044
|
+
var tmp1_safe_receiver = it.q1i_1;
|
|
2042
2045
|
var tmp_1;
|
|
2043
|
-
if (
|
|
2046
|
+
if (tmp1_safe_receiver == null) {
|
|
2044
2047
|
tmp_1 = null;
|
|
2045
2048
|
} else {
|
|
2046
2049
|
// Inline function 'kotlin.let' call
|
|
2047
2050
|
// Inline function 'kotlin.contracts.contract' call
|
|
2048
2051
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
|
|
2049
|
-
tmp_1 = resolve(_this__u8e3s4, OpenApiV2Parser_instance,
|
|
2052
|
+
tmp_1 = resolve(_this__u8e3s4, OpenApiV2Parser_instance, tmp1_safe_receiver);
|
|
2050
2053
|
}
|
|
2051
2054
|
|
|
2052
|
-
var
|
|
2055
|
+
var tmp2_safe_receiver = tmp_1;
|
|
2053
2056
|
var tmp_2;
|
|
2054
|
-
if (
|
|
2057
|
+
if (tmp2_safe_receiver == null) {
|
|
2055
2058
|
tmp_2 = null;
|
|
2056
2059
|
} else {
|
|
2057
2060
|
// Inline function 'kotlin.let' call
|
|
2058
2061
|
// Inline function 'kotlin.contracts.contract' call
|
|
2059
2062
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
|
|
2060
|
-
var
|
|
2061
|
-
tmp_2 =
|
|
2063
|
+
var tmp0_safe_receiver = tmp2_safe_receiver.e1n_1;
|
|
2064
|
+
tmp_2 = tmp0_safe_receiver == null ? null : toPrimitive(tmp0_safe_receiver, OpenApiV2Parser_instance, tmp2_safe_receiver.l1m_1);
|
|
2062
2065
|
}
|
|
2063
2066
|
|
|
2064
|
-
var
|
|
2067
|
+
var tmp3_safe_receiver = tmp_2;
|
|
2065
2068
|
var tmp_3;
|
|
2066
|
-
if (
|
|
2069
|
+
if (tmp3_safe_receiver == null) {
|
|
2067
2070
|
tmp_3 = null;
|
|
2068
2071
|
} else {
|
|
2069
2072
|
// Inline function 'kotlin.let' call
|
|
2070
2073
|
// Inline function 'kotlin.contracts.contract' call
|
|
2071
2074
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>.<anonymous>' call
|
|
2072
|
-
tmp_3 = new Primitive(
|
|
2075
|
+
tmp_3 = new Primitive(tmp3_safe_receiver, isNullable);
|
|
2073
2076
|
}
|
|
2074
2077
|
|
|
2075
|
-
var
|
|
2078
|
+
var tmp4_elvis_lhs = tmp_3;
|
|
2076
2079
|
var tmp_4;
|
|
2077
|
-
if (
|
|
2080
|
+
if (tmp4_elvis_lhs == null) {
|
|
2078
2081
|
var reason = 'Not yet implemented';
|
|
2079
2082
|
throw new NotImplementedError('An operation is not implemented: ' + reason);
|
|
2080
2083
|
} else {
|
|
2081
|
-
tmp_4 =
|
|
2084
|
+
tmp_4 = tmp4_elvis_lhs;
|
|
2082
2085
|
}
|
|
2083
2086
|
|
|
2084
2087
|
tmp_0 = tmp_4;
|
|
@@ -2101,9 +2104,7 @@
|
|
|
2101
2104
|
// Inline function 'kotlin.contracts.contract' call
|
|
2102
2105
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toField.<anonymous>' call
|
|
2103
2106
|
var it_0 = tmp;
|
|
2104
|
-
|
|
2105
|
-
var tmp0_elvis_lhs = parameter.n1i_1;
|
|
2106
|
-
return new Field(tmp_5, it_0, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
2107
|
+
return new Field(new FieldIdentifier(parameter.k1i_1), it_0);
|
|
2107
2108
|
}
|
|
2108
2109
|
function toSegments(_this__u8e3s4, $this, parameters) {
|
|
2109
2110
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -2199,7 +2200,7 @@
|
|
|
2199
2200
|
// Inline function 'kotlin.let' call
|
|
2200
2201
|
// Inline function 'kotlin.contracts.contract' call
|
|
2201
2202
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.toName.<anonymous>' call
|
|
2202
|
-
tmp = Common_getInstance().
|
|
2203
|
+
tmp = Common_getInstance().c2a([tmp0_safe_receiver]);
|
|
2203
2204
|
}
|
|
2204
2205
|
return tmp;
|
|
2205
2206
|
}
|
|
@@ -2221,21 +2222,21 @@
|
|
|
2221
2222
|
return joinToString(tmp, '', VOID, VOID, VOID, VOID, OpenApiV2Parser$toName$lambda);
|
|
2222
2223
|
}
|
|
2223
2224
|
function FlattenRequest(path, pathItem, method, operation, type) {
|
|
2224
|
-
this.
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2227
|
-
this.
|
|
2228
|
-
this.
|
|
2225
|
+
this.i2a_1 = path;
|
|
2226
|
+
this.j2a_1 = pathItem;
|
|
2227
|
+
this.k2a_1 = method;
|
|
2228
|
+
this.l2a_1 = operation;
|
|
2229
|
+
this.m2a_1 = type;
|
|
2229
2230
|
}
|
|
2230
2231
|
protoOf(FlattenRequest).toString = function () {
|
|
2231
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.
|
|
2232
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw(this.i2a_1) + ', pathItem=' + this.j2a_1.toString() + ', method=' + this.k2a_1.toString() + ', operation=' + this.l2a_1.toString() + ', type=' + this.m2a_1 + ')';
|
|
2232
2233
|
};
|
|
2233
2234
|
protoOf(FlattenRequest).hashCode = function () {
|
|
2234
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2235
|
-
result = imul(result, 31) + this.
|
|
2236
|
-
result = imul(result, 31) + this.
|
|
2237
|
-
result = imul(result, 31) + this.
|
|
2238
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2235
|
+
var result = Path__hashCode_impl_go73kd(this.i2a_1);
|
|
2236
|
+
result = imul(result, 31) + this.j2a_1.hashCode() | 0;
|
|
2237
|
+
result = imul(result, 31) + this.k2a_1.hashCode() | 0;
|
|
2238
|
+
result = imul(result, 31) + this.l2a_1.hashCode() | 0;
|
|
2239
|
+
result = imul(result, 31) + getStringHashCode(this.m2a_1) | 0;
|
|
2239
2240
|
return result;
|
|
2240
2241
|
};
|
|
2241
2242
|
protoOf(FlattenRequest).equals = function (other) {
|
|
@@ -2244,15 +2245,15 @@
|
|
|
2244
2245
|
if (!(other instanceof FlattenRequest))
|
|
2245
2246
|
return false;
|
|
2246
2247
|
var tmp0_other_with_cast = other instanceof FlattenRequest ? other : THROW_CCE();
|
|
2247
|
-
if (!(this.
|
|
2248
|
+
if (!(this.i2a_1 === tmp0_other_with_cast.i2a_1))
|
|
2248
2249
|
return false;
|
|
2249
|
-
if (!this.
|
|
2250
|
+
if (!this.j2a_1.equals(tmp0_other_with_cast.j2a_1))
|
|
2250
2251
|
return false;
|
|
2251
|
-
if (!this.
|
|
2252
|
+
if (!this.k2a_1.equals(tmp0_other_with_cast.k2a_1))
|
|
2252
2253
|
return false;
|
|
2253
|
-
if (!this.
|
|
2254
|
+
if (!this.l2a_1.equals(tmp0_other_with_cast.l2a_1))
|
|
2254
2255
|
return false;
|
|
2255
|
-
if (!(this.
|
|
2256
|
+
if (!(this.m2a_1 === tmp0_other_with_cast.m2a_1))
|
|
2256
2257
|
return false;
|
|
2257
2258
|
return true;
|
|
2258
2259
|
};
|
|
@@ -2314,25 +2315,25 @@
|
|
|
2314
2315
|
return destination_2;
|
|
2315
2316
|
}
|
|
2316
2317
|
function FlattenResponse(path, pathItem, method, operation, statusCode, response, type) {
|
|
2317
|
-
this.
|
|
2318
|
-
this.
|
|
2319
|
-
this.
|
|
2320
|
-
this.
|
|
2321
|
-
this.
|
|
2322
|
-
this.
|
|
2323
|
-
this.
|
|
2318
|
+
this.n2a_1 = path;
|
|
2319
|
+
this.o2a_1 = pathItem;
|
|
2320
|
+
this.p2a_1 = method;
|
|
2321
|
+
this.q2a_1 = operation;
|
|
2322
|
+
this.r2a_1 = statusCode;
|
|
2323
|
+
this.s2a_1 = response;
|
|
2324
|
+
this.t2a_1 = type;
|
|
2324
2325
|
}
|
|
2325
2326
|
protoOf(FlattenResponse).toString = function () {
|
|
2326
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.
|
|
2327
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw(this.n2a_1) + ', pathItem=' + this.o2a_1.toString() + ', method=' + this.p2a_1.toString() + ', operation=' + this.q2a_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy(this.r2a_1) + ', response=' + toString(this.s2a_1) + ', type=' + this.t2a_1 + ')';
|
|
2327
2328
|
};
|
|
2328
2329
|
protoOf(FlattenResponse).hashCode = function () {
|
|
2329
|
-
var result = Path__hashCode_impl_go73kd(this.
|
|
2330
|
-
result = imul(result, 31) + this.
|
|
2331
|
-
result = imul(result, 31) + this.
|
|
2332
|
-
result = imul(result, 31) + this.
|
|
2333
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.
|
|
2334
|
-
result = imul(result, 31) + hashCode(this.
|
|
2335
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
2330
|
+
var result = Path__hashCode_impl_go73kd(this.n2a_1);
|
|
2331
|
+
result = imul(result, 31) + this.o2a_1.hashCode() | 0;
|
|
2332
|
+
result = imul(result, 31) + this.p2a_1.hashCode() | 0;
|
|
2333
|
+
result = imul(result, 31) + this.q2a_1.hashCode() | 0;
|
|
2334
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx(this.r2a_1) | 0;
|
|
2335
|
+
result = imul(result, 31) + hashCode(this.s2a_1) | 0;
|
|
2336
|
+
result = imul(result, 31) + getStringHashCode(this.t2a_1) | 0;
|
|
2336
2337
|
return result;
|
|
2337
2338
|
};
|
|
2338
2339
|
protoOf(FlattenResponse).equals = function (other) {
|
|
@@ -2341,19 +2342,19 @@
|
|
|
2341
2342
|
if (!(other instanceof FlattenResponse))
|
|
2342
2343
|
return false;
|
|
2343
2344
|
var tmp0_other_with_cast = other instanceof FlattenResponse ? other : THROW_CCE();
|
|
2344
|
-
if (!(this.
|
|
2345
|
+
if (!(this.n2a_1 === tmp0_other_with_cast.n2a_1))
|
|
2345
2346
|
return false;
|
|
2346
|
-
if (!this.
|
|
2347
|
+
if (!this.o2a_1.equals(tmp0_other_with_cast.o2a_1))
|
|
2347
2348
|
return false;
|
|
2348
|
-
if (!this.
|
|
2349
|
+
if (!this.p2a_1.equals(tmp0_other_with_cast.p2a_1))
|
|
2349
2350
|
return false;
|
|
2350
|
-
if (!this.
|
|
2351
|
+
if (!this.q2a_1.equals(tmp0_other_with_cast.q2a_1))
|
|
2351
2352
|
return false;
|
|
2352
|
-
if (!(this.
|
|
2353
|
+
if (!(this.r2a_1 === tmp0_other_with_cast.r2a_1))
|
|
2353
2354
|
return false;
|
|
2354
|
-
if (!equals(this.
|
|
2355
|
+
if (!equals(this.s2a_1, tmp0_other_with_cast.s2a_1))
|
|
2355
2356
|
return false;
|
|
2356
|
-
if (!(this.
|
|
2357
|
+
if (!(this.t2a_1 === tmp0_other_with_cast.t2a_1))
|
|
2357
2358
|
return false;
|
|
2358
2359
|
return true;
|
|
2359
2360
|
};
|
|
@@ -2441,9 +2442,9 @@
|
|
|
2441
2442
|
}
|
|
2442
2443
|
function OpenApiV2Parser$parseParameters$lambda($this_parseParameters) {
|
|
2443
2444
|
return function ($this$flatMapRequests) {
|
|
2444
|
-
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2445
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2446
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2445
|
+
var parameters = plus(resolveParameters_0($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.j2a_1), resolveParameters($this_parseParameters, OpenApiV2Parser_instance, $this$flatMapRequests.l2a_1));
|
|
2446
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.l2a_1, OpenApiV2Parser_instance);
|
|
2447
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.i2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.k2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2447
2448
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2448
2449
|
// Inline function 'kotlin.collections.filter' call
|
|
2449
2450
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -2470,7 +2471,7 @@
|
|
|
2470
2471
|
// Inline function 'kotlin.let' call
|
|
2471
2472
|
// Inline function 'kotlin.contracts.contract' call
|
|
2472
2473
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
2473
|
-
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
2474
|
+
tmp = flatten_0($this_parseParameters, OpenApiV2Parser_instance, tmp0_safe_receiver, Common_getInstance().c2a([name, 'Parameter', element_0.k1i_1]));
|
|
2474
2475
|
}
|
|
2475
2476
|
var tmp1_elvis_lhs = tmp;
|
|
2476
2477
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -2481,9 +2482,9 @@
|
|
|
2481
2482
|
}
|
|
2482
2483
|
function OpenApiV2Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
2483
2484
|
return function ($this$flatMapRequests) {
|
|
2484
|
-
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.
|
|
2485
|
-
var tmp0_elvis_lhs = toName($this$flatMapRequests.
|
|
2486
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.
|
|
2485
|
+
var parameters = plus(resolveParameters_0($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.j2a_1), resolveParameters($this_parseRequestBody, OpenApiV2Parser_instance, $this$flatMapRequests.l2a_1));
|
|
2486
|
+
var tmp0_elvis_lhs = toName($this$flatMapRequests.l2a_1, OpenApiV2Parser_instance);
|
|
2487
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapRequests.i2a_1, OpenApiV2Parser_instance) + $this$flatMapRequests.k2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2487
2488
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2488
2489
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2489
2490
|
var destination = ArrayList_init_$Create$();
|
|
@@ -2493,7 +2494,7 @@
|
|
|
2493
2494
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>' call
|
|
2494
2495
|
var tmp;
|
|
2495
2496
|
if (!(element.f1j_1 == null)) {
|
|
2496
|
-
var tmp_0 = new DefinitionIdentifier(Common_getInstance().
|
|
2497
|
+
var tmp_0 = new DefinitionIdentifier(Common_getInstance().c2a([name, 'Parameter', element.k1i_1]));
|
|
2497
2498
|
// Inline function 'kotlin.collections.map' call
|
|
2498
2499
|
var this_0 = ensureNotNull(element.f1j_1);
|
|
2499
2500
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2513,7 +2514,7 @@
|
|
|
2513
2514
|
addAll(destination, list);
|
|
2514
2515
|
}
|
|
2515
2516
|
var enums = destination;
|
|
2516
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
2517
|
+
var tmp1_safe_receiver = $this$flatMapRequests.l2a_1.h1l_1;
|
|
2517
2518
|
var tmp_1;
|
|
2518
2519
|
if (tmp1_safe_receiver == null) {
|
|
2519
2520
|
tmp_1 = null;
|
|
@@ -2568,7 +2569,7 @@
|
|
|
2568
2569
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
2569
2570
|
case -1:
|
|
2570
2571
|
case 5:
|
|
2571
|
-
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
2572
|
+
tmp_5 = flatten($this_parseRequestBody, OpenApiV2Parser_instance, schema, Common_getInstance().c2a([name, 'RequestBody']));
|
|
2572
2573
|
break;
|
|
2573
2574
|
case 4:
|
|
2574
2575
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2581,7 +2582,7 @@
|
|
|
2581
2582
|
// Inline function 'kotlin.let' call
|
|
2582
2583
|
// Inline function 'kotlin.contracts.contract' call
|
|
2583
2584
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
2584
|
-
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
2585
|
+
tmp_6 = flatten_0($this_parseRequestBody, OpenApiV2Parser_instance, tmp1_safe_receiver_0, Common_getInstance().c2a([name, 'RequestBody']));
|
|
2585
2586
|
}
|
|
2586
2587
|
|
|
2587
2588
|
var tmp0_elvis_lhs_0 = tmp_6;
|
|
@@ -2607,9 +2608,9 @@
|
|
|
2607
2608
|
}
|
|
2608
2609
|
function OpenApiV2Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
2609
2610
|
return function ($this$flatMapResponses) {
|
|
2610
|
-
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.
|
|
2611
|
-
var tmp0_elvis_lhs = toName($this$flatMapResponses.
|
|
2612
|
-
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.
|
|
2611
|
+
var schema = resolve_1($this_parseResponseBody, OpenApiV2Parser_instance, $this$flatMapResponses.s2a_1).m1j_1;
|
|
2612
|
+
var tmp0_elvis_lhs = toName($this$flatMapResponses.q2a_1, OpenApiV2Parser_instance);
|
|
2613
|
+
var name = tmp0_elvis_lhs == null ? toName_0($this$flatMapResponses.n2a_1, OpenApiV2Parser_instance) + $this$flatMapResponses.p2a_1.p2_1 : tmp0_elvis_lhs;
|
|
2613
2614
|
var tmp;
|
|
2614
2615
|
if (schema instanceof SchemaObject) {
|
|
2615
2616
|
var tmp2_subject = schema.e1n_1;
|
|
@@ -2617,7 +2618,7 @@
|
|
|
2617
2618
|
switch (tmp2_subject == null ? -1 : tmp2_subject.q2_1) {
|
|
2618
2619
|
case -1:
|
|
2619
2620
|
case 5:
|
|
2620
|
-
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_getInstance().
|
|
2621
|
+
tmp_0 = flatten($this_parseResponseBody, OpenApiV2Parser_instance, schema, Common_getInstance().c2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.r2a_1), 'ResponseBody']));
|
|
2621
2622
|
break;
|
|
2622
2623
|
case 4:
|
|
2623
2624
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -2630,7 +2631,7 @@
|
|
|
2630
2631
|
// Inline function 'kotlin.let' call
|
|
2631
2632
|
// Inline function 'kotlin.contracts.contract' call
|
|
2632
2633
|
// Inline function 'community.flock.wirespec.openapi.v2.OpenApiV2Parser.parseResponseBody.<anonymous>.<anonymous>' call
|
|
2633
|
-
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_getInstance().
|
|
2634
|
+
tmp_1 = flatten_0($this_parseResponseBody, OpenApiV2Parser_instance, tmp3_safe_receiver, Common_getInstance().c2a([name, _StatusCode___get_value__impl__we50mu($this$flatMapResponses.r2a_1), 'ResponseBody']));
|
|
2634
2635
|
}
|
|
2635
2636
|
|
|
2636
2637
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -2658,10 +2659,10 @@
|
|
|
2658
2659
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2659
2660
|
|
|
2660
2661
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
2661
|
-
tmp = tmp_0.
|
|
2662
|
+
tmp = tmp_0.c2a([tmp$ret$1]);
|
|
2662
2663
|
break;
|
|
2663
2664
|
case false:
|
|
2664
|
-
tmp = Common_getInstance().
|
|
2665
|
+
tmp = Common_getInstance().c2a([it]);
|
|
2665
2666
|
break;
|
|
2666
2667
|
default:
|
|
2667
2668
|
noWhenBranchMatchedException();
|
|
@@ -2671,14 +2672,14 @@
|
|
|
2671
2672
|
}
|
|
2672
2673
|
function OpenApiV2Parser() {
|
|
2673
2674
|
}
|
|
2674
|
-
protoOf(OpenApiV2Parser).
|
|
2675
|
-
return this.
|
|
2675
|
+
protoOf(OpenApiV2Parser).u2a = function (json, ignoreUnknown) {
|
|
2676
|
+
return this.v2a((new OpenAPI(Json(VOID, OpenApiV2Parser$parse$lambda(ignoreUnknown)))).i1g(json));
|
|
2676
2677
|
};
|
|
2677
|
-
protoOf(OpenApiV2Parser).
|
|
2678
|
+
protoOf(OpenApiV2Parser).w2a = function (json, ignoreUnknown, $super) {
|
|
2678
2679
|
ignoreUnknown = ignoreUnknown === VOID ? false : ignoreUnknown;
|
|
2679
|
-
return $super === VOID ? this.
|
|
2680
|
+
return $super === VOID ? this.u2a(json, ignoreUnknown) : $super.u2a.call(this, json, ignoreUnknown);
|
|
2680
2681
|
};
|
|
2681
|
-
protoOf(OpenApiV2Parser).
|
|
2682
|
+
protoOf(OpenApiV2Parser).v2a = function (_this__u8e3s4) {
|
|
2682
2683
|
// Inline function 'kotlin.collections.reduce' call
|
|
2683
2684
|
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();
|
|
2684
2685
|
if (!iterator.h())
|
|
@@ -2695,26 +2696,8 @@
|
|
|
2695
2696
|
function OpenApiV2Parser_getInstance() {
|
|
2696
2697
|
return OpenApiV2Parser_instance;
|
|
2697
2698
|
}
|
|
2698
|
-
function
|
|
2699
|
-
|
|
2700
|
-
if (_this__u8e3s4 instanceof Custom) {
|
|
2701
|
-
tmp = _this__u8e3s4.s29(VOID, VOID, true);
|
|
2702
|
-
} else {
|
|
2703
|
-
if (_this__u8e3s4 instanceof Any) {
|
|
2704
|
-
tmp = _this__u8e3s4.m29(VOID, true);
|
|
2705
|
-
} else {
|
|
2706
|
-
if (_this__u8e3s4 instanceof Primitive) {
|
|
2707
|
-
tmp = _this__u8e3s4.u29(VOID, VOID, true);
|
|
2708
|
-
} else {
|
|
2709
|
-
if (_this__u8e3s4 instanceof Unit) {
|
|
2710
|
-
tmp = _this__u8e3s4.q29(VOID, true);
|
|
2711
|
-
} else {
|
|
2712
|
-
noWhenBranchMatchedException();
|
|
2713
|
-
}
|
|
2714
|
-
}
|
|
2715
|
-
}
|
|
2716
|
-
}
|
|
2717
|
-
return tmp;
|
|
2699
|
+
function toDict(_this__u8e3s4, isNullable) {
|
|
2700
|
+
return new Dict(_this__u8e3s4, isNullable);
|
|
2718
2701
|
}
|
|
2719
2702
|
function isPrimitive(_this__u8e3s4) {
|
|
2720
2703
|
var tmp;
|
|
@@ -2749,26 +2732,8 @@
|
|
|
2749
2732
|
}
|
|
2750
2733
|
return tmp;
|
|
2751
2734
|
}
|
|
2752
|
-
function toIterable(_this__u8e3s4) {
|
|
2753
|
-
|
|
2754
|
-
if (_this__u8e3s4 instanceof Custom) {
|
|
2755
|
-
tmp = _this__u8e3s4.s29(VOID, true);
|
|
2756
|
-
} else {
|
|
2757
|
-
if (_this__u8e3s4 instanceof Any) {
|
|
2758
|
-
tmp = _this__u8e3s4.m29(true);
|
|
2759
|
-
} else {
|
|
2760
|
-
if (_this__u8e3s4 instanceof Primitive) {
|
|
2761
|
-
tmp = _this__u8e3s4.u29(VOID, true);
|
|
2762
|
-
} else {
|
|
2763
|
-
if (_this__u8e3s4 instanceof Unit) {
|
|
2764
|
-
tmp = _this__u8e3s4.q29(true);
|
|
2765
|
-
} else {
|
|
2766
|
-
noWhenBranchMatchedException();
|
|
2767
|
-
}
|
|
2768
|
-
}
|
|
2769
|
-
}
|
|
2770
|
-
}
|
|
2771
|
-
return tmp;
|
|
2735
|
+
function toIterable(_this__u8e3s4, isNullable) {
|
|
2736
|
+
return new Iterable(_this__u8e3s4, isNullable);
|
|
2772
2737
|
}
|
|
2773
2738
|
function emitComponents(_this__u8e3s4, $this) {
|
|
2774
2739
|
// Inline function 'kotlin.let' call
|
|
@@ -2802,7 +2767,7 @@
|
|
|
2802
2767
|
var element_1 = tmp0_iterator_1.i();
|
|
2803
2768
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
2804
2769
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitComponents.<anonymous>' call
|
|
2805
|
-
var tmp = element_1.
|
|
2770
|
+
var tmp = element_1.w28().b1();
|
|
2806
2771
|
var tmp_0;
|
|
2807
2772
|
if (element_1 instanceof Enum) {
|
|
2808
2773
|
tmp_0 = emit_3(element_1, OpenApiV3Emitter_getInstance());
|
|
@@ -2857,7 +2822,7 @@
|
|
|
2857
2822
|
while (tmp0_iterator_0.h()) {
|
|
2858
2823
|
var element_0 = tmp0_iterator_0.i();
|
|
2859
2824
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitPaths.<anonymous>' call
|
|
2860
|
-
var key = element_0.
|
|
2825
|
+
var key = element_0.r23_1;
|
|
2861
2826
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
2862
2827
|
var value = destination_0.f2(key);
|
|
2863
2828
|
var tmp;
|
|
@@ -2928,10 +2893,10 @@
|
|
|
2928
2893
|
return toMap(destination_1);
|
|
2929
2894
|
}
|
|
2930
2895
|
function emit_1(_this__u8e3s4, $this) {
|
|
2931
|
-
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.
|
|
2896
|
+
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.j25_1.g26_1);
|
|
2932
2897
|
}
|
|
2933
2898
|
function emit_2(_this__u8e3s4, $this) {
|
|
2934
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2899
|
+
var tmp0_safe_receiver = _this__u8e3s4.d25_1;
|
|
2935
2900
|
var tmp;
|
|
2936
2901
|
var tmp_0 = tmp0_safe_receiver;
|
|
2937
2902
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -2941,7 +2906,7 @@
|
|
|
2941
2906
|
}
|
|
2942
2907
|
var tmp1_description = tmp;
|
|
2943
2908
|
// Inline function 'kotlin.collections.associate' call
|
|
2944
|
-
var this_0 = _this__u8e3s4.
|
|
2909
|
+
var this_0 = _this__u8e3s4.f25_1.x25_1;
|
|
2945
2910
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2946
2911
|
// Inline function 'kotlin.collections.associateTo' call
|
|
2947
2912
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
@@ -2957,13 +2922,13 @@
|
|
|
2957
2922
|
// Inline function 'kotlin.collections.map' call
|
|
2958
2923
|
// Inline function 'kotlin.collections.filter' call
|
|
2959
2924
|
// Inline function 'kotlin.collections.filterTo' call
|
|
2960
|
-
var this_1 = _this__u8e3s4.
|
|
2925
|
+
var this_1 = _this__u8e3s4.f25_1.x25_1;
|
|
2961
2926
|
var destination_0 = ArrayList_init_$Create$();
|
|
2962
2927
|
var tmp0_iterator_0 = this_1.g();
|
|
2963
2928
|
while (tmp0_iterator_0.h()) {
|
|
2964
2929
|
var element_0 = tmp0_iterator_0.i();
|
|
2965
2930
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2966
|
-
if (!element_0.
|
|
2931
|
+
if (!element_0.k24_1.wl()) {
|
|
2967
2932
|
destination_0.e(element_0);
|
|
2968
2933
|
}
|
|
2969
2934
|
}
|
|
@@ -2973,7 +2938,7 @@
|
|
|
2973
2938
|
while (tmp0_iterator_1.h()) {
|
|
2974
2939
|
var item = tmp0_iterator_1.i();
|
|
2975
2940
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
2976
|
-
var tmp$ret$6 = item.
|
|
2941
|
+
var tmp$ret$6 = item.j24_1.b1();
|
|
2977
2942
|
destination_1.e(tmp$ret$6);
|
|
2978
2943
|
}
|
|
2979
2944
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -2989,7 +2954,7 @@
|
|
|
2989
2954
|
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);
|
|
2990
2955
|
}
|
|
2991
2956
|
function emit_3(_this__u8e3s4, $this) {
|
|
2992
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2957
|
+
var tmp0_safe_receiver = _this__u8e3s4.k25_1;
|
|
2993
2958
|
var tmp;
|
|
2994
2959
|
var tmp_0 = tmp0_safe_receiver;
|
|
2995
2960
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3000,7 +2965,7 @@
|
|
|
3000
2965
|
var tmp1_description = tmp;
|
|
3001
2966
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3002
2967
|
// Inline function 'kotlin.collections.map' call
|
|
3003
|
-
var this_0 = _this__u8e3s4.
|
|
2968
|
+
var this_0 = _this__u8e3s4.m25_1;
|
|
3004
2969
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3005
2970
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3006
2971
|
var tmp0_iterator = this_0.g();
|
|
@@ -3013,7 +2978,7 @@
|
|
|
3013
2978
|
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);
|
|
3014
2979
|
}
|
|
3015
2980
|
function emit_4(_this__u8e3s4, $this) {
|
|
3016
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
2981
|
+
var tmp0_safe_receiver = _this__u8e3s4.a25_1;
|
|
3017
2982
|
var tmp;
|
|
3018
2983
|
var tmp_0 = tmp0_safe_receiver;
|
|
3019
2984
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3024,7 +2989,7 @@
|
|
|
3024
2989
|
var tmp1_description = tmp;
|
|
3025
2990
|
var tmp2_type = Type_STRING_getInstance_0();
|
|
3026
2991
|
// Inline function 'kotlin.collections.map' call
|
|
3027
|
-
var this_0 = _this__u8e3s4.
|
|
2992
|
+
var this_0 = _this__u8e3s4.c25_1;
|
|
3028
2993
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3029
2994
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
3030
2995
|
var tmp0_iterator = this_0.g();
|
|
@@ -3045,7 +3010,7 @@
|
|
|
3045
3010
|
while (tmp0_iterator.h()) {
|
|
3046
3011
|
var element = tmp0_iterator.i();
|
|
3047
3012
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3048
|
-
if (element.
|
|
3013
|
+
if (element.q23_1.equals(method)) {
|
|
3049
3014
|
destination.e(element);
|
|
3050
3015
|
}
|
|
3051
3016
|
}
|
|
@@ -3061,8 +3026,8 @@
|
|
|
3061
3026
|
return firstOrNull(destination_0);
|
|
3062
3027
|
}
|
|
3063
3028
|
function emit_6(_this__u8e3s4, $this) {
|
|
3064
|
-
var tmp2_operationId = _this__u8e3s4.
|
|
3065
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
3029
|
+
var tmp2_operationId = _this__u8e3s4.p23_1.b1();
|
|
3030
|
+
var tmp0_safe_receiver = _this__u8e3s4.o23_1;
|
|
3066
3031
|
var tmp;
|
|
3067
3032
|
var tmp_0 = tmp0_safe_receiver;
|
|
3068
3033
|
if ((tmp_0 == null ? null : new Comment(tmp_0)) == null) {
|
|
@@ -3074,7 +3039,7 @@
|
|
|
3074
3039
|
// Inline function 'kotlin.collections.map' call
|
|
3075
3040
|
// Inline function 'kotlin.collections.filterIsInstance' call
|
|
3076
3041
|
// Inline function 'kotlin.collections.filterIsInstanceTo' call
|
|
3077
|
-
var this_0 = _this__u8e3s4.
|
|
3042
|
+
var this_0 = _this__u8e3s4.r23_1;
|
|
3078
3043
|
var destination = ArrayList_init_$Create$();
|
|
3079
3044
|
var tmp0_iterator = this_0.g();
|
|
3080
3045
|
while (tmp0_iterator.h()) {
|
|
@@ -3094,7 +3059,7 @@
|
|
|
3094
3059
|
}
|
|
3095
3060
|
var tmp_1 = destination_0;
|
|
3096
3061
|
// Inline function 'kotlin.collections.map' call
|
|
3097
|
-
var this_1 = _this__u8e3s4.
|
|
3062
|
+
var this_1 = _this__u8e3s4.s23_1;
|
|
3098
3063
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3099
3064
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
3100
3065
|
var tmp0_iterator_1 = this_1.g();
|
|
@@ -3106,7 +3071,7 @@
|
|
|
3106
3071
|
}
|
|
3107
3072
|
var tmp_2 = plus(tmp_1, destination_1);
|
|
3108
3073
|
// Inline function 'kotlin.collections.map' call
|
|
3109
|
-
var this_2 = _this__u8e3s4.
|
|
3074
|
+
var this_2 = _this__u8e3s4.t23_1;
|
|
3110
3075
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3111
3076
|
var destination_2 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
|
|
3112
3077
|
var tmp0_iterator_2 = this_2.g();
|
|
@@ -3120,7 +3085,7 @@
|
|
|
3120
3085
|
// Inline function 'kotlin.takeIf' call
|
|
3121
3086
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
3122
3087
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
3123
|
-
var this_3 = _this__u8e3s4.
|
|
3088
|
+
var this_3 = _this__u8e3s4.v23_1;
|
|
3124
3089
|
var destination_3 = ArrayList_init_$Create$();
|
|
3125
3090
|
// Inline function 'kotlin.collections.forEach' call
|
|
3126
3091
|
var tmp0_iterator_3 = this_3.g();
|
|
@@ -3128,7 +3093,7 @@
|
|
|
3128
3093
|
var element_0 = tmp0_iterator_3.i();
|
|
3129
3094
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3130
3095
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3131
|
-
var tmp0_safe_receiver_0 = element_0.
|
|
3096
|
+
var tmp0_safe_receiver_0 = element_0.c24_1;
|
|
3132
3097
|
var tmp0_safe_receiver_1 = tmp0_safe_receiver_0 == null ? null : emit_7(tmp0_safe_receiver_0, OpenApiV3Emitter_getInstance());
|
|
3133
3098
|
if (tmp0_safe_receiver_1 == null)
|
|
3134
3099
|
null;
|
|
@@ -3159,7 +3124,7 @@
|
|
|
3159
3124
|
var tmp$ret$18;
|
|
3160
3125
|
$l$block_0: {
|
|
3161
3126
|
// Inline function 'kotlin.collections.any' call
|
|
3162
|
-
var this_5 = _this__u8e3s4.
|
|
3127
|
+
var this_5 = _this__u8e3s4.v23_1;
|
|
3163
3128
|
var tmp_5;
|
|
3164
3129
|
if (isInterface(this_5, Collection)) {
|
|
3165
3130
|
tmp_5 = this_5.l();
|
|
@@ -3174,27 +3139,28 @@
|
|
|
3174
3139
|
while (tmp0_iterator_4.h()) {
|
|
3175
3140
|
var element_1 = tmp0_iterator_4.i();
|
|
3176
3141
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3177
|
-
var tmp0_safe_receiver_2 = element_1.
|
|
3178
|
-
|
|
3142
|
+
var tmp0_safe_receiver_2 = element_1.c24_1;
|
|
3143
|
+
var tmp1_safe_receiver_0 = tmp0_safe_receiver_2 == null ? null : tmp0_safe_receiver_2.e24_1;
|
|
3144
|
+
if ((tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.wl()) === true) {
|
|
3179
3145
|
tmp$ret$18 = true;
|
|
3180
3146
|
break $l$block_0;
|
|
3181
3147
|
}
|
|
3182
3148
|
}
|
|
3183
3149
|
tmp$ret$18 = false;
|
|
3184
3150
|
}
|
|
3185
|
-
tmp_4 = new RequestBodyObject(VOID, tmp1_safe_receiver, tmp$ret$18);
|
|
3151
|
+
tmp_4 = new RequestBodyObject(VOID, tmp1_safe_receiver, !tmp$ret$18);
|
|
3186
3152
|
}
|
|
3187
3153
|
var tmp5_requestBody = tmp_4;
|
|
3188
3154
|
// Inline function 'kotlin.collections.map' call
|
|
3189
3155
|
// Inline function 'kotlin.collections.groupBy' call
|
|
3190
3156
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
3191
|
-
var this_6 = _this__u8e3s4.
|
|
3157
|
+
var this_6 = _this__u8e3s4.w23_1;
|
|
3192
3158
|
var destination_4 = LinkedHashMap_init_$Create$_0();
|
|
3193
3159
|
var tmp0_iterator_5 = this_6.g();
|
|
3194
3160
|
while (tmp0_iterator_5.h()) {
|
|
3195
3161
|
var element_2 = tmp0_iterator_5.i();
|
|
3196
3162
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>' call
|
|
3197
|
-
var key = element_2.
|
|
3163
|
+
var key = element_2.x23_1;
|
|
3198
3164
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
3199
3165
|
var value = destination_4.f2(key);
|
|
3200
3166
|
var tmp_6;
|
|
@@ -3229,7 +3195,7 @@
|
|
|
3229
3195
|
while (tmp0_iterator_7.h()) {
|
|
3230
3196
|
var element_3 = tmp0_iterator_7.i();
|
|
3231
3197
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3232
|
-
var list_0 = element_3.
|
|
3198
|
+
var list_0 = element_3.y23_1;
|
|
3233
3199
|
addAll(destination_6, list_0);
|
|
3234
3200
|
}
|
|
3235
3201
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(destination_6, 10)), 16);
|
|
@@ -3243,7 +3209,7 @@
|
|
|
3243
3209
|
var pair = emitHeader(element_4, OpenApiV3Emitter_getInstance());
|
|
3244
3210
|
destination_7.m2(pair.ce_1, pair.de_1);
|
|
3245
3211
|
}
|
|
3246
|
-
var tmp1_description = _this__u8e3s4.
|
|
3212
|
+
var tmp1_description = _this__u8e3s4.p23_1.b1() + ' ' + statusCode + ' response';
|
|
3247
3213
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
3248
3214
|
// Inline function 'kotlin.collections.associate' call
|
|
3249
3215
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
@@ -3255,7 +3221,7 @@
|
|
|
3255
3221
|
var element_5 = tmp0_iterator_9.i();
|
|
3256
3222
|
// Inline function 'kotlin.collections.mapNotNullTo.<anonymous>' call
|
|
3257
3223
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emit.<anonymous>.<anonymous>' call
|
|
3258
|
-
var tmp0_safe_receiver_3 = element_5.
|
|
3224
|
+
var tmp0_safe_receiver_3 = element_5.z23_1;
|
|
3259
3225
|
if (tmp0_safe_receiver_3 == null)
|
|
3260
3226
|
null;
|
|
3261
3227
|
else {
|
|
@@ -3294,39 +3260,47 @@
|
|
|
3294
3260
|
return '/' + joinToString(_this__u8e3s4, '/', VOID, VOID, VOID, VOID, OpenApiV3Emitter$emitSegment$lambda);
|
|
3295
3261
|
}
|
|
3296
3262
|
function emitParameter_0(_this__u8e3s4, $this, location) {
|
|
3297
|
-
var tmp0_name = _this__u8e3s4.
|
|
3298
|
-
var tmp1_schema = emitSchema_0(_this__u8e3s4.
|
|
3263
|
+
var tmp0_name = _this__u8e3s4.j24_1.b1();
|
|
3264
|
+
var tmp1_schema = emitSchema_0(_this__u8e3s4.k24_1, $this);
|
|
3299
3265
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp1_schema, VOID, VOID, VOID, tmp0_name, location);
|
|
3300
3266
|
}
|
|
3301
3267
|
function emitParameter_1(_this__u8e3s4, $this) {
|
|
3302
3268
|
var tmp0_in = ParameterLocation_PATH_getInstance_0();
|
|
3303
|
-
var tmp1_name = _this__u8e3s4.
|
|
3304
|
-
var tmp2_schema = emitSchema_0(_this__u8e3s4.
|
|
3269
|
+
var tmp1_name = _this__u8e3s4.o24_1.b1();
|
|
3270
|
+
var tmp2_schema = emitSchema_0(_this__u8e3s4.p24_1, $this);
|
|
3305
3271
|
return new ParameterObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp2_schema, VOID, VOID, VOID, tmp1_name, tmp0_in);
|
|
3306
3272
|
}
|
|
3307
3273
|
function emitHeader(_this__u8e3s4, $this) {
|
|
3308
|
-
return to(_this__u8e3s4.
|
|
3274
|
+
return to(_this__u8e3s4.j24_1.b1(), emitHeader_0(_this__u8e3s4.k24_1, $this));
|
|
3309
3275
|
}
|
|
3310
3276
|
function emitSchema(_this__u8e3s4, $this) {
|
|
3311
|
-
return to(_this__u8e3s4.
|
|
3277
|
+
return to(_this__u8e3s4.j24_1.b1(), emitSchema_0(_this__u8e3s4.k24_1, $this));
|
|
3312
3278
|
}
|
|
3313
3279
|
function emitHeader_0(_this__u8e3s4, $this) {
|
|
3314
3280
|
var tmp;
|
|
3315
|
-
if (_this__u8e3s4 instanceof
|
|
3316
|
-
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.
|
|
3281
|
+
if (_this__u8e3s4 instanceof Dict) {
|
|
3282
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.d26_1));
|
|
3317
3283
|
} else {
|
|
3318
|
-
if (_this__u8e3s4 instanceof
|
|
3319
|
-
tmp = new
|
|
3284
|
+
if (_this__u8e3s4 instanceof Iterable) {
|
|
3285
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.a26_1));
|
|
3320
3286
|
} else {
|
|
3321
|
-
if (_this__u8e3s4 instanceof
|
|
3322
|
-
|
|
3323
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
3287
|
+
if (_this__u8e3s4 instanceof Custom) {
|
|
3288
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/headers/' + _this__u8e3s4.z22_1));
|
|
3324
3289
|
} else {
|
|
3325
|
-
if (_this__u8e3s4 instanceof
|
|
3326
|
-
|
|
3327
|
-
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
3290
|
+
if (_this__u8e3s4 instanceof Primitive) {
|
|
3291
|
+
tmp = new HeaderObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4, $this));
|
|
3328
3292
|
} else {
|
|
3329
|
-
|
|
3293
|
+
if (_this__u8e3s4 instanceof Any) {
|
|
3294
|
+
var message = 'Cannot map Any';
|
|
3295
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
3296
|
+
} else {
|
|
3297
|
+
if (_this__u8e3s4 instanceof Unit) {
|
|
3298
|
+
var message_0 = 'Cannot map Unit';
|
|
3299
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
3300
|
+
} else {
|
|
3301
|
+
noWhenBranchMatchedException();
|
|
3302
|
+
}
|
|
3303
|
+
}
|
|
3330
3304
|
}
|
|
3331
3305
|
}
|
|
3332
3306
|
}
|
|
@@ -3334,31 +3308,38 @@
|
|
|
3334
3308
|
return tmp;
|
|
3335
3309
|
}
|
|
3336
3310
|
function emitSchema_0(_this__u8e3s4, $this) {
|
|
3337
|
-
// Inline function 'kotlin.let' call
|
|
3338
3311
|
var tmp;
|
|
3339
|
-
if (_this__u8e3s4 instanceof
|
|
3340
|
-
|
|
3312
|
+
if (_this__u8e3s4 instanceof Dict) {
|
|
3313
|
+
var tmp_0 = _this__u8e3s4.b26_1.wl();
|
|
3314
|
+
var tmp_1 = Type_OBJECT_getInstance_0();
|
|
3315
|
+
var tmp_2 = emitSchema_0(_this__u8e3s4.b26_1, $this);
|
|
3316
|
+
tmp = new SchemaObject_0(tmp_0, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, isInterface(tmp_2, SchemaOrReferenceOrBooleanObject) ? tmp_2 : THROW_CCE());
|
|
3341
3317
|
} else {
|
|
3342
|
-
if (_this__u8e3s4 instanceof
|
|
3343
|
-
tmp = new SchemaObject_0(
|
|
3318
|
+
if (_this__u8e3s4 instanceof Iterable) {
|
|
3319
|
+
tmp = new SchemaObject_0(_this__u8e3s4.y25_1.wl(), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, emitSchema_0(_this__u8e3s4.y25_1, $this));
|
|
3344
3320
|
} else {
|
|
3345
|
-
if (_this__u8e3s4 instanceof
|
|
3346
|
-
|
|
3347
|
-
throw IllegalStateException_init_$Create$(toString(message));
|
|
3321
|
+
if (_this__u8e3s4 instanceof Custom) {
|
|
3322
|
+
tmp = new ReferenceObject_0(_Ref___init__impl__7qfl46_0('#/components/schemas/' + _this__u8e3s4.z22_1));
|
|
3348
3323
|
} else {
|
|
3349
|
-
if (_this__u8e3s4 instanceof
|
|
3350
|
-
|
|
3351
|
-
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
3324
|
+
if (_this__u8e3s4 instanceof Primitive) {
|
|
3325
|
+
tmp = new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitType_1(_this__u8e3s4.h23_1, $this), VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, emitFormat_0(_this__u8e3s4, $this));
|
|
3352
3326
|
} else {
|
|
3353
|
-
|
|
3327
|
+
if (_this__u8e3s4 instanceof Any) {
|
|
3328
|
+
var message = 'Cannot map Any';
|
|
3329
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
3330
|
+
} else {
|
|
3331
|
+
if (_this__u8e3s4 instanceof Unit) {
|
|
3332
|
+
var message_0 = 'Cannot map Unit';
|
|
3333
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
3334
|
+
} else {
|
|
3335
|
+
noWhenBranchMatchedException();
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3354
3338
|
}
|
|
3355
3339
|
}
|
|
3356
3340
|
}
|
|
3357
3341
|
}
|
|
3358
|
-
|
|
3359
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Emitter.emitSchema.<anonymous>' call
|
|
3360
|
-
var it = tmp;
|
|
3361
|
-
return _this__u8e3s4.x24() ? 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.i24() ? new SchemaObject_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID, Type_ARRAY_getInstance_0(), VOID, VOID, VOID, VOID, it) : it;
|
|
3342
|
+
return tmp;
|
|
3362
3343
|
}
|
|
3363
3344
|
function emitType_1(_this__u8e3s4, $this) {
|
|
3364
3345
|
var tmp;
|
|
@@ -3386,16 +3367,16 @@
|
|
|
3386
3367
|
return tmp;
|
|
3387
3368
|
}
|
|
3388
3369
|
function emit_7(_this__u8e3s4, $this) {
|
|
3389
|
-
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.
|
|
3370
|
+
return to(new MediaType(_MediaType___init__impl__i9gzb9(_this__u8e3s4.d24_1)), new MediaTypeObject(emitSchema_0(_this__u8e3s4.e24_1, $this)));
|
|
3390
3371
|
}
|
|
3391
3372
|
function emitFormat_0(_this__u8e3s4, $this) {
|
|
3392
3373
|
var tmp;
|
|
3393
3374
|
if (_this__u8e3s4 instanceof Primitive) {
|
|
3394
|
-
var t = _this__u8e3s4.
|
|
3375
|
+
var t = _this__u8e3s4.h23_1;
|
|
3395
3376
|
var tmp_0;
|
|
3396
3377
|
if (t instanceof Number_0) {
|
|
3397
3378
|
var tmp_1;
|
|
3398
|
-
switch (t.
|
|
3379
|
+
switch (t.k23_1.q2_1) {
|
|
3399
3380
|
case 0:
|
|
3400
3381
|
tmp_1 = 'float';
|
|
3401
3382
|
break;
|
|
@@ -3410,7 +3391,7 @@
|
|
|
3410
3391
|
} else {
|
|
3411
3392
|
if (t instanceof Integer) {
|
|
3412
3393
|
var tmp_2;
|
|
3413
|
-
switch (t.
|
|
3394
|
+
switch (t.m23_1.q2_1) {
|
|
3414
3395
|
case 0:
|
|
3415
3396
|
tmp_2 = 'int32';
|
|
3416
3397
|
break;
|
|
@@ -3439,10 +3420,10 @@
|
|
|
3439
3420
|
function OpenApiV3Emitter$emitSegment$lambda(it) {
|
|
3440
3421
|
var tmp;
|
|
3441
3422
|
if (it instanceof Param) {
|
|
3442
|
-
tmp = '{' + it.
|
|
3423
|
+
tmp = '{' + it.o24_1.b1() + '}';
|
|
3443
3424
|
} else {
|
|
3444
3425
|
if (it instanceof Literal) {
|
|
3445
|
-
tmp = it.
|
|
3426
|
+
tmp = it.y24_1;
|
|
3446
3427
|
} else {
|
|
3447
3428
|
noWhenBranchMatchedException();
|
|
3448
3429
|
}
|
|
@@ -3452,15 +3433,15 @@
|
|
|
3452
3433
|
function OpenApiV3Emitter() {
|
|
3453
3434
|
OpenApiV3Emitter_instance = this;
|
|
3454
3435
|
Emitter.call(this, get_noLogger());
|
|
3455
|
-
this.
|
|
3436
|
+
this.z2a_1 = '';
|
|
3456
3437
|
}
|
|
3457
|
-
protoOf(OpenApiV3Emitter).
|
|
3458
|
-
return this.
|
|
3438
|
+
protoOf(OpenApiV3Emitter).q25 = function () {
|
|
3439
|
+
return this.z2a_1;
|
|
3459
3440
|
};
|
|
3460
3441
|
protoOf(OpenApiV3Emitter).k22 = function (ast) {
|
|
3461
3442
|
// Inline function 'kotlinx.serialization.encodeToString' call
|
|
3462
|
-
var this_0 = Common_getInstance().
|
|
3463
|
-
var value = this.
|
|
3443
|
+
var this_0 = Common_getInstance().b2a_1;
|
|
3444
|
+
var value = this.a2b(ast, null);
|
|
3464
3445
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
3465
3446
|
var this_1 = this_0.mo();
|
|
3466
3447
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -3469,28 +3450,28 @@
|
|
|
3469
3450
|
var tmp$ret$2 = this_0.b15(tmp$ret$1, value);
|
|
3470
3451
|
return listOf(new Emitted('OpenAPIObject', tmp$ret$2));
|
|
3471
3452
|
};
|
|
3472
|
-
protoOf(OpenApiV3Emitter).
|
|
3473
|
-
return this.
|
|
3453
|
+
protoOf(OpenApiV3Emitter).u25 = function (type, ast) {
|
|
3454
|
+
return this.r26();
|
|
3474
3455
|
};
|
|
3475
|
-
protoOf(OpenApiV3Emitter).
|
|
3476
|
-
return this.
|
|
3456
|
+
protoOf(OpenApiV3Emitter).i26 = function (enum_0, ast) {
|
|
3457
|
+
return this.r26();
|
|
3477
3458
|
};
|
|
3478
|
-
protoOf(OpenApiV3Emitter).
|
|
3479
|
-
return this.
|
|
3459
|
+
protoOf(OpenApiV3Emitter).e26 = function (refined) {
|
|
3460
|
+
return this.r26();
|
|
3480
3461
|
};
|
|
3481
|
-
protoOf(OpenApiV3Emitter).
|
|
3482
|
-
return this.
|
|
3462
|
+
protoOf(OpenApiV3Emitter).m26 = function (endpoint) {
|
|
3463
|
+
return this.r26();
|
|
3483
3464
|
};
|
|
3484
|
-
protoOf(OpenApiV3Emitter).
|
|
3485
|
-
return this.
|
|
3465
|
+
protoOf(OpenApiV3Emitter).k26 = function (union) {
|
|
3466
|
+
return this.r26();
|
|
3486
3467
|
};
|
|
3487
|
-
protoOf(OpenApiV3Emitter).
|
|
3488
|
-
return this.
|
|
3468
|
+
protoOf(OpenApiV3Emitter).l26 = function (channel) {
|
|
3469
|
+
return this.r26();
|
|
3489
3470
|
};
|
|
3490
|
-
protoOf(OpenApiV3Emitter).
|
|
3491
|
-
var tmp1_elvis_lhs = options == null ? null : options.
|
|
3471
|
+
protoOf(OpenApiV3Emitter).a2b = function (ast, options) {
|
|
3472
|
+
var tmp1_elvis_lhs = options == null ? null : options.b2b_1;
|
|
3492
3473
|
var tmp = tmp1_elvis_lhs == null ? 'Wirespec' : tmp1_elvis_lhs;
|
|
3493
|
-
var tmp3_elvis_lhs = options == null ? null : options.
|
|
3474
|
+
var tmp3_elvis_lhs = options == null ? null : options.c2b_1;
|
|
3494
3475
|
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));
|
|
3495
3476
|
};
|
|
3496
3477
|
var OpenApiV3Emitter_instance;
|
|
@@ -3548,7 +3529,7 @@
|
|
|
3548
3529
|
while (tmp0_iterator_2.h()) {
|
|
3549
3530
|
var item_0 = tmp0_iterator_2.i();
|
|
3550
3531
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3551
|
-
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_getInstance().
|
|
3532
|
+
var tmp$ret$9 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_0, Common_getInstance().c2a([name, 'Parameter', item_0.w1v_1]));
|
|
3552
3533
|
destination_2.e(tmp$ret$9);
|
|
3553
3534
|
}
|
|
3554
3535
|
var query = destination_2;
|
|
@@ -3570,7 +3551,7 @@
|
|
|
3570
3551
|
while (tmp0_iterator_4.h()) {
|
|
3571
3552
|
var item_1 = tmp0_iterator_4.i();
|
|
3572
3553
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3573
|
-
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_getInstance().
|
|
3554
|
+
var tmp$ret$15 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_1, Common_getInstance().c2a([name, 'Parameter', item_1.w1v_1]));
|
|
3574
3555
|
destination_4.e(tmp$ret$15);
|
|
3575
3556
|
}
|
|
3576
3557
|
var headers = destination_4;
|
|
@@ -3592,7 +3573,7 @@
|
|
|
3592
3573
|
while (tmp0_iterator_6.h()) {
|
|
3593
3574
|
var item_2 = tmp0_iterator_6.i();
|
|
3594
3575
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3595
|
-
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_getInstance().
|
|
3576
|
+
var tmp$ret$21 = toField_3(_this__u8e3s4, OpenApiV3Parser_instance, item_2, Common_getInstance().c2a([name, 'Parameter', item_2.w1v_1]));
|
|
3596
3577
|
destination_6.e(tmp$ret$21);
|
|
3597
3578
|
}
|
|
3598
3579
|
var cookies = destination_6;
|
|
@@ -3614,6 +3595,7 @@
|
|
|
3614
3595
|
// Inline function 'kotlin.let' call
|
|
3615
3596
|
// Inline function 'kotlin.contracts.contract' call
|
|
3616
3597
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>' call
|
|
3598
|
+
var isNullable = false;
|
|
3617
3599
|
var tmp0_safe_receiver = tmp2_safe_receiver.g1y_1;
|
|
3618
3600
|
var tmp_1;
|
|
3619
3601
|
if (tmp0_safe_receiver == null) {
|
|
@@ -3634,10 +3616,10 @@
|
|
|
3634
3616
|
var schema = mediaObject.z1z_1;
|
|
3635
3617
|
var tmp_2;
|
|
3636
3618
|
if (schema instanceof ReferenceObject_0) {
|
|
3637
|
-
tmp_2 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema);
|
|
3619
|
+
tmp_2 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, isNullable);
|
|
3638
3620
|
} else {
|
|
3639
3621
|
if (schema instanceof SchemaObject_0) {
|
|
3640
|
-
tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
3622
|
+
tmp_2 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema, isNullable, Common_getInstance().c2a([name, 'RequestBody']));
|
|
3641
3623
|
} else {
|
|
3642
3624
|
if (schema == null) {
|
|
3643
3625
|
tmp_2 = null;
|
|
@@ -3654,9 +3636,7 @@
|
|
|
3654
3636
|
// Inline function 'kotlin.let' call
|
|
3655
3637
|
// Inline function 'kotlin.contracts.contract' call
|
|
3656
3638
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3657
|
-
|
|
3658
|
-
var tmp0_elvis_lhs_0 = tmp2_safe_receiver.h1y_1;
|
|
3659
|
-
tmp_3 = new Request(new Content(tmp_4, reference, !(tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0)));
|
|
3639
|
+
tmp_3 = new Request(new Content(_MediaType___get_value__impl__wy58mp(mediaType), reference));
|
|
3660
3640
|
}
|
|
3661
3641
|
var tmp1_elvis_lhs = tmp_3;
|
|
3662
3642
|
var tmp$ret$31 = tmp1_elvis_lhs == null ? new Request(null) : tmp1_elvis_lhs;
|
|
@@ -3670,9 +3650,9 @@
|
|
|
3670
3650
|
var requests = tmp3_elvis_lhs == null ? listOf(new Request(null)) : tmp3_elvis_lhs;
|
|
3671
3651
|
// Inline function 'kotlin.collections.flatMap' call
|
|
3672
3652
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3673
|
-
var
|
|
3653
|
+
var tmp0_elvis_lhs_0 = operation.a1u_1;
|
|
3674
3654
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
3675
|
-
var this_2 =
|
|
3655
|
+
var this_2 = tmp0_elvis_lhs_0 == null ? emptyMap() : tmp0_elvis_lhs_0;
|
|
3676
3656
|
var destination_8 = ArrayList_init_$Create$();
|
|
3677
3657
|
// Inline function 'kotlin.collections.iterator' call
|
|
3678
3658
|
var tmp0_iterator_8 = this_2.z().g();
|
|
@@ -3688,9 +3668,9 @@
|
|
|
3688
3668
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3689
3669
|
var response = resolve_8(_this__u8e3s4, OpenApiV3Parser_instance, res);
|
|
3690
3670
|
var tmp0_safe_receiver_0 = response.u1x_1;
|
|
3691
|
-
var
|
|
3671
|
+
var tmp_4;
|
|
3692
3672
|
if (tmp0_safe_receiver_0 == null) {
|
|
3693
|
-
|
|
3673
|
+
tmp_4 = null;
|
|
3694
3674
|
} else {
|
|
3695
3675
|
// Inline function 'kotlin.collections.map' call
|
|
3696
3676
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3704,64 +3684,64 @@
|
|
|
3704
3684
|
var contentType = item_4.a1().v1z_1;
|
|
3705
3685
|
// Inline function 'kotlin.collections.component2' call
|
|
3706
3686
|
var media = item_4.b1();
|
|
3687
|
+
var tmp0_safe_receiver_1 = media.z1z_1;
|
|
3688
|
+
var tmp_5;
|
|
3689
|
+
if (tmp0_safe_receiver_1 == null) {
|
|
3690
|
+
tmp_5 = null;
|
|
3691
|
+
} else {
|
|
3692
|
+
// Inline function 'kotlin.let' call
|
|
3693
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3694
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3695
|
+
tmp_5 = resolve_4(_this__u8e3s4, OpenApiV3Parser_instance, tmp0_safe_receiver_1);
|
|
3696
|
+
}
|
|
3697
|
+
var tmp1_safe_receiver_0 = tmp_5;
|
|
3698
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver_0 == null ? null : tmp1_safe_receiver_0.f1w_1;
|
|
3699
|
+
var isNullable_0 = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
3707
3700
|
var tmp_6 = _StatusCode___get_value__impl__we50mu_0(status);
|
|
3708
3701
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
3709
|
-
var
|
|
3702
|
+
var tmp3_safe_receiver = response.t1x_1;
|
|
3710
3703
|
var tmp_7;
|
|
3711
|
-
if (
|
|
3704
|
+
if (tmp3_safe_receiver == null) {
|
|
3712
3705
|
tmp_7 = null;
|
|
3713
3706
|
} else {
|
|
3714
3707
|
// Inline function 'kotlin.collections.map' call
|
|
3715
3708
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3716
|
-
var destination_10 = ArrayList_init_$Create$_0(
|
|
3709
|
+
var destination_10 = ArrayList_init_$Create$_0(tmp3_safe_receiver.j());
|
|
3717
3710
|
// Inline function 'kotlin.collections.iterator' call
|
|
3718
|
-
var tmp0_iterator_10 =
|
|
3711
|
+
var tmp0_iterator_10 = tmp3_safe_receiver.z().g();
|
|
3719
3712
|
while (tmp0_iterator_10.h()) {
|
|
3720
3713
|
var item_5 = tmp0_iterator_10.i();
|
|
3721
3714
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3722
|
-
var tmp$ret$
|
|
3723
|
-
destination_10.e(tmp$ret$
|
|
3715
|
+
var tmp$ret$46 = toField_4(_this__u8e3s4, OpenApiV3Parser_instance, resolve_5(_this__u8e3s4, OpenApiV3Parser_instance, item_5.b1()), item_5.a1(), Common_getInstance().c2a([name, 'ResponseHeader']));
|
|
3716
|
+
destination_10.e(tmp$ret$46);
|
|
3724
3717
|
}
|
|
3725
3718
|
tmp_7 = destination_10;
|
|
3726
3719
|
}
|
|
3727
|
-
var
|
|
3728
|
-
var tmp_8 =
|
|
3720
|
+
var tmp0_elvis_lhs_1 = tmp_7;
|
|
3721
|
+
var tmp_8 = tmp0_elvis_lhs_1 == null ? emptyList() : tmp0_elvis_lhs_1;
|
|
3729
3722
|
var tmp_9 = _MediaType___get_value__impl__wy58mp(contentType);
|
|
3730
3723
|
var schema_0 = media.z1z_1;
|
|
3731
3724
|
var tmp_10;
|
|
3732
3725
|
if (schema_0 instanceof ReferenceObject_0) {
|
|
3733
|
-
tmp_10 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema_0);
|
|
3726
|
+
tmp_10 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, isNullable_0);
|
|
3734
3727
|
} else {
|
|
3735
3728
|
if (schema_0 instanceof SchemaObject_0) {
|
|
3736
|
-
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, Common_getInstance().
|
|
3729
|
+
tmp_10 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, schema_0, isNullable_0, Common_getInstance().c2a([name, _StatusCode___get_value__impl__we50mu_0(status), 'ResponseBody']));
|
|
3737
3730
|
} else {
|
|
3738
3731
|
if (schema_0 == null) {
|
|
3739
|
-
tmp_10 = new Any(
|
|
3732
|
+
tmp_10 = new Any(isNullable_0);
|
|
3740
3733
|
} else {
|
|
3741
3734
|
noWhenBranchMatchedException();
|
|
3742
3735
|
}
|
|
3743
3736
|
}
|
|
3744
3737
|
}
|
|
3745
|
-
var
|
|
3746
|
-
var tmp1_safe_receiver_0 = media.z1z_1;
|
|
3747
|
-
var tmp_12;
|
|
3748
|
-
if (tmp1_safe_receiver_0 == null) {
|
|
3749
|
-
tmp_12 = null;
|
|
3750
|
-
} else {
|
|
3751
|
-
// Inline function 'kotlin.let' call
|
|
3752
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
3753
|
-
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseEndpoint.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>.<anonymous>' call
|
|
3754
|
-
tmp_12 = resolve_4(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver_0);
|
|
3755
|
-
}
|
|
3756
|
-
var tmp2_safe_receiver_0 = tmp_12;
|
|
3757
|
-
var tmp3_elvis_lhs_0 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.f1w_1;
|
|
3758
|
-
var tmp$ret$50 = new Response(tmp_6, tmp_8, new Content(tmp_9, tmp_11, tmp3_elvis_lhs_0 == null ? false : tmp3_elvis_lhs_0));
|
|
3738
|
+
var tmp$ret$50 = new Response(tmp_6, tmp_8, new Content(tmp_9, tmp_10));
|
|
3759
3739
|
destination_9.e(tmp$ret$50);
|
|
3760
3740
|
}
|
|
3761
|
-
|
|
3741
|
+
tmp_4 = destination_9;
|
|
3762
3742
|
}
|
|
3763
|
-
var
|
|
3764
|
-
var list =
|
|
3743
|
+
var tmp0_elvis_lhs_2 = tmp_4;
|
|
3744
|
+
var list = tmp0_elvis_lhs_2 == null ? listOf(new Response(_StatusCode___get_value__impl__we50mu_0(status), emptyList(), null)) : tmp0_elvis_lhs_2;
|
|
3765
3745
|
addAll(destination_8, list);
|
|
3766
3746
|
}
|
|
3767
3747
|
var responses = destination_8;
|
|
@@ -3801,7 +3781,7 @@
|
|
|
3801
3781
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
3802
3782
|
case -1:
|
|
3803
3783
|
case 5:
|
|
3804
|
-
tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
3784
|
+
tmp_0 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, schema, Common_getInstance().c2a([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3805
3785
|
break;
|
|
3806
3786
|
case 4:
|
|
3807
3787
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -3814,7 +3794,7 @@
|
|
|
3814
3794
|
// Inline function 'kotlin.let' call
|
|
3815
3795
|
// Inline function 'kotlin.contracts.contract' call
|
|
3816
3796
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatMapResponse.<anonymous>.<anonymous>' call
|
|
3817
|
-
tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_getInstance().
|
|
3797
|
+
tmp_1 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp1_safe_receiver, Common_getInstance().c2a([name, _StatusCode___get_value__impl__we50mu_0(statusCode), 'ResponseBody']));
|
|
3818
3798
|
}
|
|
3819
3799
|
|
|
3820
3800
|
var tmp0_elvis_lhs_0 = tmp_1;
|
|
@@ -3868,7 +3848,7 @@
|
|
|
3868
3848
|
while (tmp0_iterator_0.h()) {
|
|
3869
3849
|
var element_0 = tmp0_iterator_0.i();
|
|
3870
3850
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseComponents.<anonymous>' call
|
|
3871
|
-
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_getInstance().
|
|
3851
|
+
var list = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, element_0.b1(), Common_getInstance().c2a([element_0.a1()]));
|
|
3872
3852
|
addAll(destination_0, list);
|
|
3873
3853
|
}
|
|
3874
3854
|
return destination_0;
|
|
@@ -3885,7 +3865,7 @@
|
|
|
3885
3865
|
// Inline function 'kotlin.let' call
|
|
3886
3866
|
// Inline function 'kotlin.contracts.contract' call
|
|
3887
3867
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toName.<anonymous>' call
|
|
3888
|
-
tmp = Common_getInstance().
|
|
3868
|
+
tmp = Common_getInstance().c2a([tmp0_safe_receiver]);
|
|
3889
3869
|
}
|
|
3890
3870
|
return tmp;
|
|
3891
3871
|
}
|
|
@@ -3975,7 +3955,7 @@
|
|
|
3975
3955
|
// Inline function 'kotlin.let' call
|
|
3976
3956
|
// Inline function 'kotlin.contracts.contract' call
|
|
3977
3957
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toSegments.<anonymous>.<anonymous>' call
|
|
3978
|
-
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, Common_getInstance().
|
|
3958
|
+
tmp_1 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, tmp4_safe_receiver, false, Common_getInstance().c2a([name, 'Parameter', param]));
|
|
3979
3959
|
}
|
|
3980
3960
|
|
|
3981
3961
|
var tmp5_safe_receiver = tmp_1;
|
|
@@ -4382,10 +4362,10 @@
|
|
|
4382
4362
|
var index_0 = checkIndexOverflow(tmp1);
|
|
4383
4363
|
var tmp_6;
|
|
4384
4364
|
if (item instanceof ReferenceObject_0) {
|
|
4385
|
-
tmp_6 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, item);
|
|
4365
|
+
tmp_6 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, item, false);
|
|
4386
4366
|
} else {
|
|
4387
4367
|
if (item instanceof SchemaObject_0) {
|
|
4388
|
-
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, Common_getInstance().
|
|
4368
|
+
tmp_6 = toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, item, false, Common_getInstance().c2a([name, index_0.toString()]));
|
|
4389
4369
|
} else {
|
|
4390
4370
|
noWhenBranchMatchedException();
|
|
4391
4371
|
}
|
|
@@ -4413,7 +4393,7 @@
|
|
|
4413
4393
|
tmp_8 = emptyList();
|
|
4414
4394
|
} else {
|
|
4415
4395
|
if (element instanceof SchemaObject_0) {
|
|
4416
|
-
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_getInstance().
|
|
4396
|
+
tmp_8 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, element, Common_getInstance().c2a([name, index_2.toString()]));
|
|
4417
4397
|
} else {
|
|
4418
4398
|
noWhenBranchMatchedException();
|
|
4419
4399
|
}
|
|
@@ -4444,7 +4424,7 @@
|
|
|
4444
4424
|
while (tmp0_iterator_2.h()) {
|
|
4445
4425
|
var e = tmp0_iterator_2.i();
|
|
4446
4426
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.flatten.<anonymous>' call
|
|
4447
|
-
var key = e.
|
|
4427
|
+
var key = e.j24_1;
|
|
4448
4428
|
if (set.e(key)) {
|
|
4449
4429
|
list_1.e(e);
|
|
4450
4430
|
}
|
|
@@ -4485,7 +4465,7 @@
|
|
|
4485
4465
|
var key_0 = element_2.a1();
|
|
4486
4466
|
// Inline function 'kotlin.collections.component2' call
|
|
4487
4467
|
var value = element_2.b1();
|
|
4488
|
-
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().
|
|
4468
|
+
var list_2 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().c2a([name, key_0]));
|
|
4489
4469
|
addAll(destination_3, list_2);
|
|
4490
4470
|
}
|
|
4491
4471
|
var list_3 = destination_3;
|
|
@@ -4534,7 +4514,7 @@
|
|
|
4534
4514
|
var key_1 = element_3.a1();
|
|
4535
4515
|
// Inline function 'kotlin.collections.component2' call
|
|
4536
4516
|
var value_0 = element_3.b1();
|
|
4537
|
-
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_getInstance().
|
|
4517
|
+
var list_4 = flatten_2(_this__u8e3s4, OpenApiV3Parser_instance, value_0, Common_getInstance().c2a([name, key_1]));
|
|
4538
4518
|
addAll(destination_5, list_4);
|
|
4539
4519
|
}
|
|
4540
4520
|
|
|
@@ -4556,7 +4536,7 @@
|
|
|
4556
4536
|
tmp_14 = emptyList();
|
|
4557
4537
|
} else {
|
|
4558
4538
|
if (tmp6_safe_receiver instanceof SchemaObject_0) {
|
|
4559
|
-
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_getInstance().
|
|
4539
|
+
tmp_14 = flatten_1(_this__u8e3s4, OpenApiV3Parser_instance, tmp6_safe_receiver, Common_getInstance().c2a([name, 'array']));
|
|
4560
4540
|
} else {
|
|
4561
4541
|
noWhenBranchMatchedException();
|
|
4562
4542
|
}
|
|
@@ -4588,7 +4568,7 @@
|
|
|
4588
4568
|
}
|
|
4589
4569
|
return tmp;
|
|
4590
4570
|
}
|
|
4591
|
-
function toReference_1(_this__u8e3s4, $this, reference) {
|
|
4571
|
+
function toReference_1(_this__u8e3s4, $this, reference, isNullable) {
|
|
4592
4572
|
// Inline function 'kotlin.let' call
|
|
4593
4573
|
// Inline function 'kotlin.contracts.contract' call
|
|
4594
4574
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
@@ -4600,13 +4580,17 @@
|
|
|
4600
4580
|
var additionalProperties = ensureNotNull(schema.v1w_1);
|
|
4601
4581
|
var tmp_0;
|
|
4602
4582
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
4603
|
-
tmp_0 = new Any(
|
|
4583
|
+
tmp_0 = new Dict(new Any(isNullable), false);
|
|
4604
4584
|
} else {
|
|
4605
4585
|
if (additionalProperties instanceof ReferenceObject_0) {
|
|
4606
|
-
|
|
4586
|
+
var tmp_1 = OpenApiV3Parser_instance;
|
|
4587
|
+
var tmp0_elvis_lhs = schema.f1w_1;
|
|
4588
|
+
tmp_0 = toDict_0(toReference_1(_this__u8e3s4, tmp_1, additionalProperties, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4607
4589
|
} else {
|
|
4608
4590
|
if (additionalProperties instanceof SchemaObject_0) {
|
|
4609
|
-
|
|
4591
|
+
var tmp_2 = OpenApiV3Parser_instance;
|
|
4592
|
+
var tmp1_elvis_lhs = schema.f1w_1;
|
|
4593
|
+
tmp_0 = toDict_0(toReference_2(_this__u8e3s4, tmp_2, additionalProperties, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, getReference_0(reference, OpenApiV3Parser_instance)), false);
|
|
4610
4594
|
} else {
|
|
4611
4595
|
noWhenBranchMatchedException();
|
|
4612
4596
|
}
|
|
@@ -4614,17 +4598,21 @@
|
|
|
4614
4598
|
}
|
|
4615
4599
|
tmp = tmp_0;
|
|
4616
4600
|
} else if (!(schema.o1x_1 == null)) {
|
|
4617
|
-
tmp = new Custom(Common_getInstance().
|
|
4601
|
+
tmp = new Custom(Common_getInstance().c2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), isNullable);
|
|
4618
4602
|
} else if (isPrimitive_0(schema.o1w_1)) {
|
|
4619
|
-
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.o1w_1), OpenApiV3Parser_instance, schema.x1w_1),
|
|
4603
|
+
tmp = new Primitive(toPrimitive_0(ensureNotNull(schema.o1w_1), OpenApiV3Parser_instance, schema.x1w_1), isNullable);
|
|
4620
4604
|
} else if (equals(schema.o1w_1, Type_ARRAY_getInstance_0())) {
|
|
4621
4605
|
var items = schema.t1w_1;
|
|
4622
|
-
var
|
|
4606
|
+
var tmp_3;
|
|
4623
4607
|
if (items instanceof ReferenceObject_0) {
|
|
4624
|
-
|
|
4608
|
+
var tmp_4 = OpenApiV3Parser_instance;
|
|
4609
|
+
var tmp2_elvis_lhs = schema.f1w_1;
|
|
4610
|
+
tmp_3 = toIterable_0(toReference_1(_this__u8e3s4, tmp_4, items, tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4625
4611
|
} else {
|
|
4626
4612
|
if (items instanceof SchemaObject_0) {
|
|
4627
|
-
|
|
4613
|
+
var tmp_5 = Common_getInstance().c2a([getReference_0(referencingObject, OpenApiV3Parser_instance), 'Array']);
|
|
4614
|
+
var tmp3_elvis_lhs = schema.f1w_1;
|
|
4615
|
+
tmp_3 = toIterable_0(new Custom(tmp_5, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4628
4616
|
} else {
|
|
4629
4617
|
if (items == null) {
|
|
4630
4618
|
var message = 'items cannot be null when type is array: ' + Ref__toString_impl_irb7zi_0(reference.c1w_1);
|
|
@@ -4634,22 +4622,24 @@
|
|
|
4634
4622
|
}
|
|
4635
4623
|
}
|
|
4636
4624
|
}
|
|
4637
|
-
tmp =
|
|
4625
|
+
tmp = tmp_3;
|
|
4638
4626
|
} else {
|
|
4639
|
-
tmp = new Custom(Common_getInstance().
|
|
4627
|
+
tmp = new Custom(Common_getInstance().c2a([getReference_0(referencingObject, OpenApiV3Parser_instance)]), isNullable);
|
|
4640
4628
|
}
|
|
4641
4629
|
return tmp;
|
|
4642
4630
|
}
|
|
4643
|
-
function toReference_2(_this__u8e3s4, $this, schema, name) {
|
|
4631
|
+
function toReference_2(_this__u8e3s4, $this, schema, isNullable, name) {
|
|
4644
4632
|
var tmp;
|
|
4645
4633
|
if (equals(schema.o1w_1, Type_ARRAY_getInstance_0())) {
|
|
4646
4634
|
var items = schema.t1w_1;
|
|
4647
4635
|
var tmp_0;
|
|
4648
4636
|
if (items instanceof ReferenceObject_0) {
|
|
4649
|
-
|
|
4637
|
+
var tmp0_elvis_lhs = schema.f1w_1;
|
|
4638
|
+
tmp_0 = toIterable_0(toReference_1(_this__u8e3s4, $this, items, tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs), isNullable);
|
|
4650
4639
|
} else {
|
|
4651
4640
|
if (items instanceof SchemaObject_0) {
|
|
4652
|
-
|
|
4641
|
+
var tmp1_elvis_lhs = schema.f1w_1;
|
|
4642
|
+
tmp_0 = toIterable_0(toReference_2(_this__u8e3s4, $this, items, tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs, name), isNullable);
|
|
4653
4643
|
} else {
|
|
4654
4644
|
if (items == null) {
|
|
4655
4645
|
throw new NotImplementedError();
|
|
@@ -4663,10 +4653,12 @@
|
|
|
4663
4653
|
var additionalProperties = ensureNotNull(schema.v1w_1);
|
|
4664
4654
|
var tmp_1;
|
|
4665
4655
|
if (additionalProperties instanceof BooleanObject_0) {
|
|
4666
|
-
|
|
4656
|
+
var tmp2_elvis_lhs = schema.f1w_1;
|
|
4657
|
+
tmp_1 = new Dict(new Any(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs), isNullable);
|
|
4667
4658
|
} else {
|
|
4668
4659
|
if (additionalProperties instanceof ReferenceObject_0) {
|
|
4669
|
-
|
|
4660
|
+
var tmp3_elvis_lhs = schema.f1w_1;
|
|
4661
|
+
tmp_1 = toDict_0(toReference_1(_this__u8e3s4, $this, additionalProperties, tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs), isNullable);
|
|
4670
4662
|
} else {
|
|
4671
4663
|
if (additionalProperties instanceof SchemaObject_0) {
|
|
4672
4664
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -4678,18 +4670,27 @@
|
|
|
4678
4670
|
} else {
|
|
4679
4671
|
tmp_2 = null;
|
|
4680
4672
|
}
|
|
4681
|
-
var
|
|
4673
|
+
var tmp4_safe_receiver = tmp_2;
|
|
4682
4674
|
var tmp_3;
|
|
4683
|
-
if (
|
|
4675
|
+
if (tmp4_safe_receiver == null) {
|
|
4684
4676
|
tmp_3 = null;
|
|
4685
4677
|
} else {
|
|
4686
4678
|
// Inline function 'kotlin.let' call
|
|
4687
4679
|
// Inline function 'kotlin.contracts.contract' call
|
|
4688
4680
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4689
|
-
|
|
4681
|
+
var tmp_4 = OpenApiV3Parser_instance;
|
|
4682
|
+
var tmp0_elvis_lhs_0 = schema.f1w_1;
|
|
4683
|
+
tmp_3 = toDict_0(toReference_2(_this__u8e3s4, tmp_4, tmp4_safe_receiver, tmp0_elvis_lhs_0 == null ? false : tmp0_elvis_lhs_0, name), isNullable);
|
|
4690
4684
|
}
|
|
4691
|
-
var
|
|
4692
|
-
|
|
4685
|
+
var tmp5_elvis_lhs = tmp_3;
|
|
4686
|
+
var tmp_5;
|
|
4687
|
+
if (tmp5_elvis_lhs == null) {
|
|
4688
|
+
var tmp6_elvis_lhs = schema.f1w_1;
|
|
4689
|
+
tmp_5 = new Dict(new Any(tmp6_elvis_lhs == null ? false : tmp6_elvis_lhs), isNullable);
|
|
4690
|
+
} else {
|
|
4691
|
+
tmp_5 = tmp5_elvis_lhs;
|
|
4692
|
+
}
|
|
4693
|
+
tmp_1 = tmp_5;
|
|
4693
4694
|
} else {
|
|
4694
4695
|
noWhenBranchMatchedException();
|
|
4695
4696
|
}
|
|
@@ -4697,39 +4698,60 @@
|
|
|
4697
4698
|
}
|
|
4698
4699
|
tmp = tmp_1;
|
|
4699
4700
|
} else if (!(schema.o1x_1 == null)) {
|
|
4700
|
-
|
|
4701
|
+
// Inline function 'kotlin.let' call
|
|
4702
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
4703
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4704
|
+
var it = new Custom(name, isNullable);
|
|
4705
|
+
tmp = !(schema.v1w_1 == null) ? new Dict(it, false) : it;
|
|
4701
4706
|
} else {
|
|
4702
4707
|
var type = schema.o1w_1;
|
|
4703
|
-
var
|
|
4708
|
+
var tmp_6;
|
|
4704
4709
|
switch (type == null ? -1 : type.q2_1) {
|
|
4705
4710
|
case 0:
|
|
4706
4711
|
case 1:
|
|
4707
4712
|
case 2:
|
|
4708
4713
|
case 3:
|
|
4709
|
-
|
|
4714
|
+
// Inline function 'kotlin.let' call
|
|
4715
|
+
|
|
4716
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
4717
|
+
|
|
4718
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4719
|
+
|
|
4720
|
+
var it_0 = new Primitive(toPrimitive_0(type, $this, schema.x1w_1), isNullable);
|
|
4721
|
+
tmp_6 = !(schema.v1w_1 == null) ? new Dict(it_0, false) : it_0;
|
|
4710
4722
|
break;
|
|
4711
4723
|
case -1:
|
|
4712
4724
|
case 5:
|
|
4713
|
-
var
|
|
4714
|
-
var
|
|
4715
|
-
if (
|
|
4716
|
-
|
|
4725
|
+
var tmp_7;
|
|
4726
|
+
var tmp_8 = schema.v1w_1;
|
|
4727
|
+
if (tmp_8 instanceof BooleanObject_0) {
|
|
4728
|
+
// Inline function 'kotlin.let' call
|
|
4729
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
4730
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4731
|
+
var it_1 = new Any(false);
|
|
4732
|
+
tmp_7 = !(schema.v1w_1 == null) ? new Dict(it_1, false) : it_1;
|
|
4717
4733
|
} else {
|
|
4718
|
-
|
|
4734
|
+
// Inline function 'kotlin.let' call
|
|
4735
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
4736
|
+
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toReference.<anonymous>' call
|
|
4737
|
+
var it_2 = new Custom(name, isNullable);
|
|
4738
|
+
tmp_7 = !(schema.v1w_1 == null) ? new Dict(it_2, false) : it_2;
|
|
4719
4739
|
}
|
|
4720
4740
|
|
|
4721
|
-
|
|
4741
|
+
tmp_6 = tmp_7;
|
|
4722
4742
|
break;
|
|
4723
4743
|
case 4:
|
|
4724
|
-
var
|
|
4725
|
-
var
|
|
4726
|
-
if (
|
|
4727
|
-
|
|
4744
|
+
var it_3 = schema.t1w_1;
|
|
4745
|
+
var tmp_9;
|
|
4746
|
+
if (it_3 instanceof ReferenceObject_0) {
|
|
4747
|
+
var tmp7_elvis_lhs = schema.f1w_1;
|
|
4748
|
+
tmp_9 = toIterable_0(toReference_1(_this__u8e3s4, $this, it_3, tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs), isNullable);
|
|
4728
4749
|
} else {
|
|
4729
|
-
if (
|
|
4730
|
-
|
|
4750
|
+
if (it_3 instanceof SchemaObject_0) {
|
|
4751
|
+
var tmp8_elvis_lhs = schema.f1w_1;
|
|
4752
|
+
tmp_9 = toIterable_0(toReference_2(_this__u8e3s4, $this, it_3, tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs, name), isNullable);
|
|
4731
4753
|
} else {
|
|
4732
|
-
if (
|
|
4754
|
+
if (it_3 == null) {
|
|
4733
4755
|
var message = 'When schema is of type array items cannot be null for name: ' + name;
|
|
4734
4756
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
4735
4757
|
} else {
|
|
@@ -4738,13 +4760,13 @@
|
|
|
4738
4760
|
}
|
|
4739
4761
|
}
|
|
4740
4762
|
|
|
4741
|
-
|
|
4763
|
+
tmp_6 = tmp_9;
|
|
4742
4764
|
break;
|
|
4743
4765
|
default:
|
|
4744
4766
|
noWhenBranchMatchedException();
|
|
4745
4767
|
break;
|
|
4746
4768
|
}
|
|
4747
|
-
tmp =
|
|
4769
|
+
tmp = tmp_6;
|
|
4748
4770
|
}
|
|
4749
4771
|
return tmp;
|
|
4750
4772
|
}
|
|
@@ -4791,7 +4813,7 @@
|
|
|
4791
4813
|
var tmp$ret$0 = tmp_0;
|
|
4792
4814
|
result.m2(element, tmp$ret$0);
|
|
4793
4815
|
}
|
|
4794
|
-
return tmp.
|
|
4816
|
+
return tmp.d2a(result);
|
|
4795
4817
|
}
|
|
4796
4818
|
function getReference_0(_this__u8e3s4, $this) {
|
|
4797
4819
|
var tmp0_elvis_lhs = getOrNull(split(_Ref___get_value__impl__kxavfe_0(_this__u8e3s4.c1w_1), ['/']), 3);
|
|
@@ -4841,20 +4863,15 @@
|
|
|
4841
4863
|
var key = item.a1();
|
|
4842
4864
|
// Inline function 'kotlin.collections.component2' call
|
|
4843
4865
|
var value = item.b1();
|
|
4866
|
+
var tmp0_safe_receiver = schema.n1x_1;
|
|
4867
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p1(key);
|
|
4868
|
+
var isNullable = !(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs);
|
|
4844
4869
|
var tmp;
|
|
4845
4870
|
if (value instanceof SchemaObject_0) {
|
|
4846
|
-
|
|
4847
|
-
var tmp_1 = !(value.o1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().o2a([name, key])) : equals(value.o1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().o2a([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, Common_getInstance().o2a([name, key]));
|
|
4848
|
-
var tmp1_safe_receiver = schema.n1x_1;
|
|
4849
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.p1(key);
|
|
4850
|
-
tmp = new Field(tmp_0, tmp_1, !(tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs));
|
|
4871
|
+
tmp = new Field(new FieldIdentifier(key), !(value.o1x_1 == null) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, isNullable, Common_getInstance().c2a([name, key])) : equals(value.o1w_1, Type_ARRAY_getInstance_0()) ? toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, isNullable, Common_getInstance().c2a([name, key, 'Array'])) : toReference_2(_this__u8e3s4, OpenApiV3Parser_instance, value, isNullable, Common_getInstance().c2a([name, key])));
|
|
4851
4872
|
} else {
|
|
4852
4873
|
if (value instanceof ReferenceObject_0) {
|
|
4853
|
-
|
|
4854
|
-
var tmp_3 = toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, value);
|
|
4855
|
-
var tmp3_safe_receiver = schema.n1x_1;
|
|
4856
|
-
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.p1(key);
|
|
4857
|
-
tmp = new Field(tmp_2, tmp_3, !(tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs));
|
|
4874
|
+
tmp = new Field(new FieldIdentifier(key), toReference_1(_this__u8e3s4, OpenApiV3Parser_instance, value, isNullable));
|
|
4858
4875
|
} else {
|
|
4859
4876
|
noWhenBranchMatchedException();
|
|
4860
4877
|
}
|
|
@@ -4865,17 +4882,19 @@
|
|
|
4865
4882
|
return destination;
|
|
4866
4883
|
}
|
|
4867
4884
|
function toField_3(_this__u8e3s4, $this, parameter, name) {
|
|
4885
|
+
var tmp0_elvis_lhs = parameter.m1v_1;
|
|
4886
|
+
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4868
4887
|
// Inline function 'kotlin.let' call
|
|
4869
4888
|
var s = parameter.s1v_1;
|
|
4870
4889
|
var tmp;
|
|
4871
4890
|
if (s instanceof ReferenceObject_0) {
|
|
4872
|
-
tmp = toReference_1(_this__u8e3s4, $this, s);
|
|
4891
|
+
tmp = toReference_1(_this__u8e3s4, $this, s, isNullable);
|
|
4873
4892
|
} else {
|
|
4874
4893
|
if (s instanceof SchemaObject_0) {
|
|
4875
|
-
tmp = toReference_2(_this__u8e3s4, $this, s, name + (equals(s.o1w_1, Type_ARRAY_getInstance_0()) ? 'Array' : ''));
|
|
4894
|
+
tmp = toReference_2(_this__u8e3s4, $this, s, isNullable, name + (equals(s.o1w_1, Type_ARRAY_getInstance_0()) ? 'Array' : ''));
|
|
4876
4895
|
} else {
|
|
4877
4896
|
if (s == null) {
|
|
4878
|
-
tmp = new Primitive(String_instance);
|
|
4897
|
+
tmp = new Primitive(String_instance, isNullable);
|
|
4879
4898
|
} else {
|
|
4880
4899
|
noWhenBranchMatchedException();
|
|
4881
4900
|
}
|
|
@@ -4884,22 +4903,22 @@
|
|
|
4884
4903
|
// Inline function 'kotlin.contracts.contract' call
|
|
4885
4904
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
|
|
4886
4905
|
var it = tmp;
|
|
4887
|
-
|
|
4888
|
-
var tmp0_elvis_lhs = parameter.m1v_1;
|
|
4889
|
-
return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4906
|
+
return new Field(new FieldIdentifier(parameter.w1v_1), it);
|
|
4890
4907
|
}
|
|
4891
4908
|
function toField_4(_this__u8e3s4, $this, header, identifier, name) {
|
|
4909
|
+
var tmp0_elvis_lhs = header.m1y_1;
|
|
4910
|
+
var isNullable = !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs);
|
|
4892
4911
|
// Inline function 'kotlin.let' call
|
|
4893
4912
|
var s = header.s1y_1;
|
|
4894
4913
|
var tmp;
|
|
4895
4914
|
if (s instanceof ReferenceObject_0) {
|
|
4896
|
-
tmp = toReference_1(_this__u8e3s4, $this, s);
|
|
4915
|
+
tmp = toReference_1(_this__u8e3s4, $this, s, isNullable);
|
|
4897
4916
|
} else {
|
|
4898
4917
|
if (s instanceof SchemaObject_0) {
|
|
4899
|
-
tmp = toReference_2(_this__u8e3s4, $this, s, name);
|
|
4918
|
+
tmp = toReference_2(_this__u8e3s4, $this, s, isNullable, name);
|
|
4900
4919
|
} else {
|
|
4901
4920
|
if (s == null) {
|
|
4902
|
-
tmp = new Primitive(String_instance);
|
|
4921
|
+
tmp = new Primitive(String_instance, isNullable);
|
|
4903
4922
|
} else {
|
|
4904
4923
|
noWhenBranchMatchedException();
|
|
4905
4924
|
}
|
|
@@ -4908,24 +4927,22 @@
|
|
|
4908
4927
|
// Inline function 'kotlin.contracts.contract' call
|
|
4909
4928
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.toField.<anonymous>' call
|
|
4910
4929
|
var it = tmp;
|
|
4911
|
-
|
|
4912
|
-
var tmp0_elvis_lhs = header.m1y_1;
|
|
4913
|
-
return new Field(tmp_0, it, !(tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs));
|
|
4930
|
+
return new Field(new FieldIdentifier(identifier), it);
|
|
4914
4931
|
}
|
|
4915
4932
|
function FlattenRequest_0(path, pathItem, method, operation) {
|
|
4916
|
-
this.
|
|
4917
|
-
this.
|
|
4918
|
-
this.
|
|
4919
|
-
this.
|
|
4933
|
+
this.d2b_1 = path;
|
|
4934
|
+
this.e2b_1 = pathItem;
|
|
4935
|
+
this.f2b_1 = method;
|
|
4936
|
+
this.g2b_1 = operation;
|
|
4920
4937
|
}
|
|
4921
4938
|
protoOf(FlattenRequest_0).toString = function () {
|
|
4922
|
-
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
4939
|
+
return 'FlattenRequest(path=' + Path__toString_impl_wlr1lw_0(this.d2b_1) + ', pathItem=' + this.e2b_1.toString() + ', method=' + this.f2b_1.toString() + ', operation=' + this.g2b_1.toString() + ')';
|
|
4923
4940
|
};
|
|
4924
4941
|
protoOf(FlattenRequest_0).hashCode = function () {
|
|
4925
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
4926
|
-
result = imul(result, 31) + this.
|
|
4927
|
-
result = imul(result, 31) + this.
|
|
4928
|
-
result = imul(result, 31) + this.
|
|
4942
|
+
var result = Path__hashCode_impl_go73kd_0(this.d2b_1);
|
|
4943
|
+
result = imul(result, 31) + this.e2b_1.hashCode() | 0;
|
|
4944
|
+
result = imul(result, 31) + this.f2b_1.hashCode() | 0;
|
|
4945
|
+
result = imul(result, 31) + this.g2b_1.hashCode() | 0;
|
|
4929
4946
|
return result;
|
|
4930
4947
|
};
|
|
4931
4948
|
protoOf(FlattenRequest_0).equals = function (other) {
|
|
@@ -4934,13 +4951,13 @@
|
|
|
4934
4951
|
if (!(other instanceof FlattenRequest_0))
|
|
4935
4952
|
return false;
|
|
4936
4953
|
var tmp0_other_with_cast = other instanceof FlattenRequest_0 ? other : THROW_CCE();
|
|
4937
|
-
if (!(this.
|
|
4954
|
+
if (!(this.d2b_1 === tmp0_other_with_cast.d2b_1))
|
|
4938
4955
|
return false;
|
|
4939
|
-
if (!this.
|
|
4956
|
+
if (!this.e2b_1.equals(tmp0_other_with_cast.e2b_1))
|
|
4940
4957
|
return false;
|
|
4941
|
-
if (!this.
|
|
4958
|
+
if (!this.f2b_1.equals(tmp0_other_with_cast.f2b_1))
|
|
4942
4959
|
return false;
|
|
4943
|
-
if (!this.
|
|
4960
|
+
if (!this.g2b_1.equals(tmp0_other_with_cast.g2b_1))
|
|
4944
4961
|
return false;
|
|
4945
4962
|
return true;
|
|
4946
4963
|
};
|
|
@@ -4989,23 +5006,23 @@
|
|
|
4989
5006
|
return destination_1;
|
|
4990
5007
|
}
|
|
4991
5008
|
function FlattenResponse_0(path, pathItem, method, operation, statusCode, response) {
|
|
4992
|
-
this.
|
|
4993
|
-
this.
|
|
4994
|
-
this.
|
|
4995
|
-
this.
|
|
4996
|
-
this.
|
|
4997
|
-
this.
|
|
5009
|
+
this.h2b_1 = path;
|
|
5010
|
+
this.i2b_1 = pathItem;
|
|
5011
|
+
this.j2b_1 = method;
|
|
5012
|
+
this.k2b_1 = operation;
|
|
5013
|
+
this.l2b_1 = statusCode;
|
|
5014
|
+
this.m2b_1 = response;
|
|
4998
5015
|
}
|
|
4999
5016
|
protoOf(FlattenResponse_0).toString = function () {
|
|
5000
|
-
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.
|
|
5017
|
+
return 'FlattenResponse(path=' + Path__toString_impl_wlr1lw_0(this.h2b_1) + ', pathItem=' + this.i2b_1.toString() + ', method=' + this.j2b_1.toString() + ', operation=' + this.k2b_1.toString() + ', statusCode=' + StatusCode__toString_impl_6caewy_0(this.l2b_1) + ', response=' + toString(this.m2b_1) + ')';
|
|
5001
5018
|
};
|
|
5002
5019
|
protoOf(FlattenResponse_0).hashCode = function () {
|
|
5003
|
-
var result = Path__hashCode_impl_go73kd_0(this.
|
|
5004
|
-
result = imul(result, 31) + this.
|
|
5005
|
-
result = imul(result, 31) + this.
|
|
5006
|
-
result = imul(result, 31) + this.
|
|
5007
|
-
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.
|
|
5008
|
-
result = imul(result, 31) + hashCode(this.
|
|
5020
|
+
var result = Path__hashCode_impl_go73kd_0(this.h2b_1);
|
|
5021
|
+
result = imul(result, 31) + this.i2b_1.hashCode() | 0;
|
|
5022
|
+
result = imul(result, 31) + this.j2b_1.hashCode() | 0;
|
|
5023
|
+
result = imul(result, 31) + this.k2b_1.hashCode() | 0;
|
|
5024
|
+
result = imul(result, 31) + StatusCode__hashCode_impl_fevhvx_0(this.l2b_1) | 0;
|
|
5025
|
+
result = imul(result, 31) + hashCode(this.m2b_1) | 0;
|
|
5009
5026
|
return result;
|
|
5010
5027
|
};
|
|
5011
5028
|
protoOf(FlattenResponse_0).equals = function (other) {
|
|
@@ -5014,17 +5031,17 @@
|
|
|
5014
5031
|
if (!(other instanceof FlattenResponse_0))
|
|
5015
5032
|
return false;
|
|
5016
5033
|
var tmp0_other_with_cast = other instanceof FlattenResponse_0 ? other : THROW_CCE();
|
|
5017
|
-
if (!(this.
|
|
5034
|
+
if (!(this.h2b_1 === tmp0_other_with_cast.h2b_1))
|
|
5018
5035
|
return false;
|
|
5019
|
-
if (!this.
|
|
5036
|
+
if (!this.i2b_1.equals(tmp0_other_with_cast.i2b_1))
|
|
5020
5037
|
return false;
|
|
5021
|
-
if (!this.
|
|
5038
|
+
if (!this.j2b_1.equals(tmp0_other_with_cast.j2b_1))
|
|
5022
5039
|
return false;
|
|
5023
|
-
if (!this.
|
|
5040
|
+
if (!this.k2b_1.equals(tmp0_other_with_cast.k2b_1))
|
|
5024
5041
|
return false;
|
|
5025
|
-
if (!(this.
|
|
5042
|
+
if (!(this.l2b_1 === tmp0_other_with_cast.l2b_1))
|
|
5026
5043
|
return false;
|
|
5027
|
-
if (!equals(this.
|
|
5044
|
+
if (!equals(this.m2b_1, tmp0_other_with_cast.m2b_1))
|
|
5028
5045
|
return false;
|
|
5029
5046
|
return true;
|
|
5030
5047
|
};
|
|
@@ -5105,9 +5122,9 @@
|
|
|
5105
5122
|
}
|
|
5106
5123
|
function OpenApiV3Parser$parseParameters$lambda($this_parseParameters) {
|
|
5107
5124
|
return function ($this$flatMapRequests) {
|
|
5108
|
-
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.
|
|
5109
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5110
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5125
|
+
var parameters = plus(resolveParameters_2($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.e2b_1), resolveParameters_1($this_parseParameters, OpenApiV3Parser_instance, $this$flatMapRequests.g2b_1));
|
|
5126
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.g2b_1, OpenApiV3Parser_instance);
|
|
5127
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.d2b_1, OpenApiV3Parser_instance) + $this$flatMapRequests.f2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5111
5128
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5112
5129
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
5113
5130
|
var destination = ArrayList_init_$Create$();
|
|
@@ -5123,7 +5140,7 @@
|
|
|
5123
5140
|
// Inline function 'kotlin.let' call
|
|
5124
5141
|
// Inline function 'kotlin.contracts.contract' call
|
|
5125
5142
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseParameters.<anonymous>.<anonymous>.<anonymous>' call
|
|
5126
|
-
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_getInstance().
|
|
5143
|
+
tmp = flatten_2($this_parseParameters, OpenApiV3Parser_instance, tmp0_safe_receiver, Common_getInstance().c2a([name, 'Parameter', element.w1v_1]));
|
|
5127
5144
|
}
|
|
5128
5145
|
var tmp1_elvis_lhs = tmp;
|
|
5129
5146
|
var list = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
@@ -5134,11 +5151,11 @@
|
|
|
5134
5151
|
}
|
|
5135
5152
|
function OpenApiV3Parser$parseRequestBody$lambda($this_parseRequestBody) {
|
|
5136
5153
|
return function ($this$flatMapRequests) {
|
|
5137
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.
|
|
5138
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.
|
|
5154
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapRequests.g2b_1, OpenApiV3Parser_instance);
|
|
5155
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapRequests.d2b_1, OpenApiV3Parser_instance) + $this$flatMapRequests.f2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5139
5156
|
// Inline function 'kotlin.collections.flatMap' call
|
|
5140
5157
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
5141
|
-
var tmp1_safe_receiver = $this$flatMapRequests.
|
|
5158
|
+
var tmp1_safe_receiver = $this$flatMapRequests.g2b_1.z1t_1;
|
|
5142
5159
|
var tmp;
|
|
5143
5160
|
if (tmp1_safe_receiver == null) {
|
|
5144
5161
|
tmp = null;
|
|
@@ -5168,7 +5185,7 @@
|
|
|
5168
5185
|
switch (tmp0_subject == null ? -1 : tmp0_subject.q2_1) {
|
|
5169
5186
|
case -1:
|
|
5170
5187
|
case 5:
|
|
5171
|
-
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_getInstance().
|
|
5188
|
+
tmp_1 = flatten_1($this_parseRequestBody, OpenApiV3Parser_instance, schema, Common_getInstance().c2a([name, 'RequestBody']));
|
|
5172
5189
|
break;
|
|
5173
5190
|
case 4:
|
|
5174
5191
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
@@ -5181,7 +5198,7 @@
|
|
|
5181
5198
|
// Inline function 'kotlin.let' call
|
|
5182
5199
|
// Inline function 'kotlin.contracts.contract' call
|
|
5183
5200
|
// Inline function 'community.flock.wirespec.openapi.v3.OpenApiV3Parser.parseRequestBody.<anonymous>.<anonymous>.<anonymous>' call
|
|
5184
|
-
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().
|
|
5201
|
+
tmp_2 = flatten_2($this_parseRequestBody, OpenApiV3Parser_instance, tmp1_safe_receiver_0, Common_getInstance().c2a([name, 'RequestBody']));
|
|
5185
5202
|
}
|
|
5186
5203
|
|
|
5187
5204
|
var tmp0_elvis_lhs_1 = tmp_2;
|
|
@@ -5213,15 +5230,15 @@
|
|
|
5213
5230
|
}
|
|
5214
5231
|
function OpenApiV3Parser$parseResponseBody$lambda($this_parseResponseBody) {
|
|
5215
5232
|
return function ($this$flatMapResponses) {
|
|
5216
|
-
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.
|
|
5217
|
-
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.
|
|
5218
|
-
var response = $this$flatMapResponses.
|
|
5233
|
+
var tmp0_elvis_lhs = toName_1($this$flatMapResponses.k2b_1, OpenApiV3Parser_instance);
|
|
5234
|
+
var name = tmp0_elvis_lhs == null ? toName_2($this$flatMapResponses.h2b_1, OpenApiV3Parser_instance) + $this$flatMapResponses.j2b_1.p2_1 : tmp0_elvis_lhs;
|
|
5235
|
+
var response = $this$flatMapResponses.m2b_1;
|
|
5219
5236
|
var tmp;
|
|
5220
5237
|
if (response instanceof ResponseObject_0) {
|
|
5221
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.
|
|
5238
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, response, name, $this$flatMapResponses.l2b_1);
|
|
5222
5239
|
} else {
|
|
5223
5240
|
if (response instanceof ReferenceObject_0) {
|
|
5224
|
-
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.
|
|
5241
|
+
tmp = flatMapResponse($this_parseResponseBody, OpenApiV3Parser_instance, resolveResponseObject_0($this_parseResponseBody, OpenApiV3Parser_instance, response).de_1, name, $this$flatMapResponses.l2b_1);
|
|
5225
5242
|
} else {
|
|
5226
5243
|
noWhenBranchMatchedException();
|
|
5227
5244
|
}
|
|
@@ -5240,10 +5257,10 @@
|
|
|
5240
5257
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5241
5258
|
|
|
5242
5259
|
var tmp$ret$1 = it.substring(1, endIndex);
|
|
5243
|
-
tmp = tmp_0.
|
|
5260
|
+
tmp = tmp_0.c2a([tmp$ret$1]);
|
|
5244
5261
|
break;
|
|
5245
5262
|
case false:
|
|
5246
|
-
tmp = Common_getInstance().
|
|
5263
|
+
tmp = Common_getInstance().c2a([it]);
|
|
5247
5264
|
break;
|
|
5248
5265
|
default:
|
|
5249
5266
|
noWhenBranchMatchedException();
|
|
@@ -5253,14 +5270,14 @@
|
|
|
5253
5270
|
}
|
|
5254
5271
|
function OpenApiV3Parser() {
|
|
5255
5272
|
}
|
|
5256
|
-
protoOf(OpenApiV3Parser).
|
|
5257
|
-
return this.
|
|
5273
|
+
protoOf(OpenApiV3Parser).u2a = function (json, strict) {
|
|
5274
|
+
return this.n2b((new OpenAPI_0(Json(VOID, OpenApiV3Parser$parse$lambda(strict)))).i1g(json));
|
|
5258
5275
|
};
|
|
5259
|
-
protoOf(OpenApiV3Parser).
|
|
5276
|
+
protoOf(OpenApiV3Parser).o2b = function (json, strict, $super) {
|
|
5260
5277
|
strict = strict === VOID ? false : strict;
|
|
5261
|
-
return $super === VOID ? this.
|
|
5278
|
+
return $super === VOID ? this.u2a(json, strict) : $super.u2a.call(this, json, strict);
|
|
5262
5279
|
};
|
|
5263
|
-
protoOf(OpenApiV3Parser).
|
|
5280
|
+
protoOf(OpenApiV3Parser).n2b = function (_this__u8e3s4) {
|
|
5264
5281
|
// Inline function 'kotlin.collections.reduce' call
|
|
5265
5282
|
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();
|
|
5266
5283
|
if (!iterator.h())
|
|
@@ -5277,26 +5294,8 @@
|
|
|
5277
5294
|
function OpenApiV3Parser_getInstance() {
|
|
5278
5295
|
return OpenApiV3Parser_instance;
|
|
5279
5296
|
}
|
|
5280
|
-
function
|
|
5281
|
-
|
|
5282
|
-
if (_this__u8e3s4 instanceof Custom) {
|
|
5283
|
-
tmp = _this__u8e3s4.s29(VOID, VOID, true);
|
|
5284
|
-
} else {
|
|
5285
|
-
if (_this__u8e3s4 instanceof Any) {
|
|
5286
|
-
tmp = _this__u8e3s4.m29(VOID, true);
|
|
5287
|
-
} else {
|
|
5288
|
-
if (_this__u8e3s4 instanceof Primitive) {
|
|
5289
|
-
tmp = _this__u8e3s4.u29(VOID, VOID, true);
|
|
5290
|
-
} else {
|
|
5291
|
-
if (_this__u8e3s4 instanceof Unit) {
|
|
5292
|
-
tmp = _this__u8e3s4.q29(VOID, true);
|
|
5293
|
-
} else {
|
|
5294
|
-
noWhenBranchMatchedException();
|
|
5295
|
-
}
|
|
5296
|
-
}
|
|
5297
|
-
}
|
|
5298
|
-
}
|
|
5299
|
-
return tmp;
|
|
5297
|
+
function toDict_0(_this__u8e3s4, isNullable) {
|
|
5298
|
+
return new Dict(_this__u8e3s4, isNullable);
|
|
5300
5299
|
}
|
|
5301
5300
|
function isPrimitive_0(_this__u8e3s4) {
|
|
5302
5301
|
var tmp;
|
|
@@ -5328,26 +5327,8 @@
|
|
|
5328
5327
|
}
|
|
5329
5328
|
return tmp;
|
|
5330
5329
|
}
|
|
5331
|
-
function toIterable_0(_this__u8e3s4) {
|
|
5332
|
-
|
|
5333
|
-
if (_this__u8e3s4 instanceof Custom) {
|
|
5334
|
-
tmp = _this__u8e3s4.s29(VOID, true);
|
|
5335
|
-
} else {
|
|
5336
|
-
if (_this__u8e3s4 instanceof Any) {
|
|
5337
|
-
tmp = _this__u8e3s4.m29(true);
|
|
5338
|
-
} else {
|
|
5339
|
-
if (_this__u8e3s4 instanceof Primitive) {
|
|
5340
|
-
tmp = _this__u8e3s4.u29(VOID, true);
|
|
5341
|
-
} else {
|
|
5342
|
-
if (_this__u8e3s4 instanceof Unit) {
|
|
5343
|
-
tmp = _this__u8e3s4.q29(true);
|
|
5344
|
-
} else {
|
|
5345
|
-
noWhenBranchMatchedException();
|
|
5346
|
-
}
|
|
5347
|
-
}
|
|
5348
|
-
}
|
|
5349
|
-
}
|
|
5350
|
-
return tmp;
|
|
5330
|
+
function toIterable_0(_this__u8e3s4, isNullable) {
|
|
5331
|
+
return new Iterable(_this__u8e3s4, isNullable);
|
|
5351
5332
|
}
|
|
5352
5333
|
//region block: init
|
|
5353
5334
|
OpenApiV2Parser_instance = new OpenApiV2Parser();
|