@redocly/cli 2.58.1 → 2.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES +5 -5
- package/lib/chunks/{M7T6N7AK.js → 2ZE577MX.js} +1 -1
- package/lib/chunks/42YAZTOS.js +169 -0
- package/lib/chunks/{VJQJVOIN.js → 6367YNHA.js} +1 -1
- package/lib/chunks/{4U5QHDPF.js → 6CJDOMNR.js} +1 -1
- package/lib/chunks/{R2IHROCG.js → 6IOZ5LPA.js} +1 -1
- package/lib/chunks/{URZNERQS.js → 7FNYMCIP.js} +1 -1
- package/lib/chunks/{BQBQIRKC.js → 7QMY27YR.js} +1 -1
- package/lib/chunks/{IXAUPJML.js → 7W4L5LRS.js} +1 -1
- package/lib/chunks/{QK7R3ZTY.js → 7YRZIM5N.js} +1 -1
- package/lib/chunks/{K3GO5B32.js → AF5IHTRV.js} +1 -1
- package/lib/chunks/{2CAHRLJ3.js → AVEIZUZG.js} +1 -1
- package/lib/chunks/{PJXZKT3O.js → AVVEOYYF.js} +1 -1
- package/lib/chunks/{263OU3EK.js → AX7QT4NM.js} +1 -1
- package/lib/chunks/{V2PTVECL.js → B7HK2FMY.js} +1 -1
- package/lib/chunks/{KMRFAGWI.js → BEYYSLHN.js} +1 -1
- package/lib/chunks/{GACZ2YWU.js → BRJNFWLD.js} +1 -1
- package/lib/chunks/{K4HCHGLF.js → BYWCQTSQ.js} +1 -1
- package/lib/chunks/{7HGHXQBL.js → CSBPXWYJ.js} +1 -1
- package/lib/chunks/{JIN2S34E.js → CUJVZNF3.js} +1 -1
- package/lib/chunks/{XTW63JDM.js → DAQRGYND.js} +1 -1
- package/lib/chunks/{FYDETXDC.js → DBWAOHZO.js} +1 -1
- package/lib/chunks/{4Y6NCJUT.js → E2UY7KGT.js} +1 -1
- package/lib/chunks/{PZF2WPD3.js → ECKYES2X.js} +1 -1
- package/lib/chunks/{TDNSQRQT.js → F2MGZZWG.js} +1 -1
- package/lib/chunks/{6NXEK35A.js → FG62OWSV.js} +1 -1
- package/lib/chunks/{CMHJY4T2.js → G5TC4ZEC.js} +1 -1
- package/lib/chunks/{CTTC32GG.js → GEYI6VH2.js} +1 -1
- package/lib/chunks/{4R5JMLPR.js → GYVNLXXF.js} +1 -1
- package/lib/chunks/{B2Q7DOT4.js → IDDPOAAO.js} +1 -1
- package/lib/chunks/{MVXFJBMU.js → IOYEFQOG.js} +1 -1
- package/lib/chunks/{DEZGXWTS.js → IT53FBW3.js} +1 -1
- package/lib/chunks/{4WEATF5W.js → J2APNZBG.js} +1 -1
- package/lib/chunks/{7INWM6QM.js → J3SQBSQT.js} +1 -1
- package/lib/chunks/{IBYLYDST.js → J56XVM43.js} +2 -2
- package/lib/chunks/{H67F6VQQ.js → KSTWCX27.js} +1 -1
- package/lib/chunks/{ENBAORPS.js → LHKSVCO3.js} +3 -3
- package/lib/chunks/{YURX7H3N.js → MBJ2NZOC.js} +1 -1
- package/lib/chunks/{NMS2HUB3.js → MO5BUSRI.js} +1 -1
- package/lib/chunks/{ROQ7FTVG.js → NBRDOUIR.js} +1 -1
- package/lib/chunks/{SQUNMRDS.js → NC5GB4G5.js} +1 -1
- package/lib/chunks/{MSKEZAFV.js → NEOAISVJ.js} +1 -1
- package/lib/chunks/{BNNOQCQA.js → NFJLKOC3.js} +1 -1
- package/lib/chunks/{Z7JI42WA.js → NSK5BX5M.js} +1 -1
- package/lib/chunks/{ZIIE7LXR.js → NSLUCFIM.js} +1 -1
- package/lib/chunks/{K4MJBKZB.js → O553F5PN.js} +2 -2
- package/lib/chunks/{KIUUH6YY.js → OFVQSSQQ.js} +1 -1
- package/lib/chunks/{LHKIMOHX.js → OIISHIPF.js} +2 -2
- package/lib/chunks/{BWDHENL3.js → OIPFI3RD.js} +1 -1
- package/lib/chunks/P6JG7GU7.js +3156 -0
- package/lib/chunks/{YZRKJF2V.js → PCJ3RO4V.js} +1 -1
- package/lib/chunks/PHV3T4WH.js +199 -0
- package/lib/chunks/{JFQX5N4D.js → PRAHH3RT.js} +1 -1
- package/lib/chunks/{RVRYLTME.js → QB6J3FNI.js} +1 -1
- package/lib/chunks/{PI42YPSD.js → QEM3YVSB.js} +1 -1
- package/lib/chunks/{6MXKU6BN.js → QTOB5ERW.js} +1 -1
- package/lib/chunks/{6VBDC3HP.js → RS64EP6M.js} +1 -1
- package/lib/chunks/{RW4XUFPU.js → RSJYGTUN.js} +1 -1
- package/lib/chunks/{AW5K6TIG.js → RTZAVLXW.js} +1 -1
- package/lib/chunks/{PY4MYMQT.js → TJGR5OHF.js} +1 -1
- package/lib/chunks/{KRKCMWGM.js → TPR5SEOT.js} +1 -1
- package/lib/chunks/{WYZDPMVU.js → UESEVDDS.js} +1 -1
- package/lib/chunks/{LRFPMBTV.js → UQSXY6X3.js} +1 -1
- package/lib/chunks/{TGAC4ILD.js → US7OHDWQ.js} +1 -1
- package/lib/chunks/{DTH2KLMU.js → V2MDYOAB.js} +2 -2
- package/lib/chunks/{MULE7RHG.js → WK3QKCKY.js} +1 -1
- package/lib/chunks/{H4NHEW6K.js → YSCPIS6C.js} +1 -1
- package/lib/chunks/{5TPCSTMC.js → YYL4GJWR.js} +1 -1
- package/lib/chunks/{NX3RWANU.js → ZLNFQUIK.js} +1 -1
- package/lib/eject-assets/generators/cli/docs.ts +1 -1
- package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
- package/lib/eject-assets/generators/cli/index.ts +2 -2
- package/lib/eject-assets/generators/cli/render.ts +1 -1
- package/lib/eject-assets/generators/go/client.ts +1 -1
- package/lib/eject-assets/generators/go/descriptor.ts +1 -1
- package/lib/eject-assets/generators/go/index.ts +2 -2
- package/lib/eject-assets/generators/go/models.ts +1 -1
- package/lib/eject-assets/generators/go/naming.ts +1 -1
- package/lib/eject-assets/generators/go/operations.ts +1 -1
- package/lib/eject-assets/generators/go/pagination.ts +1 -1
- package/lib/eject-assets/generators/go/types.ts +1 -1
- package/lib/eject-assets/generators/mock/faker.ts +1 -1
- package/lib/eject-assets/generators/mock/index.ts +2 -2
- package/lib/eject-assets/generators/mock/render.ts +1 -1
- package/lib/eject-assets/generators/mock/sample.ts +1 -1
- package/lib/eject-assets/generators/mock/values.ts +1 -1
- package/lib/eject-assets/generators/php/client.ts +1 -1
- package/lib/eject-assets/generators/php/descriptor.ts +1 -1
- package/lib/eject-assets/generators/php/index.ts +24 -23
- package/lib/eject-assets/generators/php/models.ts +1 -1
- package/lib/eject-assets/generators/php/naming.ts +1 -1
- package/lib/eject-assets/generators/php/operations.ts +2 -2
- package/lib/eject-assets/generators/php/pagination.ts +2 -2
- package/lib/eject-assets/generators/php/types.ts +1 -1
- package/lib/eject-assets/generators/python/client.ts +1 -1
- package/lib/eject-assets/generators/python/descriptor.ts +1 -1
- package/lib/eject-assets/generators/python/index.ts +2 -2
- package/lib/eject-assets/generators/python/models.ts +1 -1
- package/lib/eject-assets/generators/python/naming.ts +1 -1
- package/lib/eject-assets/generators/python/operations.ts +1 -1
- package/lib/eject-assets/generators/python/pagination.ts +1 -1
- package/lib/eject-assets/generators/python/types.ts +1 -1
- package/lib/eject-assets/generators/swr/index.ts +2 -2
- package/lib/eject-assets/generators/swr/render.ts +1 -1
- package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
- package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
- package/lib/eject-assets/generators/transformers/index.ts +2 -2
- package/lib/eject-assets/generators/transformers/render.ts +1 -1
- package/lib/eject-assets/generators/typescript/banner.ts +1 -1
- package/lib/eject-assets/generators/typescript/client.ts +1 -1
- package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
- package/lib/eject-assets/generators/typescript/index.ts +2 -2
- package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
- package/lib/eject-assets/generators/typescript/operations.ts +1 -1
- package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
- package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
- package/lib/eject-assets/generators/typescript/types.ts +1 -1
- package/lib/eject-assets/generators/zod/index.ts +2 -2
- package/lib/eject-assets/generators/zod/schemas.ts +1 -1
- package/lib/eject-assets/skills/php-generator/SKILL.md +6 -1
- package/lib/eject-assets/skills/zod-generator/SKILL.md +1 -1
- package/lib/index.js +5 -5
- package/package.json +1 -1
- package/lib/chunks/JD3HIQIK.js +0 -193
- package/lib/chunks/Q4ESEW3O.js +0 -160
- package/lib/chunks/WDWS64N7.js +0 -3155
package/THIRD_PARTY_NOTICES
CHANGED
|
@@ -13,7 +13,7 @@ License text:
|
|
|
13
13
|
(MPL-2.0 OR Apache-2.0)
|
|
14
14
|
|
|
15
15
|
Packages:
|
|
16
|
-
dompurify@3.4.
|
|
16
|
+
dompurify@3.4.16 — copyright owner or entity authorized by
|
|
17
17
|
|
|
18
18
|
License text:
|
|
19
19
|
|
|
@@ -583,7 +583,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
583
583
|
BSD-3-Clause
|
|
584
584
|
|
|
585
585
|
Packages:
|
|
586
|
-
fast-uri@3.1.
|
|
586
|
+
fast-uri@3.1.8 — Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
|
|
587
587
|
source-map@0.6.1 — Copyright (c) 2009-2011, Mozilla Foundation and contributors
|
|
588
588
|
|
|
589
589
|
License text:
|
|
@@ -664,7 +664,7 @@ Packages:
|
|
|
664
664
|
@redocly/ajv@8.18.3 — Copyright (c) 2015-2021 Evgeny Poberezkin
|
|
665
665
|
@redocly/cli-otel@0.3.7 — Copyright 2025 Redocly Inc, all rights reserved.
|
|
666
666
|
@redocly/config@0.22.0 — Copyright 2024 Redocly Inc.
|
|
667
|
-
@redocly/config@0.
|
|
667
|
+
@redocly/config@0.62.0 — Copyright 2024 Redocly Inc.
|
|
668
668
|
@redocly/openapi-core@1.34.20
|
|
669
669
|
agent-base@7.1.4 — Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
|
|
670
670
|
ajv-formats@3.0.1 — Copyright (c) 2020 Evgeny Poberezkin
|
|
@@ -672,7 +672,7 @@ Packages:
|
|
|
672
672
|
ansi-regex@6.4.0
|
|
673
673
|
ansi-styles@4.3.0
|
|
674
674
|
balanced-match@1.0.2 — Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
|
675
|
-
brace-expansion@2.1.
|
|
675
|
+
brace-expansion@2.1.7 — Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
|
|
676
676
|
call-me-maybe@1.0.2 — Copyright (c) 2015 Eric McCarthy
|
|
677
677
|
chalk@4.1.2
|
|
678
678
|
character-entities@2.0.2
|
|
@@ -704,7 +704,7 @@ Packages:
|
|
|
704
704
|
js-levenshtein@1.1.6 — Copyright (c) 2017 Gustaf Andersson
|
|
705
705
|
js-tokens@4.0.0 — Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell
|
|
706
706
|
js-yaml@4.3.2 — Copyright (C) 2011-2015 by Vitaly Puzrin
|
|
707
|
-
js-yaml@5.
|
|
707
|
+
js-yaml@5.4.3 — Copyright (C) 2011-2015 by Vitaly Puzrin
|
|
708
708
|
json-pointer@0.6.2 — Copyright (c) 2016 Manuel Stofer
|
|
709
709
|
json-schema-traverse@1.0.0 — Copyright (c) 2017 Evgeny Poberezkin
|
|
710
710
|
jsonpointer@5.0.1 — Copyright (c) 2011-2015 Jan Lehnardt <jan@apache.org> & Marc Bachmann <https://github.com/marcbachmann>
|
|
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as F,b as ae,c as me,d as pe,e as K}from"./
|
|
7
|
+
import{a as F,b as ae,c as me,d as pe,e as K}from"./QEM3YVSB.js";import{a as ce,b as fe}from"./64G5RPLP.js";import{f as oe,g as x,h as ie,i as se,l as T,m as h,n as re}from"./NSLUCFIM.js";import{R as Z,Z as ee,_ as te,aa as u,b as U,c as I,d as O,ga as N,h as L,ia as ne,ma as b,o as d,r as S}from"./PHV3T4WH.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import*as Me from"node:fs";import{performance as We}from"perf_hooks";import*as ve from"node:fs";import*as G from"node:path";import*as le from"node:path";function A(e,t,n={}){pe(e,i=>{if(S(i)&&K(i.$ref))o(i,"$ref");else if(I(i.discriminator)&&I(i.discriminator.mapping)){let{mapping:s}=i.discriminator;for(let m of Object.keys(s)){let a=s[m];typeof a=="string"&&K(a)&&o(i.discriminator.mapping,m)}}});function o(i,s){let m=i[s].split("/"),a=m.pop(),p=m[2],r=n[p];if(!r||!r[a])return;let c=d(le.relative(t,r[a].filename));c.startsWith(".")||(c="./"+c),i[s]=c}}import*as Q from"node:path";import*as ye from"node:path";function E(e,t,n){return ye.join(e,t)+`.${n}`}var he=["schemas","messages","securitySchemes","parameters","correlationIds","messageTraits","operationTraits","serverBindings","channelBindings","operationBindings","messageBindings"];var Ae=["schemas","messages","securitySchemes","servers","serverVariables","parameters","replies","replyAddresses","correlationIds","messageTraits","operationTraits","tags","externalDocs","serverBindings","channelBindings","operationBindings","messageBindings"];function Y(e,t){return(t==="async2"?he:Ae).filter(o=>o in e)}function de({asyncapi:e,asyncapiDir:t,componentsFiles:n,ext:o,specVersion:i}){let s=e.components;if(!s)return;let m=Q.join(t,F),a=Y(s,i);for(let p of a){let r=Q.join(m,p);for(let c of Object.keys(s[p]||{})){let y=E(r,c,o),f=[];p==="schemas"&&(f=(s[p]?.[c]?.allOf||[]).map(({$ref:l})=>l).filter(L)),n[p]=n[p]||{},n[p][c]={inherits:f,filename:y}}}}import*as ue from"node:fs";import*as w from"node:path";import*as M from"node:path";function g(e,t,n){let o=M.resolve(e),i=M.resolve(t);if(i!==o&&!i.startsWith(o+M.sep))throw new b(`Refusing to write "${n}" outside the output directory.`)}import*as P from"node:fs";import*as ge from"node:path";function v(e,t,n){if(!P.existsSync(e)||!P.statSync(e).isDirectory())return;let o=P.readdirSync(e);for(let i of o){let s=ge.join(e,i);P.statSync(s).isDirectory()?v(s,t,n):t(s,e,n)}}function $(e,t,n){if(!Z(e))return;let o=T(e);A(o,t,n),h(o,e)}function Ce({channels:e,asyncapiDir:t,outDir:n,componentsFiles:o,pathSeparator:i,ext:s}){let m={};if(!e)return m;ue.mkdirSync(n,{recursive:!0});for(let a of Object.keys(e)){let p=`${w.join(n,x(a,i))}.${s}`,r=e[a];S(r)||(g(t,p,a),m[a]=p,A(r,w.dirname(p),o),h(r,p),e[a]={$ref:d(w.relative(t,p))},v(n,$,o))}return m}import*as De from"node:fs";import*as R from"node:path";import*as Oe from"node:fs";function j(e){return e!=="securitySchemes"}function V(e,t){j(t)&&Oe.mkdirSync(e,{recursive:!0})}import*as Se from"node:fs";function H(e,t){return Se.existsSync(e)&&!U(T(e),t)}import*as Ne from"node:path";function k(e,t,n){if(!(!I(e)&&!Array.isArray(e))){if(Array.isArray(e)){for(let o of e)k(o,t,n);return}for(let o of Object.keys(e)){let i=e[o];if(o==="$ref"&&typeof i=="string"&&i.startsWith("#/channels/")){let s=i.slice(11),m=s.indexOf("/"),a=m===-1?s:s.slice(0,m),p=m===-1?"":s.slice(m),r=n[a];if(r){let c=d(Ne.relative(t,r));e[o]=p?`${c}#${p}`:c}}else k(i,t,n)}}}function Fe(e,t){let n=e.components;n&&(O(n[t])&&delete n[t],O(n)&&delete e.components)}function xe({asyncapi:e,asyncapiDir:t,componentsFiles:n,channelsFiles:o,ext:i,specVersion:s}){let m=e.components;if(m){let r=function(c){let y=R.join(a,c);V(y,c);for(let f of Object.keys(m?.[c]||{})){let l=E(y,f,i);g(t,l,f);let C=m?.[c]?.[f];A(C,R.dirname(l),n),k(C,R.dirname(l),o),H(l,C)?N.warn(`warning: conflict for ${f} - file already exists with different content: ${u(l)} ... Skip.
|
|
8
8
|
`):h(C,l),delete m?.[c]?.[f]}Fe(e,c)},a=R.join(t,F);De.mkdirSync(a,{recursive:!0}),Y(m,s).forEach(r)}}import*as Ee from"node:fs";import*as _ from"node:path";function Pe({operations:e,asyncapiDir:t,outDir:n,componentsFiles:o,channelsFiles:i,pathSeparator:s,ext:m}){if(e){Ee.mkdirSync(n,{recursive:!0});for(let a of Object.keys(e)){let p=`${_.join(n,x(a,s))}.${m}`,r=e[a];S(r)||(g(t,p,a),A(r,_.dirname(p),o),k(r,_.dirname(p),i),h(r,p),e[a]={$ref:d(_.relative(t,p))},v(n,$,o))}}}function _e({asyncapi:e,asyncapiDir:t,pathSeparator:n,ext:o,specVersion:i}){ve.mkdirSync(t,{recursive:!0});let s={};de({asyncapi:e,asyncapiDir:t,componentsFiles:s,ext:o,specVersion:i});let m=e.channels,a=m?Ce({channels:m,asyncapiDir:t,outDir:G.join(t,ae),componentsFiles:s,pathSeparator:n,ext:o}):{};xe({asyncapi:e,asyncapiDir:t,componentsFiles:s,channelsFiles:a,ext:o,specVersion:i}),i==="async3"&&e.operations&&Pe({operations:e.operations,asyncapiDir:t,outDir:G.join(t,me),componentsFiles:s,channelsFiles:a,pathSeparator:n,ext:o}),A(e,t,s),h(e,G.join(t,`asyncapi.${o}`))}import*as Be from"node:fs";import*as J from"node:path";import*as ke from"node:fs";import*as B from"node:path";import*as q from"node:path";function be(e){return q.basename(e,q.extname(e))}function Te(e){return e?fe.filter(t=>j(t)&&Object.keys(e).includes(t)):[]}function $e(e,t,n,o,i){let s=[];n==="schemas"&&(s=(e?.[n]?.[o]?.allOf||[]).map(({$ref:m})=>m).filter(L)),t[n]=t[n]||{},t[n][o]={inherits:s,filename:i}}import*as X from"node:path";function we(e,t,n,o){if(!e.discriminator)return;let i=`#/${F}/schemas/${t}`,s={};for(let[r,{inherits:c,filename:y}]of Object.entries(o))if(c.indexOf(i)>-1){let f=d(X.relative(X.dirname(n),y));s[r]=f.startsWith(".")?f:"./"+f}if(O(s))return;let m=e.properties[e.discriminator.propertyName],a=m&&m.enum,p=e.discriminator.mapping=e.discriminator.mapping||{};for(let r of Object.keys(s))a&&!a.includes(r)||(p[r]&&p[r]!==s[r]&&N.warn(`warning: explicit mapping overlaps with local mapping entry ${ee(r)} at ${u(n)}. Please check it.`),p[r]=s[r])}function je(e,t){e.components&&O(e.components[t])&&delete e.components[t],O(e.components)&&delete e.components}function Re(e,t,n,o){let{components:i}=e;if(i){let a=function(r){let c=B.join(s,r);for(let y of Object.keys(i?.[r]||{})){let f=E(c,y,o);g(t,f,y),$e(i,n,r,y,f)}},p=function(r){let c=B.join(s,r);V(c,r);for(let y of Object.keys(i?.[r]||{})){let f=E(c,y,o),l=i?.[r]?.[y];A(l,B.dirname(f),n),we(l,be(f),f,n.schemas||{}),H(f,l)?N.warn(`warning: conflict for ${y} - file already exists with different content: ${u(f)} ... Skip.
|
|
9
9
|
`):h(l,f),j(r)&&delete e.components?.[r]?.[y]}je(e,r)},s=B.join(t,F);ke.mkdirSync(s,{recursive:!0});let m=Te(i);m.forEach(a),m.forEach(p)}}import*as W from"node:fs";import*as D from"node:path";function z(e,t,n,o,i,s="",m){if(e){W.mkdirSync(n,{recursive:!0});for(let a of Object.keys(e)){let p=`${D.join(n,x(a,i))}.${m}`,r=e[a];if(!S(r)){g(t,p,a);for(let c of ce){let y=r[c],f=y?.["x-code-samples"]||y?.["x-codeSamples"];if(!(!f||!Array.isArray(f)))for(let l of f){if(l.source&&l.source.$ref)continue;let C=D.join(t,"code_samples",ie(l.lang),s+x(a,i),c+se(l.lang));g(t,C,l.lang),W.mkdirSync(D.dirname(C),{recursive:!0}),W.writeFileSync(C,l.source),l.source={$ref:d(D.relative(n,C))}}}h(r,p),e[a]={$ref:d(D.relative(t,p))},v(n,$,o)}}}}function Ie(e,t,n,o){Be.mkdirSync(t,{recursive:!0});let i={};Re(e,t,i,o),z(e.paths,t,J.join(t,"paths"),i,n,void 0,o);let s=e.webhooks||e["x-webhooks"];z(s,t,J.join(t,"webhooks"),i,n,"webhook_",o),A(e,t,i),h(e,J.join(t,`openapi.${o}`))}async function Vn({argv:e,collectSpecData:t}){let n=We.now(),{api:o,outDir:i,separator:s}=e,m=re(o);if(!Me.existsSync(o))throw new b(`File ${u(o)} does not exist.`);let a=T(o);t?.({parsed:a});let p=ne(a);switch(p){case"async2":case"async3":_e({asyncapi:a,asyncapiDir:i,pathSeparator:s,ext:m,specVersion:p});break;case"oas3_0":case"oas3_1":case"oas3_2":Ie(a,i,s,m);break;case"oas2":throw new b("OpenAPI 2 is not supported by this command.");default:throw new b("File does not conform to the OpenAPI or AsyncAPI Specification. Version is not specified.")}N.info(`\u{1FA93} Document: ${u(o)} ${te("is successfully split")}
|
|
10
10
|
and all related files are saved to the directory: ${u(i)}
|