@contractkit/openapi-to-ck 0.7.7 → 0.7.8
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/.turbo/turbo-build$colon$ci.log +6 -6
- package/.turbo/turbo-test$colon$ci.log +13 -13
- package/CHANGELOG.md +33 -0
- package/coverage/clover.xml +12 -18
- package/coverage/coverage-final.json +2 -2
- package/coverage/index.html +14 -14
- package/coverage/src/ast-to-ck.ts.html +8 -8
- package/coverage/src/circular-refs.ts.html +1 -1
- package/coverage/src/convert.ts.html +1 -1
- package/coverage/src/index.html +17 -17
- package/coverage/src/normalize.ts.html +1 -1
- package/coverage/src/paths-to-ast.ts.html +11 -47
- package/coverage/src/schema-to-ast.ts.html +1 -1
- package/coverage/src/tag-splitter.ts.html +1 -1
- package/coverage/src/warnings.ts.html +1 -1
- package/coverage/tests/helpers.ts.html +1 -1
- package/coverage/tests/index.html +1 -1
- package/dist/{chunk-YP7FWA4H.js → chunk-T2G2WRZ2.js} +6 -19
- package/dist/chunk-T2G2WRZ2.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +2 -2
- package/src/ast-to-ck.ts +5 -5
- package/src/paths-to-ast.ts +3 -15
- package/tests/ast-to-ck.test.ts +3 -3
- package/dist/chunk-YP7FWA4H.js.map +0 -1
package/coverage/index.html
CHANGED
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">81.01% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>747/
|
|
28
|
+
<span class='fraction'>747/922</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">70.
|
|
33
|
+
<span class="strong">70.41% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>526/747</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">83.55% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>696/
|
|
49
|
+
<span class='fraction'>696/833</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -80,17 +80,17 @@
|
|
|
80
80
|
</thead>
|
|
81
81
|
<tbody><tr>
|
|
82
82
|
<td class="file high" data-value="src"><a href="src/index.html">src</a></td>
|
|
83
|
-
<td data-value="80.
|
|
83
|
+
<td data-value="80.79" class="pic high">
|
|
84
84
|
<div class="chart"><div class="cover-fill" style="width: 80%"></div><div class="cover-empty" style="width: 20%"></div></div>
|
|
85
85
|
</td>
|
|
86
|
-
<td data-value="80.
|
|
87
|
-
<td data-value="
|
|
88
|
-
<td data-value="70.
|
|
89
|
-
<td data-value="
|
|
86
|
+
<td data-value="80.79" class="pct high">80.79%</td>
|
|
87
|
+
<td data-value="885" class="abs high">715/885</td>
|
|
88
|
+
<td data-value="70.7" class="pct medium">70.7%</td>
|
|
89
|
+
<td data-value="727" class="abs medium">514/727</td>
|
|
90
90
|
<td data-value="93.47" class="pct high">93.47%</td>
|
|
91
91
|
<td data-value="92" class="abs high">86/92</td>
|
|
92
|
-
<td data-value="
|
|
93
|
-
<td data-value="
|
|
92
|
+
<td data-value="83.18" class="pct high">83.18%</td>
|
|
93
|
+
<td data-value="803" class="abs high">668/803</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
117
117
|
Code coverage generated by
|
|
118
118
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
119
|
-
at 2026-05-
|
|
119
|
+
at 2026-05-08T13:02:58.721Z
|
|
120
120
|
</div>
|
|
121
121
|
<script src="prettify.js"></script>
|
|
122
122
|
<script>
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">82.
|
|
33
|
+
<span class="strong">82.7% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>153/185</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -983,8 +983,8 @@ function serializeOptions(root: CkRootNode): string | null {
|
|
|
983
983
|
<span class="cstat-no" title="statement not covered" > lines.push(`${INDENT}${INDENT}none`);</span>
|
|
984
984
|
} else {
|
|
985
985
|
const sec = <span class="cstat-no" title="statement not covered" >root.security as SecurityFields;</span>
|
|
986
|
-
<span class="cstat-no" title="statement not covered" > if (sec.
|
|
987
|
-
<span class="cstat-no" title="statement not covered" > lines.push(`${INDENT}${INDENT}
|
|
986
|
+
<span class="cstat-no" title="statement not covered" > if (sec.requireMfa !== undefined) {</span>
|
|
987
|
+
<span class="cstat-no" title="statement not covered" > lines.push(`${INDENT}${INDENT}requireMfa: ${sec.requireMfa}`);</span>
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
990
|
<span class="cstat-no" title="statement not covered" > lines.push(`${INDENT}}`);</span>
|
|
@@ -1305,10 +1305,10 @@ function serializeSecurityBlock(lines: string[], security: SecurityNode, depth:
|
|
|
1305
1305
|
}
|
|
1306
1306
|
|
|
1307
1307
|
const sec = security as SecurityFields;
|
|
1308
|
-
if (sec.
|
|
1309
|
-
const
|
|
1308
|
+
if (sec.requireMfa !== undefined) {
|
|
1309
|
+
const comment = ctx.includeComments && sec.requireMfaDescription ? <span class="branch-0 cbranch-no" title="branch not covered" >` # ${sec.requireMfaDescription}` : '</span>';
|
|
1310
1310
|
lines.push(`${indent}security: {`);
|
|
1311
|
-
lines.push(`${INDENT.repeat(depth + 1)}
|
|
1311
|
+
lines.push(`${INDENT.repeat(depth + 1)}requireMfa: ${sec.requireMfa}${comment}`);
|
|
1312
1312
|
lines.push(`${indent}}`);
|
|
1313
1313
|
} else <span class="missing-if-branch" title="else path not taken" >E</span>{
|
|
1314
1314
|
<span class="cstat-no" title="statement not covered" > lines.push(`${indent}security: {}`);</span>
|
|
@@ -1321,7 +1321,7 @@ function serializeSecurityBlock(lines: string[], security: SecurityNode, depth:
|
|
|
1321
1321
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1322
1322
|
Code coverage generated by
|
|
1323
1323
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1324
|
-
at 2026-05-
|
|
1324
|
+
at 2026-05-08T13:02:58.721Z
|
|
1325
1325
|
</div>
|
|
1326
1326
|
<script src="../prettify.js"></script>
|
|
1327
1327
|
<script>
|
|
@@ -283,7 +283,7 @@ export function extractRefName(ref: string): string | undefined {
|
|
|
283
283
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
284
284
|
Code coverage generated by
|
|
285
285
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
286
|
-
at 2026-05-
|
|
286
|
+
at 2026-05-08T13:02:58.721Z
|
|
287
287
|
</div>
|
|
288
288
|
<script src="../prettify.js"></script>
|
|
289
289
|
<script>
|
|
@@ -520,7 +520,7 @@ function updateRefs(obj: unknown, nameMap: Map<string, string>): void {
|
|
|
520
520
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
521
521
|
Code coverage generated by
|
|
522
522
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
523
|
-
at 2026-05-
|
|
523
|
+
at 2026-05-08T13:02:58.721Z
|
|
524
524
|
</div>
|
|
525
525
|
<script src="../prettify.js"></script>
|
|
526
526
|
<script>
|
package/coverage/src/index.html
CHANGED
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">80.
|
|
26
|
+
<span class="strong">80.79% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>715/
|
|
28
|
+
<span class='fraction'>715/885</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">70.
|
|
33
|
+
<span class="strong">70.7% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>514/727</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">83.18% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>668/
|
|
49
|
+
<span class='fraction'>668/803</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
</td>
|
|
86
86
|
<td data-value="90.65" class="pct high">90.65%</td>
|
|
87
87
|
<td data-value="214" class="abs high">194/214</td>
|
|
88
|
-
<td data-value="82.
|
|
89
|
-
<td data-value="
|
|
88
|
+
<td data-value="82.7" class="pct high">82.7%</td>
|
|
89
|
+
<td data-value="185" class="abs high">153/185</td>
|
|
90
90
|
<td data-value="100" class="pct high">100%</td>
|
|
91
91
|
<td data-value="18" class="abs high">18/18</td>
|
|
92
92
|
<td data-value="91.91" class="pct high">91.91%</td>
|
|
@@ -140,17 +140,17 @@
|
|
|
140
140
|
|
|
141
141
|
<tr>
|
|
142
142
|
<td class="file high" data-value="paths-to-ast.ts"><a href="paths-to-ast.ts.html">paths-to-ast.ts</a></td>
|
|
143
|
-
<td data-value="
|
|
144
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
143
|
+
<td data-value="85.03" class="pic high">
|
|
144
|
+
<div class="chart"><div class="cover-fill" style="width: 85%"></div><div class="cover-empty" style="width: 15%"></div></div>
|
|
145
145
|
</td>
|
|
146
|
-
<td data-value="
|
|
147
|
-
<td data-value="
|
|
148
|
-
<td data-value="
|
|
149
|
-
<td data-value="
|
|
146
|
+
<td data-value="85.03" class="pct high">85.03%</td>
|
|
147
|
+
<td data-value="127" class="abs high">108/127</td>
|
|
148
|
+
<td data-value="65.71" class="pct medium">65.71%</td>
|
|
149
|
+
<td data-value="105" class="abs medium">69/105</td>
|
|
150
150
|
<td data-value="100" class="pct high">100%</td>
|
|
151
151
|
<td data-value="16" class="abs high">16/16</td>
|
|
152
|
-
<td data-value="
|
|
153
|
-
<td data-value="
|
|
152
|
+
<td data-value="89.56" class="pct high">89.56%</td>
|
|
153
|
+
<td data-value="115" class="abs high">103/115</td>
|
|
154
154
|
</tr>
|
|
155
155
|
|
|
156
156
|
<tr>
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
207
207
|
Code coverage generated by
|
|
208
208
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
209
|
-
at 2026-05-
|
|
209
|
+
at 2026-05-08T13:02:58.721Z
|
|
210
210
|
</div>
|
|
211
211
|
<script src="../prettify.js"></script>
|
|
212
212
|
<script>
|
|
@@ -1147,7 +1147,7 @@ function <span class="fstat-no" title="function not covered" >encodePathSegment(
|
|
|
1147
1147
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1148
1148
|
Code coverage generated by
|
|
1149
1149
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1150
|
-
at 2026-05-
|
|
1150
|
+
at 2026-05-08T13:02:58.721Z
|
|
1151
1151
|
</div>
|
|
1152
1152
|
<script src="../prettify.js"></script>
|
|
1153
1153
|
<script>
|
|
@@ -23,16 +23,16 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">85.03% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>108/
|
|
28
|
+
<span class='fraction'>108/127</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">65.71% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>69/
|
|
35
|
+
<span class='fraction'>69/105</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">89.56% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>103/
|
|
49
|
+
<span class='fraction'>103/115</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -411,19 +411,7 @@
|
|
|
411
411
|
<a name='L346'></a><a href='#L346'>346</a>
|
|
412
412
|
<a name='L347'></a><a href='#L347'>347</a>
|
|
413
413
|
<a name='L348'></a><a href='#L348'>348</a>
|
|
414
|
-
<a name='L349'></a><a href='#L349'>349</a>
|
|
415
|
-
<a name='L350'></a><a href='#L350'>350</a>
|
|
416
|
-
<a name='L351'></a><a href='#L351'>351</a>
|
|
417
|
-
<a name='L352'></a><a href='#L352'>352</a>
|
|
418
|
-
<a name='L353'></a><a href='#L353'>353</a>
|
|
419
|
-
<a name='L354'></a><a href='#L354'>354</a>
|
|
420
|
-
<a name='L355'></a><a href='#L355'>355</a>
|
|
421
|
-
<a name='L356'></a><a href='#L356'>356</a>
|
|
422
|
-
<a name='L357'></a><a href='#L357'>357</a>
|
|
423
|
-
<a name='L358'></a><a href='#L358'>358</a>
|
|
424
|
-
<a name='L359'></a><a href='#L359'>359</a>
|
|
425
|
-
<a name='L360'></a><a href='#L360'>360</a>
|
|
426
|
-
<a name='L361'></a><a href='#L361'>361</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
414
|
+
<a name='L349'></a><a href='#L349'>349</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
427
415
|
<span class="cline-any cline-neutral"> </span>
|
|
428
416
|
<span class="cline-any cline-neutral"> </span>
|
|
429
417
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -743,18 +731,6 @@
|
|
|
743
731
|
<span class="cline-any cline-neutral"> </span>
|
|
744
732
|
<span class="cline-any cline-neutral"> </span>
|
|
745
733
|
<span class="cline-any cline-no"> </span>
|
|
746
|
-
<span class="cline-any cline-no"> </span>
|
|
747
|
-
<span class="cline-any cline-no"> </span>
|
|
748
|
-
<span class="cline-any cline-no"> </span>
|
|
749
|
-
<span class="cline-any cline-neutral"> </span>
|
|
750
|
-
<span class="cline-any cline-neutral"> </span>
|
|
751
|
-
<span class="cline-any cline-neutral"> </span>
|
|
752
|
-
<span class="cline-any cline-no"> </span>
|
|
753
|
-
<span class="cline-any cline-no"> </span>
|
|
754
|
-
<span class="cline-any cline-neutral"> </span>
|
|
755
|
-
<span class="cline-any cline-neutral"> </span>
|
|
756
|
-
<span class="cline-any cline-neutral"> </span>
|
|
757
|
-
<span class="cline-any cline-no"> </span>
|
|
758
734
|
<span class="cline-any cline-neutral"> </span>
|
|
759
735
|
<span class="cline-any cline-neutral"> </span>
|
|
760
736
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1100,21 +1076,9 @@ function convertSecurity(security: Record<string, string[]>[]): SecurityNo
|
|
|
1100
1076
|
return 'none';
|
|
1101
1077
|
}
|
|
1102
1078
|
|
|
1103
|
-
// The DSL's security model is simpler —
|
|
1104
|
-
//
|
|
1105
|
-
|
|
1106
|
-
<span class="cstat-no" title="statement not covered" > for (const requirement of security) {</span>
|
|
1107
|
-
<span class="cstat-no" title="statement not covered" > for (const scopes of Object.values(requirement)) {</span>
|
|
1108
|
-
<span class="cstat-no" title="statement not covered" > allScopes.push(...scopes);</span>
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
|
|
1112
|
-
<span class="cstat-no" title="statement not covered" > if (allScopes.length > 0) {</span>
|
|
1113
|
-
<span class="cstat-no" title="statement not covered" > return { roles: allScopes, loc: LOC };</span>
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
// Security required but no specific scopes/roles
|
|
1117
|
-
<span class="cstat-no" title="statement not covered" > return { roles: [], loc: LOC };</span>
|
|
1079
|
+
// The DSL's security model is simpler — OpenAPI scopes/roles don't map onto requireMfa,
|
|
1080
|
+
// so any non-empty security requirement is collapsed to "authenticated, no MFA".
|
|
1081
|
+
<span class="cstat-no" title="statement not covered" > return { loc: LOC };</span>
|
|
1118
1082
|
}
|
|
1119
1083
|
|
|
1120
1084
|
// ─── Helpers ──────────────────────────────────────────────────────────────
|
|
@@ -1150,7 +1114,7 @@ function encodePathSegment(s: string): string {
|
|
|
1150
1114
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1151
1115
|
Code coverage generated by
|
|
1152
1116
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1153
|
-
at 2026-05-
|
|
1117
|
+
at 2026-05-08T13:02:58.721Z
|
|
1154
1118
|
</div>
|
|
1155
1119
|
<script src="../prettify.js"></script>
|
|
1156
1120
|
<script>
|
|
@@ -1363,7 +1363,7 @@ export function sanitizeName(name: string, warnings: WarningCollector): string {
|
|
|
1363
1363
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1364
1364
|
Code coverage generated by
|
|
1365
1365
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1366
|
-
at 2026-05-
|
|
1366
|
+
at 2026-05-08T13:02:58.721Z
|
|
1367
1367
|
</div>
|
|
1368
1368
|
<script src="../prettify.js"></script>
|
|
1369
1369
|
<script>
|
|
@@ -670,7 +670,7 @@ function sanitizeFilename(tag: string): string {
|
|
|
670
670
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
671
671
|
Code coverage generated by
|
|
672
672
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
673
|
-
at 2026-05-
|
|
673
|
+
at 2026-05-08T13:02:58.721Z
|
|
674
674
|
</div>
|
|
675
675
|
<script src="../prettify.js"></script>
|
|
676
676
|
<script>
|
|
@@ -139,7 +139,7 @@ export class WarningCollector {
|
|
|
139
139
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
140
140
|
Code coverage generated by
|
|
141
141
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
142
|
-
at 2026-05-
|
|
142
|
+
at 2026-05-08T13:02:58.721Z
|
|
143
143
|
</div>
|
|
144
144
|
<script src="../prettify.js"></script>
|
|
145
145
|
<script>
|
|
@@ -544,7 +544,7 @@ export function opRoute(path: string, operations: OpOperationNode[], overrides?:
|
|
|
544
544
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
545
545
|
Code coverage generated by
|
|
546
546
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
547
|
-
at 2026-05-
|
|
547
|
+
at 2026-05-08T13:02:58.721Z
|
|
548
548
|
</div>
|
|
549
549
|
<script src="../prettify.js"></script>
|
|
550
550
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at 2026-05-
|
|
104
|
+
at 2026-05-08T13:02:58.721Z
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -1090,20 +1090,7 @@ function convertSecurity(security) {
|
|
|
1090
1090
|
if (security.length === 0) {
|
|
1091
1091
|
return "none";
|
|
1092
1092
|
}
|
|
1093
|
-
const allScopes = [];
|
|
1094
|
-
for (const requirement of security) {
|
|
1095
|
-
for (const scopes of Object.values(requirement)) {
|
|
1096
|
-
allScopes.push(...scopes);
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
if (allScopes.length > 0) {
|
|
1100
|
-
return {
|
|
1101
|
-
roles: allScopes,
|
|
1102
|
-
loc: LOC2
|
|
1103
|
-
};
|
|
1104
|
-
}
|
|
1105
1093
|
return {
|
|
1106
|
-
roles: [],
|
|
1107
1094
|
loc: LOC2
|
|
1108
1095
|
};
|
|
1109
1096
|
}
|
|
@@ -1343,8 +1330,8 @@ function serializeOptions(root) {
|
|
|
1343
1330
|
lines.push(`${INDENT}${INDENT}none`);
|
|
1344
1331
|
} else {
|
|
1345
1332
|
const sec = root.security;
|
|
1346
|
-
if (sec.
|
|
1347
|
-
lines.push(`${INDENT}${INDENT}
|
|
1333
|
+
if (sec.requireMfa !== void 0) {
|
|
1334
|
+
lines.push(`${INDENT}${INDENT}requireMfa: ${sec.requireMfa}`);
|
|
1348
1335
|
}
|
|
1349
1336
|
}
|
|
1350
1337
|
lines.push(`${INDENT}}`);
|
|
@@ -1607,10 +1594,10 @@ function serializeSecurityBlock(lines, security, depth, ctx) {
|
|
|
1607
1594
|
return;
|
|
1608
1595
|
}
|
|
1609
1596
|
const sec = security;
|
|
1610
|
-
if (sec.
|
|
1611
|
-
const
|
|
1597
|
+
if (sec.requireMfa !== void 0) {
|
|
1598
|
+
const comment = ctx.includeComments && sec.requireMfaDescription ? ` # ${sec.requireMfaDescription}` : "";
|
|
1612
1599
|
lines.push(`${indent}security: {`);
|
|
1613
|
-
lines.push(`${INDENT.repeat(depth + 1)}
|
|
1600
|
+
lines.push(`${INDENT.repeat(depth + 1)}requireMfa: ${sec.requireMfa}${comment}`);
|
|
1614
1601
|
lines.push(`${indent}}`);
|
|
1615
1602
|
} else {
|
|
1616
1603
|
lines.push(`${indent}security: {}`);
|
|
@@ -1776,4 +1763,4 @@ export {
|
|
|
1776
1763
|
serializeType,
|
|
1777
1764
|
convertOpenApiToCk
|
|
1778
1765
|
};
|
|
1779
|
-
//# sourceMappingURL=chunk-
|
|
1766
|
+
//# sourceMappingURL=chunk-T2G2WRZ2.js.map
|