@scalar/api-reference 1.24.26 → 1.24.27
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/CHANGELOG.md
CHANGED
|
@@ -18499,15 +18499,15 @@ var t,n,r,o,i;const a=[],s=[],l=(e=>{if("string"!=typeof e)return e
|
|
|
18499
18499
|
;const p=new Set
|
|
18500
18500
|
;Object.entries((null==u?void 0:u.paths)||{}).forEach((([e,t])=>{if(!t)return
|
|
18501
18501
|
;["get","put","post","delete","options","head","patch","trace"].forEach((n=>{
|
|
18502
|
-
|
|
18503
|
-
;if("$ref"in
|
|
18504
|
-
;const
|
|
18505
|
-
;
|
|
18506
|
-
;"name"in t&&R8[t.in]&&(
|
|
18507
|
-
method:n.toUpperCase(),path:e,tags:
|
|
18508
|
-
description:
|
|
18509
|
-
summary:
|
|
18510
|
-
parameters:
|
|
18502
|
+
const r=t[n];if(!r)return
|
|
18503
|
+
;if("$ref"in r)return void a.push(`${n.toUpperCase}:${e} - Importing of $ref paths is not yet supported`)
|
|
18504
|
+
;const o={path:{},query:{},headers:{},cookies:{}}
|
|
18505
|
+
;[...t.parameters||[],...r.parameters||[]].filter((e=>e)).forEach((e=>{const t=e
|
|
18506
|
+
;"name"in t&&R8[t.in]&&(o[R8[t.in]][t.name]=t)}));const i=T8({
|
|
18507
|
+
method:n.toUpperCase(),path:e,tags:r.tags||["default"],
|
|
18508
|
+
description:r.description,operationId:r.operationId,security:r.security,
|
|
18509
|
+
summary:r.summary,externalDocs:r.externalDocs,requestBody:r.requestBody,
|
|
18510
|
+
parameters:o});i.tags.forEach((e=>p.add(e))),s.push(i)}))}))
|
|
18511
18511
|
;const h=function(e,t,n=!0){if(n){const n=t.safeParse(e)
|
|
18512
18512
|
;if(!n.success)throw console.error("Zod Schema Error"),
|
|
18513
18513
|
console.group(),n.error.issues.forEach((e=>{
|