@redocly/cli 2.52.1 → 2.53.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/lib/chunks/{M7QRMIWR.js → 2AQKABZE.js} +1 -1
- package/lib/chunks/{43FMQGIC.js → 2B6GSF4H.js} +1 -1
- package/lib/chunks/{OTGTOSNW.js → 2TX3YF62.js} +1 -1
- package/lib/chunks/{DDB52L66.js → 32VQQDJ3.js} +1 -1
- package/lib/chunks/{BT6KOTWJ.js → 37GCJWSG.js} +1 -1
- package/lib/chunks/{AOOXKVZ6.js → 3XHU56AF.js} +1 -1
- package/lib/chunks/{E44UEWCI.js → 4C4UXCK4.js} +1 -1
- package/lib/chunks/{ANMFTH7J.js → 53NH2YLN.js} +1 -1
- package/lib/chunks/{TWYMGTRR.js → 5SQYAE7S.js} +1 -1
- package/lib/chunks/{N2CTYNAN.js → 7BOICAID.js} +1 -1
- package/lib/chunks/{ZQYHXXTF.js → 7XKLR23N.js} +1 -1
- package/lib/chunks/{KTY2NT6E.js → ALSURPIO.js} +1 -1
- package/lib/chunks/{B4BGW6LX.js → CB6XVWTN.js} +1 -1
- package/lib/chunks/{XMISXGL7.js → D2C25BNK.js} +1 -1
- package/lib/chunks/{YMON5AYA.js → DKDWSUDO.js} +1 -1
- package/lib/chunks/{IBTEY2L5.js → EJQ73UTM.js} +1 -1
- package/lib/chunks/{F7TVQGKE.js → ERMGTRH2.js} +2 -2
- package/lib/chunks/{Z3H5BHVF.js → G3H6T776.js} +1 -1
- package/lib/chunks/{WNU6CBDY.js → HJB3IMKI.js} +1 -1
- package/lib/chunks/{NOI562GM.js → HVDGOLNB.js} +1 -1
- package/lib/chunks/{NIDDLLHO.js → HVX462TG.js} +1 -1
- package/lib/chunks/{P3CVK7VZ.js → ICWFBVOK.js} +1 -1
- package/lib/chunks/{O3T4DGBI.js → ILDBRWGH.js} +1 -1
- package/lib/chunks/{AGENG2WT.js → K2W62QUQ.js} +1 -1
- package/lib/chunks/{ZXPLB4LA.js → KCLCOEXJ.js} +1 -1
- package/lib/chunks/{WNOJ33NP.js → KURL24BE.js} +1 -1
- package/lib/chunks/{YDCOQ3IQ.js → ME5BLHWL.js} +1 -1
- package/lib/chunks/{JCEAJTUA.js → MYLGXOMV.js} +1 -1
- package/lib/chunks/{ZAZG6Z4J.js → NGKTQKHT.js} +1 -1
- package/lib/chunks/{KMCWK6TG.js → O24NDKZ5.js} +1 -1
- package/lib/chunks/{ZGSX24WO.js → OMLOXL7A.js} +1 -1
- package/lib/chunks/{SEECFWS6.js → OVEWHBE3.js} +1 -1
- package/lib/chunks/{GNCL6OYK.js → PVJS33DH.js} +1 -1
- package/lib/chunks/{GCM2GVOB.js → Q23LKMUF.js} +1 -1
- package/lib/chunks/{X4ZTHKYE.js → Q7NDZ7OM.js} +1 -1
- package/lib/chunks/{BWQB4GUQ.js → QFGL6EQH.js} +1 -1
- package/lib/chunks/{YVY7OG3K.js → S5TMFXGJ.js} +1 -1
- package/lib/chunks/{RUPZTXQ3.js → SP226N2A.js} +1 -1
- package/lib/chunks/{U3LG2XZJ.js → TAEKERG4.js} +1 -1
- package/lib/chunks/{4XWI7J57.js → VWXKJFAQ.js} +1 -1
- package/lib/chunks/{Z56NVT3C.js → WXEYD7NS.js} +1 -1
- package/lib/chunks/{MJSI4VHA.js → YD6ZIH2Z.js} +1 -1
- package/lib/chunks/{T5KTLVAZ.js → ZDOHFHBO.js} +1 -1
- package/lib/chunks/{MTD74D7D.js → ZHT6ML3F.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 +2 -2
- 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 +1 -1
- package/lib/eject-assets/generators/php/pagination.ts +1 -1
- 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/index.js +8 -8
- package/package.json +1 -1
|
@@ -108,7 +108,7 @@ ${e.slice(s+1)}`:c+=e.slice(o),c.slice(1)}function _k(e){let t="",r=0;for(let n=
|
|
|
108
108
|
${i.message}`,location:n.child("description")})}}}});var ml=e=>({Info:{leave(t){if(!$(e))throw new Error('"info-override" decorator should be called with an object');let{severity:r,...n}=e;Object.assign(t,n)}}});var hl=({operationIds:e})=>({Operation:{leave(t,{report:r,location:n,config:o}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');let i=t.operationId;if(e[i])try{let s=e[i];t.description=rs(vn(s,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${i}".
|
|
109
109
|
${s.message}`,location:n.child("operationId").key()})}}}});var BY="x-internal",yl=({internalFlagProperty:e=BY})=>{function t(n,o,i){let{parent:s,key:a}=o,c=!1;if(Array.isArray(n))for(let p=0;p<n.length;p++){if(M(n[p])&&o.resolve(n[p]).node?.[e]){if($(s.discriminator?.mapping))for(let u in s.discriminator.mapping)i?.[u]===n[p].$ref&&delete s.discriminator.mapping[u];n.splice(p,1),c=!0,p--}n[p]?.[e]&&(n.splice(p,1),c=!0,p--)}else if($(n))for(let p of Object.keys(n)){if(M(n[p])){let l=o.resolve(n[p]);$(l.node)&&l.node?.[e]&&(delete n[p],c=!0)}$(n[p])&&n[p]?.[e]&&(delete n[p],c=!0)}c&&(Kt(n)||al(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,o)=>{t(n,o,r)}}}};var gl=({tagNames:e})=>({Tag:{leave(t,{report:r,config:n}){if(!e)throw new Error('Parameter "tagNames" is not provided for "tag-description-override" rule');let o=e[t.name];if(o)try{t.description=rs(vn(o,n?.configPath))}catch(i){r({message:`Failed to read markdown override file for tag "${t.name}".
|
|
110
110
|
${i.message}`})}}}});var HY=["definitions","parameters","responses","securityDefinitions"],bl=()=>{let e=new Map;function t(o,i){let s=`${o}/${i}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:o,name:i})}function r(o){if(!o.startsWith("#/"))return;let[i,s]=En(o).pointer;if(!(!i||!s)&&HY.includes(i))return`${i}/${s}`}function n(o,i=new Set){let s=i.size;for(let[a,{usedIn:c,name:p,componentType:l}]of e)!c.some(f=>f!==a&&!i.has(f))&&l&&(i.add(a),delete o[l][p],e.delete(a),Kt(o[l])&&delete o[l]);return i.size>s?n(o,i):i.size}return{ref:{leave(o,{location:i,type:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(s.name)){let c=r(o.$ref);if(!c)return;let p=r(i.pointer)??i.pointer,l=e.get(c);l?l.usedIn.push(p):e.set(c,{usedIn:[p],name:a.toString()})}}},Root:{leave(o,i){let s=i.getVisitorData();s.removedCount=n(o)}},NamedSchemas:{Schema(o,{key:i}){o.allOf||t("definitions",i.toString())}},NamedParameters:{Parameter(o,{key:i}){t("parameters",i.toString())}},NamedResponses:{Response(o,{key:i}){t("responses",i.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{key:i}){t("securityDefinitions",i.toString())}},SecurityRequirement(o){for(let i of Object.keys(o)){let s=`securityDefinitions/${i}`,a=e.get(s);a?a.usedIn.push("SecurityRequirement"):e.set(s,{usedIn:["SecurityRequirement"],name:i})}}}};var HE={"operation-description-override":hl,"tag-description-override":gl,"info-description-override":fl,"info-override":ml,"remove-x-internal":yl,"filter-in":pl,"filter-out":ll,"remove-unused-components":bl};var GE=({operationIds:e})=>({Operation:{enter(t,r){let n=t.operationId;if(!n)return;let o=e[n];if(o){if(o.responses&&t.responses)for(let i of Object.keys(o.responses)){let s=KE(t.responses[i],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(o.responses[i]).forEach(a=>{let c=o.responses[i][a];s.content[a]={...s.content[a],examples:cg(vn(c,r.config?.configPath))}}),t.responses[i]=s)}if(o.request&&t.requestBody){let i=KE(t.requestBody,r.resolve);if(!i)return;i.content=i.content?i.content:{},Object.keys(o.request).forEach(s=>{let a=o.request[s];i.content[s]={...i.content[s],examples:cg(vn(a,r.config?.configPath))}}),t.requestBody=i}}}}});function KE(e,t){if(!M(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function WE(e,t){return t in e}function YE(e){if(!e.startsWith("#/components/"))return;let[t,r,n]=En(e).pointer;if(!(!r||!n))return`${r}/${n}`}var vl=()=>{let e=new Map;function t(n,o,i=!1){let s=`${n}/${o}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:n,name:o,referencesDiscriminator:i})}function r(n,o=new Set){let i=o.size;for(let[s,{usedIn:a,name:c,componentType:p,referencesDiscriminator:l}]of e)if(!(a.some(f=>f!==s&&!o.has(f))||l)&&p&&n.components&&WE(n.components,p)){o.add(s);let f=n.components[p];delete f[c],e.delete(s),Kt(f)&&delete n.components[p]}return o.size>i?r(n,o):o.size}return{ref:{leave(n,{location:o,type:i,key:s}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap","SecurityScheme"].includes(i.name)){let a=YE(n.$ref);if(!a)return;let c=YE(o.pointer)??o.pointer,p=e.get(a);p?p.usedIn.push(c):e.set(a,{usedIn:[c],name:s.toString()})}}},Root:{leave(n,o){let i=o.getVisitorData();i.removedCount=r(n),Kt(n.components)&&delete n.components}},NamedSchemas:{Schema(n,o){let i=n.allOf?.some(s=>M(s)&&o.resolve(s)?.node?.discriminator);t("schemas",o.key.toString(),i)}},NamedParameters:{Parameter(n,{key:o}){t("parameters",o.toString())}},NamedResponses:{Response(n,{key:o}){t("responses",o.toString())}},NamedExamples:{Example(n,{key:o}){t("examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{key:o}){t("requestBodies",o.toString())}},NamedHeaders:{Header(n,{key:o}){t("headers",o.toString())}},NamedMediaTypes:{MediaTypesMap(n,{key:o}){t("mediaTypes",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{key:o}){t("securitySchemes",o.toString())}},SecurityRequirement(n){for(let o of Object.keys(n)){let i=`securitySchemes/${o}`,s=e.get(i);s?s.usedIn.push("SecurityRequirement"):e.set(i,{usedIn:["SecurityRequirement"],name:o})}}}};var QE={"operation-description-override":hl,"tag-description-override":gl,"info-description-override":fl,"info-override":ml,"remove-x-internal":yl,"filter-in":pl,"filter-out":ll,"media-type-examples-override":GE,"remove-unused-components":vl};var JE={};var XE={};var ZE=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;let o=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(let i of e)o.includes(i?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${o.map(s=>`\`${s}\``).join(" or ")}.`,location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});var pg={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function e$(e){let{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&fo(n),i=o&&(c=>o.test(c.toString())),s=Array.isArray(t)&&(c=>t.includes(c.toString())),a=Array.isArray(r)&&(c=>!r.includes(c.toString()));return[i,s,a].filter(We)}function r$(e){let t=Is(Qr).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:il.has(o),runsOnValues:sl.has(o)})),r=t.find(o=>o.runsOnKeys&&!o.runsOnValues),n=t.find(o=>o.runsOnValues&&!o.runsOnKeys);if(n&&!e.subject.property)throw new Error(`The '${n.name}' assertion can't be used on all keys. Please provide a single property.`);if(r&&e.subject.property)throw new Error(`The '${r.name}' assertion can't be used on properties. Please remove the 'property' key.`);return t}function n$({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function o$(e,t,r){let n=n$(e),o=[];for(let i of t)if(n.length)for(let s of n)o.push(t$({assert:i,ctx:r,assertionProperty:s}));else o.push(t$({assert:i,ctx:r}));return o.flat()}function i$(e,t){let r=e$(e.subject),n=r.length?(c,p)=>!r.every(l=>l(p)):void 0,o={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return o;let i={},s=i,a=e.where;for(let c=0;c<a.length;c++){let p=a[c];if(!Me(p.subject?.type))throw new Error(`${e.assertionId} -> where -> [${c}]: 'type' (String) is required`);if(!$(p.assertions))throw new Error(`${e.assertionId} -> where -> [${c}]: 'assertions' (Object) is required`);let l=e$(p.subject),u=r$(p),f=(m,h,y)=>!l.every(g=>g(h))||!!o$(p,u,{...y,node:m}).length,d={...(l.length||u.length)&&{skip:f}};p.subject.type===e.subject.type&&c===a.length-1?o[e.subject.type]={enter:t,...d.skip&&{skip:d.skip}||n&&{skip:(m,h,y)=>!!(d.skip?.(m,h,y)||n?.(m,h))}}:i=i[p.subject?.type]=d}return i[e.subject.type]=o[e.subject.type],s}function s$(e,t){return(r,n)=>{let o=n$(t),i=`${W.blue(e)} failed because the ${W.blue(t.subject.type)} ${W.blue(o.join(", "))} didn't meet the assertions: ${pg.problems}`.replace(/ +/g," "),s=o$(t,r$(t),{...n,node:r});if(s.length)for(let a of KY(s)){let c=t.message||i,l={problems:lg(a),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:ug(n.location.source.absoluteRef)};n.report({message:dg(c,l),location:GY(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function KY(e){let t={};for(let r of e){if(!r.location)continue;let n=r.location.absolutePointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function GY(e){return e.length?e[0].location:void 0}function lg(e){return e.length===1?e[0].message??"":e.map(t=>`
|
|
111
|
-
- ${t.message??""}`).join("")}function ug(e){return oe(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function dg(e,t){let r=e;for(let n of Object.keys(pg)){let o=pg[n],i=t[n];o&&(r=r.split(o).join(i))}return r}function t$({assert:e,ctx:t,assertionProperty:r}){let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=M(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],i=t.rawNode[r],s=n.child(r);return Qr[e.name](o,e.conditions,{...t,baseLocation:s,rawValue:i})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return Qr[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var Rt=e=>{let t=[],r=Object.values(e).filter(n=>$(n));for(let[n,o]of r.entries()){if(!Me(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);if(!$(o.assertions))throw new Error(`${o.assertionId}: 'assertions' (Object) is required`);let i=s$(o.assertionId,o),s=i$(o,i);t.push(s)}return t};function WY(e){return $(e)||Array.isArray(e)}var Jr=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;let n=new Set,o=[];for(let[i,s]of e.enum.entries()){let a=WY(s);(a?o.some(p=>Ht(p,s)):n.has(s))&&t({message:`Duplicated enum value found: '${a?JSON.stringify(s):s}'.`,location:r.child(["enum",i]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),a?o.push(s):n.add(s)}}});var p$=qr(c$(),1);var Fo=(e,t,r)=>{if(M(e)){let n=t.resolve(e,r?.source.absoluteRef);return n?{schema:n.node,location:n.location,chain:n.chain}:{schema:void 0,location:r}}return{schema:e,location:r}},fg=(e,t,r,n,o)=>!!(e.properties&&Ue(e.properties,t)!==void 0||e.allOf?.some(i=>xn(i,t,r,n,o))||uo(e.anyOf)&&e.anyOf.every(i=>xn(i,t,r,new Set(n),o))||uo(e.oneOf)&&e.oneOf.every(i=>xn(i,t,r,new Set(n),o))),xn=(e,t,r,n=new Set,o)=>{if(M(e)&&fg(e,t,r,n,o))return!0;let{schema:i,location:s,chain:a}=Fo(e,r,o);if(!i)return!1;if(!n.has(i)&&(n.add(i),fg(i,t,r,n,s)))return!0;for(let c of a??[])if(!(!$(c.node)||n.has(c.node))&&(n.add(c.node),fg(c.node,t,r,n,c.location)))return!0;return!1};function os(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function ns(e){let t=e?.security;return Array.isArray(t)&&t.length>0}function xl(e,t,r){if(ns(e))return!0;if(!Array.isArray(e?.traits))return!1;for(let n of e.traits){let o=M(n)?t(n,r).node:n;if(ns(o))return!0}return!1}function is(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return $(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function zo(e,t){return`${e} object should contain \`${t}\` field.`}function YY(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function l$(e,t){return`${e} object \`${t}\` must be non-empty string.`}function ur({fieldName:e,value:t,ctx:r,reference:n}){$(t)&&(t[e]===void 0?r.report({message:zo(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:l$(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function u$({fieldNames:e,value:t,ctx:r,reference:n}){if($(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:YY(r.type.name,e),location:r.location.key(),reference:n});for(let o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:l$(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function Vo(e,t){if(e===null)return t;if(typeof e!="string"||!t.length)return[];let r=[];for(let n=0;n<t.length;n++){let o=(0,p$.default)(e,t[n]);o<4&&r.push({distance:o,variant:t[n]})}return r.sort((n,o)=>n.distance-o.distance),r.map(n=>n.variant)}function Sl(e){if($(e)){if(rt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(rt(e.value))return{value:e.value,field:"value"}}}function Kn({example:e,schema:t,options:r,reference:n}){let{location:o,ctx:i,validator:s,allowAdditionalProperties:a,ajvContext:c}=r,{resolve:p,location:l,report:u,specVersion:f}=i;try{let{valid:d,errors:m}=s.validate(e,t,{schemaLoc:l.child("schema"),instancePath:o.pointer,resolve:p,allowAdditionalProperties:a,ajvContext:c,specVersion:f});if(!d)for(let h of m)u({message:`Example value must conform to the schema: ${h.message}.`,location:{...new ft(o.source,h.instancePath),reportOnKey:h.keyword==="unevaluatedProperties"||h.keyword==="additionalProperties"},from:l,suggest:h.suggest,reference:n})}catch(d){if(d.message==="discriminator: requires oneOf or anyOf composite keyword")return;u({message:`Example validation errored: ${d.message}.`,location:l.child("schema"),from:l,reference:n})}}var QY=10;function mg(e,t,r,n,{report:o,location:i},s){if(e&&!e.includes(t)){let a=e.length>QY?`\`${r}\` "${t}" is not a valid value.${s?` See the supported values: ${s}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(c=>`"${c}"`).join(", ")}.`;o({location:i,message:a,from:n,suggest:Vo(t,e)})}}function ss({responseCodes:e,codeRange:t,report:r,reference:n}){let o=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(s=>t==="2XX"&&s==="default"||o.test(s))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function Ja(e,t){return t?e.name.toLowerCase():e.name}var Xr=()=>({Schema(e,{report:t,location:r}){if(!(e.enum&&!Array.isArray(e.enum))){if(e.enum&&e.type&&!Array.isArray(e.type)){let n=e.enum.filter(o=>!is(o,e.type,e.nullable));for(let o of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${os(o)}".`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}if(e.enum&&e.type&&Array.isArray(e.type)){let n={};for(let o of e.enum){n[o]=[];for(let i of e.type)is(o,i,e.nullable)||n[o].push(i);n[o].length!==e.type.length&&delete n[o]}for(let o of Object.keys(n))t({message:`Enum value \`${o}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}}});var Gn=()=>({Schema(e,{report:t,location:r}){typeof e.maximum=="number"&&typeof e.exclusiveMaximum=="number"&&t({message:"Schema should not have both `maximum` and `exclusiveMaximum`. Use one or the other.",location:r.child(["exclusiveMaximum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"}),typeof e.minimum=="number"&&typeof e.exclusiveMinimum=="number"&&t({message:"Schema should not have both `minimum` and `exclusiveMinimum`. Use one or the other.",location:r.child(["exclusiveMinimum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"})}});var Zr=()=>{let e=[],t=new Set,r=(n,o,i)=>{if(uo(n.required))for(let[s,a]of n.required.entries())xn(n,a,i,new Set,o)||i.report({message:`Required property '${a}' is not defined.`,location:o.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})};return{ref:{leave(n,o,i){if(o.type.name!=="Schema")return;let s=[{node:n,location:o.location},...i.chain??[]];for(let{node:a,location:c}of s)!$(a)||t.has(a)||(t.add(a),r(a,c,o))}},Schema:{leave(n){e.pop()},enter(n,o){if(e.push(n),!uo(n.required))return;let i=(c,p)=>{let l=u=>Fo(u,o).schema===p;return!!(c.allOf?.some(l)||c.anyOf?.some(l)||c.oneOf?.some(l))},s=(c,p)=>{if(c<0)return;let l=e[c];return i(l,p)?s(c-1,l)??l:void 0},a=s(e.length-2,n);for(let[c,p]of n.required.entries())!xn(n,p,o)&&!xn(a,p,o)&&o.report({message:`Required property '${p}' is not defined.`,location:o.location.child(["required",c]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}};var en=()=>({Schema(e,{report:t,location:r}){e.type==="object"&&e.items&&t({message:"Schema type mismatch: 'object' type should not contain 'items' field.",location:r.child("items"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"})}});var pt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&Bo(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(let o of Object.keys(e)){let i=r({$ref:e[o]});if(i.node!==void 0)return;Bo(i,t,n.child(o))}}});function Bo(e,t,r){let n=e.error;n instanceof zr&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});let o=e.error?.message;t({location:r,message:`Can't resolve $ref${o?": "+o:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}var tn=()=>({any(e,{report:t,location:r}){typeof e.description=="string"&&(/<script\b/i.test(e.description)&&t({message:"Markdown descriptions must not contain '<script>' tags.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/<[a-z][^>]*\bon[a-z]+\s*=/i.test(e.description)&&t({message:"Markdown descriptions must not contain HTML event handler attributes.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/(?:\]\(\s*|\b(?:href|src)\s*=\s*["']?\s*)javascript:/i.test(e.description)&&t({message:"Markdown descriptions must not contain 'javascript:' URLs.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}))}});var lt=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:i,resolve:s,ignoreNextVisitorsOnNode:a}){let c=os(e),p=o!==n?o:void 0;if(r.items){c!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${c}\``,from:p}),a());return}else if(c!=="object"){r!==yr&&t({message:`Expected type \`${r.name}\` (object) but got \`${c}\``,from:p}),a();return}let l=typeof r.required=="function"?r.required(e,i):r.required;for(let d of l||[])e.hasOwnProperty(d)||t({message:`The field \`${d}\` must be present on this level.`,from:p,location:[{reportOnKey:!0}]});let u=r.allowed?.(e);if(u&&$(e))for(let d in e)u.includes(d)||r.extensionsPrefix&&d.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(d)||t({message:`The field \`${d}\` is not allowed here.`,from:p,location:n.child([d]).key()});let f=r.requiredOneOf||null;if(f){let d=!1;for(let m of f||[])e.hasOwnProperty(m)&&(d=!0);d||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:p,location:[{reportOnKey:!0}]})}for(let d of Object.keys(e)){let m=n.child([d]),h=e[d],y=Ue(r.properties,d);if(y===void 0&&(y=r.additionalProperties),typeof y=="function"&&(y=y(h,d)),Xt(y))continue;let g=y,b=os(h);if(g===void 0){if(d.startsWith("x-"))continue;t({message:`Property \`${d}\` is not expected here.`,suggest:Vo(d,Object.keys(r.properties)),from:p,location:m.key()});continue}if(g!==null){if(g.resolvable!==!1&&M(h)&&(h=s(h).node),g.items&&g.items?.enum&&Array.isArray(h))for(let v=0;v<h.length;v++)mg(g.items?.enum,h[v],d,p,{report:t,location:n.child([d,v])},g.items?.documentationLink);if(g.enum)mg(g.enum,h,d,p,{report:t,location:n.child([d])},g.documentationLink);else if(g.type&&!is(h,g.type,!1))t({message:`Expected type \`${g.type}\` but got \`${b}\`.`,from:p,location:m}),a();else if(b==="array"&&g.items?.type){let v=g.items?.type;for(let w=0;w<h.length;w++){let S=h[w];is(S,v,!1)||t({message:`Expected type \`${v}\` but got \`${os(S)}\`.`,from:p,location:m.child([w])})}}typeof g.minimum=="number"&&g.minimum>e[d]&&t({message:`The value of the ${d} field must be greater than or equal to ${g.minimum}`,from:p,location:n.child([d])})}}}});var d$=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||$(e.type)&&e.type.type==="xpath")&&t({message:"The `xpath` type criteria is not supported by Respect.",location:r.child(["type"]),reference:"https://redocly.com/docs/cli/rules/respect/no-criteria-xpath"})}}});var f$=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(let o of t){let i=Ue(o,"scheme"),s=Ue(o,"schemeName");i&&s&&r({message:"`x-security` item must not contain both `scheme` and `schemeName`.",location:n.child(["x-security",t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-both-scheme-and-scheme-name"})}}return{Workflow:{enter(t,r){e(t?.["x-security"],r)}},Step:{enter(t,r){e(t?.["x-security"],r)}}}};var m$=()=>({Step:{enter(e,{report:t,location:r}){if(!e?.["x-operation"])return;let o=e?.["x-security"];if(o)for(let i of o)"schemeName"in i&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",o.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-scheme-name-without-openapi"})}}});var h$=()=>{let e=0;return{SourceDescriptions:{enter(t){e=Array.isArray(t)?t.length:0}},Workflow:{leave(t,{report:r,location:n}){let o=t?.["x-security"];if(!(!o||e<=1)){for(let i of o)if("schemeName"in i){let s=i.schemeName;typeof s=="string"&&s.startsWith("$sourceDescriptions.")||r({message:"When multiple `sourceDescriptions` exist, `workflow.x-security.schemeName` must be a reference to a source description (e.g. `$sourceDescriptions.{name}.{schemeName}`)",location:n.child(["x-security",o.indexOf(i),"schemeName"]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-name-reference"})}}}}}};var JY={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function y$(e,{report:t,location:r}){if(e)for(let n of e){if("schemeName"in n)continue;let{scheme:o,values:i}=n,s=o?.type==="http"?o.scheme:o?.type,a=o?.type==="http"?s?.toLowerCase():s;if(s==="mutualTLS"){Y.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let c=JY[a];if(c)for(let p of c)(!i||!(p in i))&&t({message:`The \`${p}\` is required when using the ${s} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"});else t({message:`The \`${s}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"})}}var g$=()=>({Step:{enter(e,t){y$(e?.["x-security"],t)}},Workflow:{enter(e,t){y$(e?.["x-security"],t)}}});var b$=()=>({FailureActionObject:{enter(e,{report:t,location:r}){let n=e?.criteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}},SuccessActionObject:{enter(e,{report:t,location:r}){let n=e?.criteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}},Step:{enter(e,{report:t,location:r}){let n=e?.successCriteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}}});var v$=()=>{let e=new Map,t=new Map,r=[];function n({value:s,report:a,location:c,path:p,definedWorkflowOutputs:l}){let u=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,f;for(;(f=u.exec(s))!==null;){let[d,m,h]=f,y=l.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in workflow "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Workflow "${m}" referenced in runtime expression "${d}" is not defined or has no outputs.`,location:c.child(p)})}}function o({value:s,report:a,location:c,path:p,definedStepOutputs:l}){let u=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,f;for(;(f=u.exec(s))!==null;){let[d,m,h]=f,y=l.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in step "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Step "${m}" referenced in runtime expression "${d}" is not defined or has no outputs.`,location:c.child(p)})}}function i(s,a,c=[]){if(typeof s=="string")n({value:s,report:a.report,location:a.location,path:c,definedWorkflowOutputs:e}),o({value:s,report:a.report,location:a.location,path:c,definedStepOutputs:t});else if($(s)||Array.isArray(s))for(let[p,l]of Object.entries(s))i(l,a,[...c,p])}return{Step:{enter(s,{report:a,location:c}){s.outputs&&t.set(s.stepId,Object.keys(s.outputs))}},Workflow:{enter(s,{report:a,location:c}){s.outputs&&e.set(s.workflowId,Object.keys(s.outputs))}},Parameters:{enter(s,a){r.push(()=>{i(s,a)})}},RequestBody:{enter(s,a){r.push(()=>{i(s,a)})}},CriterionObject:{enter(s,a){r.push(()=>{i(s.condition,a)})}},Outputs:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedSecurity:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedOperation:{enter(s,a){r.push(()=>{i(s,a)})}},Root:{leave(){for(let s of r)s()}}}};var x$=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.has(o?.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.add(o?.name??o?.reference)}}});var S$=()=>{let e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(let o of t.replacements)e.has(o.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(o),"target"]),reference:"https://redocly.com/docs/cli/rules/arazzo/requestbody-replacements-unique"}),e.add(o.target)}}}}};var w$=()=>{let e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(let o of t)e.has(o.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-name-unique"}),e.add(o.name)}}}};var _$=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var XY=["x-operation","operationId","operationPath","channelPath","workflowId"],P$=()=>({Step:{enter(e,{report:t,location:r}){let n=XY.filter(o=>Object.hasOwn(e,o));n.length>1&&t({message:`A step can only use one of the following mutually exclusive fields: ${n.map(o=>`\`${o}\``).join(", ")}.`,location:n.map(o=>r.child([o]).key()),reference:"https://redocly.com/docs/cli/rules/arazzo/spec-step-mutually-exclusive-fields"})}}});var E$=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.add(o.name??o.reference)}}});var $$=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.add(o?.name??o?.reference)}}});var A$=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;let n=new Set;for(let o of e.steps){if(!o.stepId)return;n.has(o.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/stepid-unique"}),n.add(o.stepId)}}}});var T$=()=>{let e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(let o of n)t.add(o.name)}},Workflows:{enter(n){for(let o of n)r.add(o.workflowId)}},Workflow:{leave(n,{report:o,location:i}){if(n.dependsOn)for(let s of n.dependsOn){if(s.startsWith("$sourceDescriptions.")){let a=s.split(".")[1];t.has(a)||o({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!s.startsWith("$sourceDescriptions")&&!r.has(s)&&o({message:`Workflow ${s} must be defined in workflows.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.has(s)&&o({message:"Every workflow in dependsOn must be unique.",location:i.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.add(s)}}}}};var R$=()=>{let e=new Set;return{Workflow:{enter(t,{report:r,location:n}){t.workflowId&&(e.has(t.workflowId)&&r({message:"Every workflow must have a unique `workflowId`.",location:n.child([t.workflowId]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflowid-unique"}),e.add(t.workflowId))}}}};var O$={assertions:Rt,"criteria-unique":b$,"no-criteria-xpath":d$,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-required-schema-properties-undefined":Zr,"no-schema-type-mismatch":en,"no-unresolved-refs":pt,"no-x-security-both-scheme-and-scheme-name":f$,"no-x-security-scheme-name-without-openapi":m$,"outputs-defined":v$,"parameters-unique":x$,"requestBody-replacements-unique":S$,"sourceDescription-name-unique":w$,"sourceDescription-type":ZE,"sourceDescriptions-not-empty":_$,"spec-step-mutually-exclusive-fields":P$,"step-onFailure-unique":E$,"step-onSuccess-unique":$$,"stepId-unique":A$,struct:lt,"workflow-dependsOn":T$,"workflowId-unique":R$,"x-security-scheme-name-reference":h$,"x-security-scheme-required-values":g$},k$={};var dr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:zo("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}});var I$=/^1\.0\.\d+(-.+)?$/;function Xa(e){return e.startsWith("oas3")?"oas3":e==="oas2"?"oas2":e==="async2"?"async2":e==="async3"?"async3":e==="arazzo1"||e==="arazzo1_1"?"arazzo1":e==="overlay1"?"overlay1":e==="openrpc1"?"openrpc1":e==="graphql"?"graphql":"oas3"}function Sn(e){if(!$(e))throw new Error(`Document must be JSON object, got ${typeof e}`);if(typeof e.openrpc=="string"&&e.openrpc.startsWith("1."))return"openrpc1";if(e.openapi&&typeof e.openapi!="string")throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof e.openapi}"`);if(typeof e.openapi=="string"&&e.openapi.startsWith("3.0."))return"oas3_0";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.1."))return"oas3_1";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.2."))return"oas3_2";if(e.swagger&&e.swagger==="2.0")return"oas2";if(e.openapi||e.swagger)throw new Error(`Unsupported OpenAPI version: ${e.openapi||e.swagger}`);if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("2."))return"async2";if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("3."))return"async3";if(e.asyncapi)throw new Error(`Unsupported AsyncAPI version: ${e.asyncapi}`);if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.0."))return"arazzo1";if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.1."))return"arazzo1_1";if(e.arazzo)throw new Error(`Unsupported Arazzo version: ${e.arazzo}`);if(typeof e.overlay=="string"&&I$.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}var Wn=()=>{let e;return{Root:{enter(t){e=Sn(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?u$({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):ur({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}};var Yn=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let o=Ja(r,e);t.has(o)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(o)}}}};var Qn=()=>({Root:{PathItem:{Operation(e,t){ur({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function ZY(e,t,r){if("flows"in e&&e.flows){let{node:n,location:o}=M(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=M(a)?t(a,i).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}var as=e=>{let t=new Map,r=[];return{Root:{leave(n,{report:o}){for(let{schemeName:i,scopes:s,location:a}of r){let c=t.get(i);if(c?.type==="oauth2"){if(e.requireScopes&&s.length===0){o({message:`The "${i}" security requirement must list at least one scope.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}for(let p=0;p<s.length;p++){let l=s[p];c.definedScopes.includes(l)||o({message:`The "${l}" scope is not defined in the "${i}" security scheme.`,location:a.child([p]),suggest:Vo(l,c.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:o,resolve:i,location:s}){t.set(o.toString(),{type:n.type,definedScopes:n.type==="oauth2"?ZY(n,i,s):[]})},SecurityRequirement(n,{location:o}){for(let[i,s]of Object.entries(n))r.push({schemeName:i,scopes:s||[],location:o.child([i])})}}};var Jn=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name!=="PathItem")for(let o of Object.keys(e))o!=="$ref"&&t({message:`Property \`${o}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}});var Xn=()=>({Tag(e,t){ur({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}});var Zn=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)Ja(t.tags[o],e)>Ja(t.tags[o+1],e)&&r({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",o]),reference:"https://redocly.com/docs/cli/rules/oas/tags-alphabetical"})}});var C$=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(o=>o!=="").every(o=>/^{.+}$/.test(o)||/^[a-z0-9-.]+$/.test(o))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}});var q$=()=>({Channel(e,{report:t,key:r,location:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}});var N$="https://redocly.com/docs/cli/rules/async/security-defined",M$=()=>{let e=new Map,t=new Map,r=[],n,o=!1;return{Root:{leave(i,{report:s}){for(let[c,p]of e.entries())if(!p.defined)for(let l of p.from)s({message:`There is no \`${c}\` security scheme defined.`,location:l.key(),reference:N$});let a=[...t.keys()];for(let{location:c,channelServers:p}of r){let l=p??a;l.length>0&&l.every(f=>t.get(f))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:N$})}}},SecurityScheme(i,{key:s}){i!=null&&e.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=e.get(a),p=s.child([a]);c?c.from.push(p):e.set(a,{from:[p]})}},Components:{enter(){o=!0},leave(){o=!1}},Server(i,{key:s}){o||t.set(s.toString(),ns(i))},Channel:{skip(){return o},enter(i){n=Array.isArray(i?.servers)&&i.servers.length>0?i.servers:void 0},Operation(i,{location:s,resolve:a}){xl(i,a)||r.push({location:s,channelServers:n})}}}};var j$={struct:lt,"no-unresolved-refs":pt,assertions:Rt,"info-contact":dr,"info-license-strict":Wn,"operation-operationId":Qn,"security-defined":M$,"channels-kebab-case":C$,"no-channel-trailing-slash":q$,"tag-description":Xn,"tags-alphabetical":Zn,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn,"no-required-schema-properties-undefined":Zr,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-schema-type-mismatch":en,"security-scopes-defined":as,"spec-ref-siblings":Jn},D$={};var L$=()=>({Channel(e,{report:t}){(e.address||"").split(/[/.:]/).filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${e.address}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}});var U$=()=>({Channel(e,{report:t,location:r}){e?.address?.endsWith("/")&&e?.address!=="/"&&t({message:`\`${e.address}\` should not have a trailing slash.`,location:r.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}});var F$="#/components/securitySchemes/",eQ="#/components/",hg="https://redocly.com/docs/cli/rules/async/security-defined";function tQ(e){let t=e.indexOf("#");return t===-1?e:e.slice(t)}function rQ(e){if(!e.startsWith(F$))return!1;let t=e.slice(F$.length);return t!==""&&!t.includes("/")}var z$=()=>{let e=[],t,r,n,o,i,s=(a,c,p)=>{let l=a.channel,u=M(l)?c(l,p):void 0,d=(M(l)?u?.node:l)?.servers,m,h;return d&&d.length>0?(m=d,h=u?.location?.source.absoluteRef??p):(m=t?Object.values(t):[],h=r),m.length===0?!1:m.every(y=>{let g=M(y)?c(y,h).node:y;return ns(g)})};return{Root:{enter(a,{location:c,resolve:p}){let l=a?.servers;if(M(l)){let f=p(l);t=f.node??void 0,r=f.location?.source.absoluteRef}else t=l,r=void 0;let u=a?.operations;if(M(u)){let f=p(u);n=f.node??void 0,o=f.location?.source.absoluteRef,i=f.location}else n=u,o=void 0,i=c.child(["operations"])},leave(a,{report:c,resolve:p}){for(let l of e){if((l.local||l.refPointer.startsWith(eQ))&&!rQ(l.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:l.location.key(),reference:hg});continue}l.resolved||c({message:`There is no \`${l.name}\` security scheme defined.`,location:l.location.key(),reference:hg})}if(n&&i){let l=i;for(let[u,f]of Object.entries(n)){let d,m;if(M(f)){let h=p(f,o);d=h.node,m=h.location?.source.absoluteRef}else d=f,m=o;d&&(xl(d,p,m)||s(d,p,m)||c({message:"Every operation should have security defined on it.",location:l.child([u]).key(),reference:hg}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:p}){if(a)for(let l=0;l<a.length;l++){let u=a[l];if(!M(u))continue;let f=c.child([l]),d=p(u),m=tQ(u.$ref),h=m.split("/").pop()??u.$ref;e.push({location:f,name:h,refPointer:m,resolved:d.node!=null,local:u.$ref.startsWith("#")})}}}}};function nQ(e,t,r){if(!e.flows)return[];let{node:n,location:o}=M(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=M(a)?t(a,i).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}var V$=e=>{let t=new Map;return{SecuritySchemeList(r,{resolve:n,location:o}){for(let i=0;i<r.length;i++){let s=r[i],a=M(s)?n(s):{node:s,location:o.child([i])};!a.node||!a.location||t.set(a.location.absolutePointer,{scheme:a.node,location:a.location,availableScopes:a.node.type==="oauth2"?nQ(a.node,n,a.location):[]})}},Root:{leave(r,{report:n}){for(let{scheme:o,location:i,availableScopes:s}of t.values()){if(o.type!=="oauth2")continue;if(e.requireScopes&&!o.scopes?.length){n({message:"The security scheme must list at least one scope.",location:i.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}let a=o.scopes||[];for(let c=0;c<a.length;c++){let p=a[c];s.includes(p)||n({message:`The "${p}" scope is not defined in the available scopes of the security scheme flows.`,location:i.child(["scopes",c]),suggest:Vo(p,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}};var B$={struct:lt,"no-unresolved-refs":pt,assertions:Rt,"info-contact":dr,"info-license-strict":Wn,"operation-operationId":Qn,"security-defined":z$,"channels-kebab-case":L$,"no-channel-trailing-slash":U$,"tag-description":Xn,"tags-alphabetical":Zn,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn,"no-required-schema-properties-undefined":Zr,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-schema-type-mismatch":en,"security-scopes-defined":V$,"spec-ref-siblings":Jn},H$={};function G$(e){return Is(Qr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:il.has(t),runsOnValues:sl.has(t)}))}var W$=e=>{let t=Object.values(e).filter($),r=[];for(let n of t){if(n.severity==="off")continue;let o=n.subject?.type;if(!o)continue;if(!$(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);let i=G$(n),s=oQ(n);r.push({[o]:(a,c)=>{iQ(a,c,s)&&sQ(a,c,n,i)}})}return r};function oQ(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!Me(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!$(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:G$(t)}}):[]}function iQ(e,t,r){let n=r,o=r.at(-1);if(o&&o.kind===e.kind){if(!K$(e,o,t))return!1;n=r.slice(0,-1)}let i=0;for(let s of n){let a=!1;for(;i<t.ancestors.length;){let c=t.ancestors[i++];if(c.kind===s.kind&&K$(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function K$(e,t,r){let{value:n}=Y$(e,t.definition.subject.property),o=new ft(r.source,"#/");return t.assertsToApply.every(i=>Qr[i.name](n,i.conditions,{baseLocation:o,rawValue:n}).length===0)}function sQ(e,t,r,n){let o=Q$(r.subject.property),{value:i,locNode:s}=Y$(e,r.subject.property),a=new ft(t.source,"#/"),c=n.flatMap(l=>Qr[l.name](i,l.conditions,{baseLocation:a,rawValue:i}));if(!c.length)return;let p=`${W.blue(r.assertionId)} failed because the ${W.blue(r.subject.type)} ${W.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:dg(r.message??p,{problems:lg(c),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:ug(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function yg(e){return e?.name?.value!==void 0?{value:e.name.value,locNode:e.name}:e?.value!==void 0?{value:e.value,locNode:e}:{value:e,locNode:e}}function Y$(e,t){let r=Q$(t);if(r===void 0)return yg(e);let n=e[r];if(Array.isArray(n))return{value:n.map(i=>yg(i).value),locNode:e};let o=yg(n);return{value:o.value,locNode:aQ(o.locNode)?o.locNode:e}}function aQ(e){return $(e)&&"kind"in e}function Q$(e){return Array.isArray(e)?e[0]:e}var cQ=["Query","Mutation","Subscription"];function pQ(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}var J$=()=>{let e=new Map,t=new Set,r=new Set,n=!1,o=l=>t.add(pQ(l)),i=l=>e.set(l.name.value,l.name),s=l=>{for(let u of l.interfaces??[])o(u);for(let u of l.fields??[]){o(u.type);for(let f of u.arguments??[])o(f.type)}},a=l=>{for(let u of l.types??[])o(u)},c=l=>{for(let u of l.fields??[])o(u.type)},p=l=>{for(let u of l.operationTypes??[])r.add(u.type.name.value)};return{SchemaDefinition:l=>{n=!0,p(l)},SchemaExtension:p,DirectiveDefinition:l=>{for(let u of l.arguments??[])o(u.type)},ObjectTypeDefinition:l=>{i(l),s(l)},ObjectTypeExtension:s,InterfaceTypeDefinition:l=>{i(l),s(l)},InterfaceTypeExtension:s,UnionTypeDefinition:l=>{i(l),a(l)},UnionTypeExtension:a,InputObjectTypeDefinition:l=>{i(l),c(l)},InputObjectTypeExtension:c,EnumTypeDefinition:i,ScalarTypeDefinition:i,Document:{leave:(l,u)=>{if(!n)for(let f of cQ)e.has(f)&&r.add(f);if(r.size!==0)for(let[f,d]of e)t.has(f)||r.has(f)||u.report({message:`Type \`${f}\` is declared but never used.`,node:d})}}}};var cs=qr(aO(),1),X$=()=>({Document:{enter:(e,t)=>{let r;try{r=(0,cs.buildASTSchema)(e,{assumeValidSDL:!1})}catch(n){lQ(n,t);return}for(let n of(0,cs.validateSchema)(r))Z$(n,t)}}});function lQ(e,t){if(e instanceof cs.GraphQLError)Z$(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function Z$(e,t){let r=e.locations?.[0];t.report({message:e.message,node:e.nodes?.[0],loc:r?{start:{line:r.line,col:r.column}}:void 0})}var eA=()=>{let e=(t,r)=>{(!t.description||t.description.value.trim()==="")&&r.report({message:`Type \`${t.name.value}\` should have a non-empty description.`,node:t.name})};return{ObjectTypeDefinition:e,InterfaceTypeDefinition:e,EnumTypeDefinition:e,InputObjectTypeDefinition:e,UnionTypeDefinition:e,ScalarTypeDefinition:e}};var tA={struct:X$,assertions:W$,"no-unused-types":J$,"type-description":eA};var ps=()=>({Info(e,{report:t}){e.license||t({message:zo("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}});var wl=()=>({Paths(e,{report:t,location:r}){let n=[];for(let o of Object.keys(e)){let i=n.find(s=>uQ(s,o));i&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${i}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(o)}}});function uQ(e,t){let r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let o=0,i=0,s=!0;for(let a=0;a<r.length;a++){let c=r[a].match(/^{.+?}$/),p=n[a].match(/^{.+?}$/);if(c||p){c&&o++,p&&i++;continue}else r[a]!==n[a]&&(s=!1)}return s&&o===i}function _l(e){return e.startsWith("{")&&e.endsWith("}")}function rA(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(We).map(n=>n.toLocaleLowerCase()),r=e.split(/([A-Z]{2,})/).filter(n=>n&&n===n.toUpperCase()).map(n=>n.toLocaleLowerCase());return new Set([...t,...r])}var dQ=["get","head","post","put","patch","delete","options","trace"],Pl=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:o,location:i}){let s=n.toString();if(!s.startsWith("/")||t?.some(c=>s===c))return;let a=s.split("/");for(let c of a){if(!c||_l(c))continue;let p=l=>e?rA(c).has(l):c.toLocaleLowerCase().includes(l);for(let l of dQ)p(l)&&o({message:`path \`${s}\` should not contain http verb ${l}`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}});var El=()=>({Paths(e,{report:t,location:r}){let n=new Map;for(let o of Object.keys(e)){let i=o.replace(/{.+?}/g,"{VARIABLE}"),s=n.get(i);s?t({message:`The path already exists which differs only by path parameter name(s): \`${s}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(i,o)}}});var $l=e=>{let t=new Yr;return{Parameter:{leave(r,n){if(rt(r.example)&&Kn({example:r.example,schema:r.schema,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"}),$(r.examples))for(let[o,i]of Object.entries(r.examples)){let s=Sl(i);s&&Kn({example:s.value,schema:r.schema,options:{location:n.location.child(["examples",o,s.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}};var Al=e=>{let t=new Yr;return{Schema:{leave(r,n){let o=r.examples;if(Array.isArray(o))for(let i of o)Kn({example:i,schema:r,options:{location:n.location.child(["examples",o.indexOf(i)]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"});if(rt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;Kn({example:r.example,schema:r,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"})}}}}};var Tl=()=>({PathItem(e,{report:t,key:r,rawLocation:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-path-trailing-slash"})}});var Rl=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});ss({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});ss({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}}});var Ol=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});ss({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});ss({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}});var kl=()=>({Operation(e,t){ur({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}});var Il=()=>{let e=new Set;return{Operation(t,{report:r,location:n}){t.operationId&&(e.has(t.operationId)&&r({message:"Every operation must have a unique `operationId`.",location:n.child([t.operationId]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-unique"}),e.add(t.operationId))}}};var fQ=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Cl=()=>({Operation(e,{report:t,location:r}){e.operationId&&!fQ.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:r.child(["operationId"]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-url-safe"})}});var ql=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:o,parentLocations:i}){let s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
|
|
111
|
+
- ${t.message??""}`).join("")}function ug(e){return oe(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function dg(e,t){let r=e;for(let n of Object.keys(pg)){let o=pg[n],i=t[n];o&&(r=r.split(o).join(i))}return r}function t$({assert:e,ctx:t,assertionProperty:r}){let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=M(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],i=t.rawNode[r],s=n.child(r);return Qr[e.name](o,e.conditions,{...t,baseLocation:s,rawValue:i})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return Qr[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var Rt=e=>{let t=[],r=Object.values(e).filter(n=>$(n));for(let[n,o]of r.entries()){if(!Me(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);if(!$(o.assertions))throw new Error(`${o.assertionId}: 'assertions' (Object) is required`);let i=s$(o.assertionId,o),s=i$(o,i);t.push(s)}return t};function WY(e){return $(e)||Array.isArray(e)}var Jr=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;let n=new Set,o=[];for(let[i,s]of e.enum.entries()){let a=WY(s);(a?o.some(p=>Ht(p,s)):n.has(s))&&t({message:`Duplicated enum value found: '${a?JSON.stringify(s):s}'.`,location:r.child(["enum",i]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),a?o.push(s):n.add(s)}}});var p$=qr(c$(),1);var Fo=(e,t,r)=>{if(M(e)){let n=t.resolve(e,r?.source.absoluteRef);return n?{schema:n.node,location:n.location,chain:n.chain}:{schema:void 0,location:r}}return{schema:e,location:r}},fg=(e,t,r,n,o)=>!!(e.properties&&Ue(e.properties,t)!==void 0||e.allOf?.some(i=>xn(i,t,r,n,o))||uo(e.anyOf)&&e.anyOf.every(i=>xn(i,t,r,new Set(n),o))||uo(e.oneOf)&&e.oneOf.every(i=>xn(i,t,r,new Set(n),o))),xn=(e,t,r,n=new Set,o)=>{if(M(e)&&fg(e,t,r,n,o))return!0;let{schema:i,location:s,chain:a}=Fo(e,r,o);if(!i)return!1;if(!n.has(i)&&(n.add(i),fg(i,t,r,n,s)))return!0;for(let c of a??[])if(!(!$(c.node)||n.has(c.node))&&(n.add(c.node),fg(c.node,t,r,n,c.location)))return!0;return!1};function os(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function ns(e){let t=e?.security;return Array.isArray(t)&&t.length>0}function xl(e,t,r){if(ns(e))return!0;if(!Array.isArray(e?.traits))return!1;for(let n of e.traits){let o=M(n)?t(n,r).node:n;if(ns(o))return!0}return!1}function is(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return $(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function zo(e,t){return`${e} object should contain \`${t}\` field.`}function YY(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function l$(e,t){return`${e} object \`${t}\` must be non-empty string.`}function ur({fieldName:e,value:t,ctx:r,reference:n}){$(t)&&(t[e]===void 0?r.report({message:zo(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:l$(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function u$({fieldNames:e,value:t,ctx:r,reference:n}){if($(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:YY(r.type.name,e),location:r.location.key(),reference:n});for(let o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:l$(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function Vo(e,t){if(e===null)return t;if(typeof e!="string"||!t.length)return[];let r=[];for(let n=0;n<t.length;n++){let o=(0,p$.default)(e,t[n]);o<4&&r.push({distance:o,variant:t[n]})}return r.sort((n,o)=>n.distance-o.distance),r.map(n=>n.variant)}function Sl(e){if($(e)){if(rt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(rt(e.value))return{value:e.value,field:"value"}}}function Kn({example:e,schema:t,options:r,reference:n}){let{location:o,ctx:i,validator:s,allowAdditionalProperties:a,ajvContext:c}=r,{resolve:p,location:l,report:u,specVersion:f}=i;try{let{valid:d,errors:m}=s.validate(e,t,{schemaLoc:l.child("schema"),instancePath:o.pointer,resolve:p,allowAdditionalProperties:a,ajvContext:c,specVersion:f});if(!d)for(let h of m)u({message:`Example value must conform to the schema: ${h.message}.`,location:{...new ft(o.source,h.instancePath),reportOnKey:h.keyword==="unevaluatedProperties"||h.keyword==="additionalProperties"},from:l,suggest:h.suggest,reference:n})}catch(d){if(d.message==="discriminator: requires oneOf or anyOf composite keyword")return;u({message:`Example validation errored: ${d.message}.`,location:l.child("schema"),from:l,reference:n})}}var QY=10;function mg(e,t,r,n,{report:o,location:i},s){if(e&&!e.includes(t)){let a=e.length>QY?`\`${r}\` "${t}" is not a valid value.${s?` See the supported values: ${s}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(c=>`"${c}"`).join(", ")}.`;o({location:i,message:a,from:n,suggest:Vo(t,e)})}}function ss({responseCodes:e,codeRange:t,report:r,reference:n,disallowDefault:o=!1}){let i=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(a=>!o&&t==="2XX"&&a==="default"||i.test(a))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function Ja(e,t){return t?e.name.toLowerCase():e.name}var Xr=()=>({Schema(e,{report:t,location:r}){if(!(e.enum&&!Array.isArray(e.enum))){if(e.enum&&e.type&&!Array.isArray(e.type)){let n=e.enum.filter(o=>!is(o,e.type,e.nullable));for(let o of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${os(o)}".`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}if(e.enum&&e.type&&Array.isArray(e.type)){let n={};for(let o of e.enum){n[o]=[];for(let i of e.type)is(o,i,e.nullable)||n[o].push(i);n[o].length!==e.type.length&&delete n[o]}for(let o of Object.keys(n))t({message:`Enum value \`${o}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}}});var Gn=()=>({Schema(e,{report:t,location:r}){typeof e.maximum=="number"&&typeof e.exclusiveMaximum=="number"&&t({message:"Schema should not have both `maximum` and `exclusiveMaximum`. Use one or the other.",location:r.child(["exclusiveMaximum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"}),typeof e.minimum=="number"&&typeof e.exclusiveMinimum=="number"&&t({message:"Schema should not have both `minimum` and `exclusiveMinimum`. Use one or the other.",location:r.child(["exclusiveMinimum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"})}});var Zr=()=>{let e=[],t=new Set,r=(n,o,i)=>{if(uo(n.required))for(let[s,a]of n.required.entries())xn(n,a,i,new Set,o)||i.report({message:`Required property '${a}' is not defined.`,location:o.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})};return{ref:{leave(n,o,i){if(o.type.name!=="Schema")return;let s=[{node:n,location:o.location},...i.chain??[]];for(let{node:a,location:c}of s)!$(a)||t.has(a)||(t.add(a),r(a,c,o))}},Schema:{leave(n){e.pop()},enter(n,o){if(e.push(n),!uo(n.required))return;let i=(c,p)=>{let l=u=>Fo(u,o).schema===p;return!!(c.allOf?.some(l)||c.anyOf?.some(l)||c.oneOf?.some(l))},s=(c,p)=>{if(c<0)return;let l=e[c];return i(l,p)?s(c-1,l)??l:void 0},a=s(e.length-2,n);for(let[c,p]of n.required.entries())!xn(n,p,o)&&!xn(a,p,o)&&o.report({message:`Required property '${p}' is not defined.`,location:o.location.child(["required",c]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}};var en=()=>({Schema(e,{report:t,location:r}){e.type==="object"&&e.items&&t({message:"Schema type mismatch: 'object' type should not contain 'items' field.",location:r.child("items"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"})}});var pt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&Bo(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(let o of Object.keys(e)){let i=r({$ref:e[o]});if(i.node!==void 0)return;Bo(i,t,n.child(o))}}});function Bo(e,t,r){let n=e.error;n instanceof zr&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});let o=e.error?.message;t({location:r,message:`Can't resolve $ref${o?": "+o:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}var tn=()=>({any(e,{report:t,location:r}){typeof e.description=="string"&&(/<script\b/i.test(e.description)&&t({message:"Markdown descriptions must not contain '<script>' tags.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/<[a-z][^>]*\bon[a-z]+\s*=/i.test(e.description)&&t({message:"Markdown descriptions must not contain HTML event handler attributes.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/(?:\]\(\s*|\b(?:href|src)\s*=\s*["']?\s*)javascript:/i.test(e.description)&&t({message:"Markdown descriptions must not contain 'javascript:' URLs.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}))}});var lt=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:i,resolve:s,ignoreNextVisitorsOnNode:a}){let c=os(e),p=o!==n?o:void 0;if(r.items){c!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${c}\``,from:p}),a());return}else if(c!=="object"){r!==yr&&t({message:`Expected type \`${r.name}\` (object) but got \`${c}\``,from:p}),a();return}let l=typeof r.required=="function"?r.required(e,i):r.required;for(let d of l||[])e.hasOwnProperty(d)||t({message:`The field \`${d}\` must be present on this level.`,from:p,location:[{reportOnKey:!0}]});let u=r.allowed?.(e);if(u&&$(e))for(let d in e)u.includes(d)||r.extensionsPrefix&&d.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(d)||t({message:`The field \`${d}\` is not allowed here.`,from:p,location:n.child([d]).key()});let f=r.requiredOneOf||null;if(f){let d=!1;for(let m of f||[])e.hasOwnProperty(m)&&(d=!0);d||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:p,location:[{reportOnKey:!0}]})}for(let d of Object.keys(e)){let m=n.child([d]),h=e[d],y=Ue(r.properties,d);if(y===void 0&&(y=r.additionalProperties),typeof y=="function"&&(y=y(h,d)),Xt(y))continue;let g=y,b=os(h);if(g===void 0){if(d.startsWith("x-"))continue;t({message:`Property \`${d}\` is not expected here.`,suggest:Vo(d,Object.keys(r.properties)),from:p,location:m.key()});continue}if(g!==null){if(g.resolvable!==!1&&M(h)&&(h=s(h).node),g.items&&g.items?.enum&&Array.isArray(h))for(let v=0;v<h.length;v++)mg(g.items?.enum,h[v],d,p,{report:t,location:n.child([d,v])},g.items?.documentationLink);if(g.enum)mg(g.enum,h,d,p,{report:t,location:n.child([d])},g.documentationLink);else if(g.type&&!is(h,g.type,!1))t({message:`Expected type \`${g.type}\` but got \`${b}\`.`,from:p,location:m}),a();else if(b==="array"&&g.items?.type){let v=g.items?.type;for(let w=0;w<h.length;w++){let S=h[w];is(S,v,!1)||t({message:`Expected type \`${v}\` but got \`${os(S)}\`.`,from:p,location:m.child([w])})}}typeof g.minimum=="number"&&g.minimum>e[d]&&t({message:`The value of the ${d} field must be greater than or equal to ${g.minimum}`,from:p,location:n.child([d])})}}}});var d$=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||$(e.type)&&e.type.type==="xpath")&&t({message:"The `xpath` type criteria is not supported by Respect.",location:r.child(["type"]),reference:"https://redocly.com/docs/cli/rules/respect/no-criteria-xpath"})}}});var f$=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(let o of t){let i=Ue(o,"scheme"),s=Ue(o,"schemeName");i&&s&&r({message:"`x-security` item must not contain both `scheme` and `schemeName`.",location:n.child(["x-security",t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-both-scheme-and-scheme-name"})}}return{Workflow:{enter(t,r){e(t?.["x-security"],r)}},Step:{enter(t,r){e(t?.["x-security"],r)}}}};var m$=()=>({Step:{enter(e,{report:t,location:r}){if(!e?.["x-operation"])return;let o=e?.["x-security"];if(o)for(let i of o)"schemeName"in i&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",o.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-scheme-name-without-openapi"})}}});var h$=()=>{let e=0;return{SourceDescriptions:{enter(t){e=Array.isArray(t)?t.length:0}},Workflow:{leave(t,{report:r,location:n}){let o=t?.["x-security"];if(!(!o||e<=1)){for(let i of o)if("schemeName"in i){let s=i.schemeName;typeof s=="string"&&s.startsWith("$sourceDescriptions.")||r({message:"When multiple `sourceDescriptions` exist, `workflow.x-security.schemeName` must be a reference to a source description (e.g. `$sourceDescriptions.{name}.{schemeName}`)",location:n.child(["x-security",o.indexOf(i),"schemeName"]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-name-reference"})}}}}}};var JY={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function y$(e,{report:t,location:r}){if(e)for(let n of e){if("schemeName"in n)continue;let{scheme:o,values:i}=n,s=o?.type==="http"?o.scheme:o?.type,a=o?.type==="http"?s?.toLowerCase():s;if(s==="mutualTLS"){Y.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let c=JY[a];if(c)for(let p of c)(!i||!(p in i))&&t({message:`The \`${p}\` is required when using the ${s} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"});else t({message:`The \`${s}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"})}}var g$=()=>({Step:{enter(e,t){y$(e?.["x-security"],t)}},Workflow:{enter(e,t){y$(e?.["x-security"],t)}}});var b$=()=>({FailureActionObject:{enter(e,{report:t,location:r}){let n=e?.criteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}},SuccessActionObject:{enter(e,{report:t,location:r}){let n=e?.criteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}},Step:{enter(e,{report:t,location:r}){let n=e?.successCriteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}}});var v$=()=>{let e=new Map,t=new Map,r=[];function n({value:s,report:a,location:c,path:p,definedWorkflowOutputs:l}){let u=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,f;for(;(f=u.exec(s))!==null;){let[d,m,h]=f,y=l.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in workflow "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Workflow "${m}" referenced in runtime expression "${d}" is not defined or has no outputs.`,location:c.child(p)})}}function o({value:s,report:a,location:c,path:p,definedStepOutputs:l}){let u=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,f;for(;(f=u.exec(s))!==null;){let[d,m,h]=f,y=l.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in step "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Step "${m}" referenced in runtime expression "${d}" is not defined or has no outputs.`,location:c.child(p)})}}function i(s,a,c=[]){if(typeof s=="string")n({value:s,report:a.report,location:a.location,path:c,definedWorkflowOutputs:e}),o({value:s,report:a.report,location:a.location,path:c,definedStepOutputs:t});else if($(s)||Array.isArray(s))for(let[p,l]of Object.entries(s))i(l,a,[...c,p])}return{Step:{enter(s,{report:a,location:c}){s.outputs&&t.set(s.stepId,Object.keys(s.outputs))}},Workflow:{enter(s,{report:a,location:c}){s.outputs&&e.set(s.workflowId,Object.keys(s.outputs))}},Parameters:{enter(s,a){r.push(()=>{i(s,a)})}},RequestBody:{enter(s,a){r.push(()=>{i(s,a)})}},CriterionObject:{enter(s,a){r.push(()=>{i(s.condition,a)})}},Outputs:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedSecurity:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedOperation:{enter(s,a){r.push(()=>{i(s,a)})}},Root:{leave(){for(let s of r)s()}}}};var x$=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.has(o?.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.add(o?.name??o?.reference)}}});var S$=()=>{let e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(let o of t.replacements)e.has(o.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(o),"target"]),reference:"https://redocly.com/docs/cli/rules/arazzo/requestbody-replacements-unique"}),e.add(o.target)}}}}};var w$=()=>{let e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(let o of t)e.has(o.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-name-unique"}),e.add(o.name)}}}};var _$=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var XY=["x-operation","operationId","operationPath","channelPath","workflowId"],P$=()=>({Step:{enter(e,{report:t,location:r}){let n=XY.filter(o=>Object.hasOwn(e,o));n.length>1&&t({message:`A step can only use one of the following mutually exclusive fields: ${n.map(o=>`\`${o}\``).join(", ")}.`,location:n.map(o=>r.child([o]).key()),reference:"https://redocly.com/docs/cli/rules/arazzo/spec-step-mutually-exclusive-fields"})}}});var E$=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.add(o.name??o.reference)}}});var $$=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.add(o?.name??o?.reference)}}});var A$=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;let n=new Set;for(let o of e.steps){if(!o.stepId)return;n.has(o.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/stepid-unique"}),n.add(o.stepId)}}}});var T$=()=>{let e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(let o of n)t.add(o.name)}},Workflows:{enter(n){for(let o of n)r.add(o.workflowId)}},Workflow:{leave(n,{report:o,location:i}){if(n.dependsOn)for(let s of n.dependsOn){if(s.startsWith("$sourceDescriptions.")){let a=s.split(".")[1];t.has(a)||o({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!s.startsWith("$sourceDescriptions")&&!r.has(s)&&o({message:`Workflow ${s} must be defined in workflows.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.has(s)&&o({message:"Every workflow in dependsOn must be unique.",location:i.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.add(s)}}}}};var R$=()=>{let e=new Set;return{Workflow:{enter(t,{report:r,location:n}){t.workflowId&&(e.has(t.workflowId)&&r({message:"Every workflow must have a unique `workflowId`.",location:n.child([t.workflowId]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflowid-unique"}),e.add(t.workflowId))}}}};var O$={assertions:Rt,"criteria-unique":b$,"no-criteria-xpath":d$,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-required-schema-properties-undefined":Zr,"no-schema-type-mismatch":en,"no-unresolved-refs":pt,"no-x-security-both-scheme-and-scheme-name":f$,"no-x-security-scheme-name-without-openapi":m$,"outputs-defined":v$,"parameters-unique":x$,"requestBody-replacements-unique":S$,"sourceDescription-name-unique":w$,"sourceDescription-type":ZE,"sourceDescriptions-not-empty":_$,"spec-step-mutually-exclusive-fields":P$,"step-onFailure-unique":E$,"step-onSuccess-unique":$$,"stepId-unique":A$,struct:lt,"workflow-dependsOn":T$,"workflowId-unique":R$,"x-security-scheme-name-reference":h$,"x-security-scheme-required-values":g$},k$={};var dr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:zo("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}});var I$=/^1\.0\.\d+(-.+)?$/;function Xa(e){return e.startsWith("oas3")?"oas3":e==="oas2"?"oas2":e==="async2"?"async2":e==="async3"?"async3":e==="arazzo1"||e==="arazzo1_1"?"arazzo1":e==="overlay1"?"overlay1":e==="openrpc1"?"openrpc1":e==="graphql"?"graphql":"oas3"}function Sn(e){if(!$(e))throw new Error(`Document must be JSON object, got ${typeof e}`);if(typeof e.openrpc=="string"&&e.openrpc.startsWith("1."))return"openrpc1";if(e.openapi&&typeof e.openapi!="string")throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof e.openapi}"`);if(typeof e.openapi=="string"&&e.openapi.startsWith("3.0."))return"oas3_0";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.1."))return"oas3_1";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.2."))return"oas3_2";if(e.swagger&&e.swagger==="2.0")return"oas2";if(e.openapi||e.swagger)throw new Error(`Unsupported OpenAPI version: ${e.openapi||e.swagger}`);if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("2."))return"async2";if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("3."))return"async3";if(e.asyncapi)throw new Error(`Unsupported AsyncAPI version: ${e.asyncapi}`);if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.0."))return"arazzo1";if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.1."))return"arazzo1_1";if(e.arazzo)throw new Error(`Unsupported Arazzo version: ${e.arazzo}`);if(typeof e.overlay=="string"&&I$.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}var Wn=()=>{let e;return{Root:{enter(t){e=Sn(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?u$({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):ur({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}};var Yn=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let o=Ja(r,e);t.has(o)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(o)}}}};var Qn=()=>({Root:{PathItem:{Operation(e,t){ur({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function ZY(e,t,r){if("flows"in e&&e.flows){let{node:n,location:o}=M(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=M(a)?t(a,i).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}var as=e=>{let t=new Map,r=[];return{Root:{leave(n,{report:o}){for(let{schemeName:i,scopes:s,location:a}of r){let c=t.get(i);if(c?.type==="oauth2"){if(e.requireScopes&&s.length===0){o({message:`The "${i}" security requirement must list at least one scope.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}for(let p=0;p<s.length;p++){let l=s[p];c.definedScopes.includes(l)||o({message:`The "${l}" scope is not defined in the "${i}" security scheme.`,location:a.child([p]),suggest:Vo(l,c.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:o,resolve:i,location:s}){t.set(o.toString(),{type:n.type,definedScopes:n.type==="oauth2"?ZY(n,i,s):[]})},SecurityRequirement(n,{location:o}){for(let[i,s]of Object.entries(n))r.push({schemeName:i,scopes:s||[],location:o.child([i])})}}};var Jn=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name!=="PathItem")for(let o of Object.keys(e))o!=="$ref"&&t({message:`Property \`${o}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}});var Xn=()=>({Tag(e,t){ur({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}});var Zn=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)Ja(t.tags[o],e)>Ja(t.tags[o+1],e)&&r({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",o]),reference:"https://redocly.com/docs/cli/rules/oas/tags-alphabetical"})}});var C$=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(o=>o!=="").every(o=>/^{.+}$/.test(o)||/^[a-z0-9-.]+$/.test(o))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}});var q$=()=>({Channel(e,{report:t,key:r,location:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}});var N$="https://redocly.com/docs/cli/rules/async/security-defined",M$=()=>{let e=new Map,t=new Map,r=[],n,o=!1;return{Root:{leave(i,{report:s}){for(let[c,p]of e.entries())if(!p.defined)for(let l of p.from)s({message:`There is no \`${c}\` security scheme defined.`,location:l.key(),reference:N$});let a=[...t.keys()];for(let{location:c,channelServers:p}of r){let l=p??a;l.length>0&&l.every(f=>t.get(f))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:N$})}}},SecurityScheme(i,{key:s}){i!=null&&e.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=e.get(a),p=s.child([a]);c?c.from.push(p):e.set(a,{from:[p]})}},Components:{enter(){o=!0},leave(){o=!1}},Server(i,{key:s}){o||t.set(s.toString(),ns(i))},Channel:{skip(){return o},enter(i){n=Array.isArray(i?.servers)&&i.servers.length>0?i.servers:void 0},Operation(i,{location:s,resolve:a}){xl(i,a)||r.push({location:s,channelServers:n})}}}};var j$={struct:lt,"no-unresolved-refs":pt,assertions:Rt,"info-contact":dr,"info-license-strict":Wn,"operation-operationId":Qn,"security-defined":M$,"channels-kebab-case":C$,"no-channel-trailing-slash":q$,"tag-description":Xn,"tags-alphabetical":Zn,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn,"no-required-schema-properties-undefined":Zr,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-schema-type-mismatch":en,"security-scopes-defined":as,"spec-ref-siblings":Jn},D$={};var L$=()=>({Channel(e,{report:t}){(e.address||"").split(/[/.:]/).filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${e.address}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}});var U$=()=>({Channel(e,{report:t,location:r}){e?.address?.endsWith("/")&&e?.address!=="/"&&t({message:`\`${e.address}\` should not have a trailing slash.`,location:r.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}});var F$="#/components/securitySchemes/",eQ="#/components/",hg="https://redocly.com/docs/cli/rules/async/security-defined";function tQ(e){let t=e.indexOf("#");return t===-1?e:e.slice(t)}function rQ(e){if(!e.startsWith(F$))return!1;let t=e.slice(F$.length);return t!==""&&!t.includes("/")}var z$=()=>{let e=[],t,r,n,o,i,s=(a,c,p)=>{let l=a.channel,u=M(l)?c(l,p):void 0,d=(M(l)?u?.node:l)?.servers,m,h;return d&&d.length>0?(m=d,h=u?.location?.source.absoluteRef??p):(m=t?Object.values(t):[],h=r),m.length===0?!1:m.every(y=>{let g=M(y)?c(y,h).node:y;return ns(g)})};return{Root:{enter(a,{location:c,resolve:p}){let l=a?.servers;if(M(l)){let f=p(l);t=f.node??void 0,r=f.location?.source.absoluteRef}else t=l,r=void 0;let u=a?.operations;if(M(u)){let f=p(u);n=f.node??void 0,o=f.location?.source.absoluteRef,i=f.location}else n=u,o=void 0,i=c.child(["operations"])},leave(a,{report:c,resolve:p}){for(let l of e){if((l.local||l.refPointer.startsWith(eQ))&&!rQ(l.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:l.location.key(),reference:hg});continue}l.resolved||c({message:`There is no \`${l.name}\` security scheme defined.`,location:l.location.key(),reference:hg})}if(n&&i){let l=i;for(let[u,f]of Object.entries(n)){let d,m;if(M(f)){let h=p(f,o);d=h.node,m=h.location?.source.absoluteRef}else d=f,m=o;d&&(xl(d,p,m)||s(d,p,m)||c({message:"Every operation should have security defined on it.",location:l.child([u]).key(),reference:hg}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:p}){if(a)for(let l=0;l<a.length;l++){let u=a[l];if(!M(u))continue;let f=c.child([l]),d=p(u),m=tQ(u.$ref),h=m.split("/").pop()??u.$ref;e.push({location:f,name:h,refPointer:m,resolved:d.node!=null,local:u.$ref.startsWith("#")})}}}}};function nQ(e,t,r){if(!e.flows)return[];let{node:n,location:o}=M(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=M(a)?t(a,i).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}var V$=e=>{let t=new Map;return{SecuritySchemeList(r,{resolve:n,location:o}){for(let i=0;i<r.length;i++){let s=r[i],a=M(s)?n(s):{node:s,location:o.child([i])};!a.node||!a.location||t.set(a.location.absolutePointer,{scheme:a.node,location:a.location,availableScopes:a.node.type==="oauth2"?nQ(a.node,n,a.location):[]})}},Root:{leave(r,{report:n}){for(let{scheme:o,location:i,availableScopes:s}of t.values()){if(o.type!=="oauth2")continue;if(e.requireScopes&&!o.scopes?.length){n({message:"The security scheme must list at least one scope.",location:i.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}let a=o.scopes||[];for(let c=0;c<a.length;c++){let p=a[c];s.includes(p)||n({message:`The "${p}" scope is not defined in the available scopes of the security scheme flows.`,location:i.child(["scopes",c]),suggest:Vo(p,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}};var B$={struct:lt,"no-unresolved-refs":pt,assertions:Rt,"info-contact":dr,"info-license-strict":Wn,"operation-operationId":Qn,"security-defined":z$,"channels-kebab-case":L$,"no-channel-trailing-slash":U$,"tag-description":Xn,"tags-alphabetical":Zn,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn,"no-required-schema-properties-undefined":Zr,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-schema-type-mismatch":en,"security-scopes-defined":V$,"spec-ref-siblings":Jn},H$={};function G$(e){return Is(Qr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:il.has(t),runsOnValues:sl.has(t)}))}var W$=e=>{let t=Object.values(e).filter($),r=[];for(let n of t){if(n.severity==="off")continue;let o=n.subject?.type;if(!o)continue;if(!$(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);let i=G$(n),s=oQ(n);r.push({[o]:(a,c)=>{iQ(a,c,s)&&sQ(a,c,n,i)}})}return r};function oQ(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!Me(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!$(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:G$(t)}}):[]}function iQ(e,t,r){let n=r,o=r.at(-1);if(o&&o.kind===e.kind){if(!K$(e,o,t))return!1;n=r.slice(0,-1)}let i=0;for(let s of n){let a=!1;for(;i<t.ancestors.length;){let c=t.ancestors[i++];if(c.kind===s.kind&&K$(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function K$(e,t,r){let{value:n}=Y$(e,t.definition.subject.property),o=new ft(r.source,"#/");return t.assertsToApply.every(i=>Qr[i.name](n,i.conditions,{baseLocation:o,rawValue:n}).length===0)}function sQ(e,t,r,n){let o=Q$(r.subject.property),{value:i,locNode:s}=Y$(e,r.subject.property),a=new ft(t.source,"#/"),c=n.flatMap(l=>Qr[l.name](i,l.conditions,{baseLocation:a,rawValue:i}));if(!c.length)return;let p=`${W.blue(r.assertionId)} failed because the ${W.blue(r.subject.type)} ${W.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:dg(r.message??p,{problems:lg(c),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:ug(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function yg(e){return e?.name?.value!==void 0?{value:e.name.value,locNode:e.name}:e?.value!==void 0?{value:e.value,locNode:e}:{value:e,locNode:e}}function Y$(e,t){let r=Q$(t);if(r===void 0)return yg(e);let n=e[r];if(Array.isArray(n))return{value:n.map(i=>yg(i).value),locNode:e};let o=yg(n);return{value:o.value,locNode:aQ(o.locNode)?o.locNode:e}}function aQ(e){return $(e)&&"kind"in e}function Q$(e){return Array.isArray(e)?e[0]:e}var cQ=["Query","Mutation","Subscription"];function pQ(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}var J$=()=>{let e=new Map,t=new Set,r=new Set,n=!1,o=l=>t.add(pQ(l)),i=l=>e.set(l.name.value,l.name),s=l=>{for(let u of l.interfaces??[])o(u);for(let u of l.fields??[]){o(u.type);for(let f of u.arguments??[])o(f.type)}},a=l=>{for(let u of l.types??[])o(u)},c=l=>{for(let u of l.fields??[])o(u.type)},p=l=>{for(let u of l.operationTypes??[])r.add(u.type.name.value)};return{SchemaDefinition:l=>{n=!0,p(l)},SchemaExtension:p,DirectiveDefinition:l=>{for(let u of l.arguments??[])o(u.type)},ObjectTypeDefinition:l=>{i(l),s(l)},ObjectTypeExtension:s,InterfaceTypeDefinition:l=>{i(l),s(l)},InterfaceTypeExtension:s,UnionTypeDefinition:l=>{i(l),a(l)},UnionTypeExtension:a,InputObjectTypeDefinition:l=>{i(l),c(l)},InputObjectTypeExtension:c,EnumTypeDefinition:i,ScalarTypeDefinition:i,Document:{leave:(l,u)=>{if(!n)for(let f of cQ)e.has(f)&&r.add(f);if(r.size!==0)for(let[f,d]of e)t.has(f)||r.has(f)||u.report({message:`Type \`${f}\` is declared but never used.`,node:d})}}}};var cs=qr(aO(),1),X$=()=>({Document:{enter:(e,t)=>{let r;try{r=(0,cs.buildASTSchema)(e,{assumeValidSDL:!1})}catch(n){lQ(n,t);return}for(let n of(0,cs.validateSchema)(r))Z$(n,t)}}});function lQ(e,t){if(e instanceof cs.GraphQLError)Z$(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function Z$(e,t){let r=e.locations?.[0];t.report({message:e.message,node:e.nodes?.[0],loc:r?{start:{line:r.line,col:r.column}}:void 0})}var eA=()=>{let e=(t,r)=>{(!t.description||t.description.value.trim()==="")&&r.report({message:`Type \`${t.name.value}\` should have a non-empty description.`,node:t.name})};return{ObjectTypeDefinition:e,InterfaceTypeDefinition:e,EnumTypeDefinition:e,InputObjectTypeDefinition:e,UnionTypeDefinition:e,ScalarTypeDefinition:e}};var tA={struct:X$,assertions:W$,"no-unused-types":J$,"type-description":eA};var ps=()=>({Info(e,{report:t}){e.license||t({message:zo("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}});var wl=()=>({Paths(e,{report:t,location:r}){let n=[];for(let o of Object.keys(e)){let i=n.find(s=>uQ(s,o));i&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${i}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(o)}}});function uQ(e,t){let r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let o=0,i=0,s=!0;for(let a=0;a<r.length;a++){let c=r[a].match(/^{.+?}$/),p=n[a].match(/^{.+?}$/);if(c||p){c&&o++,p&&i++;continue}else r[a]!==n[a]&&(s=!1)}return s&&o===i}function _l(e){return e.startsWith("{")&&e.endsWith("}")}function rA(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(We).map(n=>n.toLocaleLowerCase()),r=e.split(/([A-Z]{2,})/).filter(n=>n&&n===n.toUpperCase()).map(n=>n.toLocaleLowerCase());return new Set([...t,...r])}var dQ=["get","head","post","put","patch","delete","options","trace"],Pl=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:o,location:i}){let s=n.toString();if(!s.startsWith("/")||t?.some(c=>s===c))return;let a=s.split("/");for(let c of a){if(!c||_l(c))continue;let p=l=>e?rA(c).has(l):c.toLocaleLowerCase().includes(l);for(let l of dQ)p(l)&&o({message:`path \`${s}\` should not contain http verb ${l}`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}});var El=()=>({Paths(e,{report:t,location:r}){let n=new Map;for(let o of Object.keys(e)){let i=o.replace(/{.+?}/g,"{VARIABLE}"),s=n.get(i);s?t({message:`The path already exists which differs only by path parameter name(s): \`${s}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(i,o)}}});var $l=e=>{let t=new Yr;return{Parameter:{leave(r,n){if(rt(r.example)&&Kn({example:r.example,schema:r.schema,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"}),$(r.examples))for(let[o,i]of Object.entries(r.examples)){let s=Sl(i);s&&Kn({example:s.value,schema:r.schema,options:{location:n.location.child(["examples",o,s.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}};var Al=e=>{let t=new Yr;return{Schema:{leave(r,n){let o=r.examples;if(Array.isArray(o))for(let i of o)Kn({example:i,schema:r,options:{location:n.location.child(["examples",o.indexOf(i)]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"});if(rt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;Kn({example:r.example,schema:r,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"})}}}}};var Tl=()=>({PathItem(e,{report:t,key:r,rawLocation:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-path-trailing-slash"})}});var Rl=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){let o=Object.keys(r||{});ss({responseCodes:o,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}},WebhooksMap:{Responses(r,{report:n}){if(!e)return;let o=Object.keys(r||{});ss({responseCodes:o,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}});var Ol=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});ss({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});ss({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}});var kl=()=>({Operation(e,t){ur({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}});var Il=()=>{let e=new Set;return{Operation(t,{report:r,location:n}){t.operationId&&(e.has(t.operationId)&&r({message:"Every operation must have a unique `operationId`.",location:n.child([t.operationId]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-unique"}),e.add(t.operationId))}}};var fQ=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Cl=()=>({Operation(e,{report:t,location:r}){e.operationId&&!fQ.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:r.child(["operationId"]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-url-safe"})}});var ql=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:o,parentLocations:i}){let s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
|
|
112
112
|
Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:i.PathItem.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),e.add(`${r.in}___${r.name}`)},Operation:{enter(){t=new Set},Parameter(r,{report:n,key:o,parentLocations:i}){let s=`${r.in}___${r.name}`;t.has(s)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:i.Operation.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),t.add(s)}}}}};var Nl=()=>({Operation(e,{report:t,location:r}){e.tags&&e.tags.length>1&&t({message:"Operation `tags` object should have only one tag.",location:r.child(["tags"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-singular-tag"})}});var Ml=()=>({Operation(e,t){ur({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}});var jl=()=>{let e;return{Root(t){e=new Set((t.tags??[]).map(r=>r.name))},Operation(t,{report:r,location:n}){if(t?.tags)for(let o=0;o<t.tags.length;o++)e.has(t.tags[o])||r({message:"Operation tags should be defined in global tags.",location:n.child(["tags",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"});else r({message:"Operation tags should be defined",location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"})}}};var Dl=()=>({Parameter(e,{report:t,location:r}){e.description===void 0?t({message:"Parameter object description must be present.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"}):e.description||t({message:"Parameter object description must be non-empty string.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"})}});var Ll=()=>({PathItem(e,{report:t,key:r}){r.indexOf("{}")!==-1&&t({message:"Path parameter declarations must be non-empty. `{}` is invalid.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/path-declaration-must-exist"})}});var mQ=["get","head","post","put","patch","delete","options","query","trace"],Ul=e=>{let t=e&&e.order||mQ;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:o}){let i=Object.keys(r).filter(s=>t.includes(s));for(let s=0;s<i.length-1;s++){let a=t.indexOf(i[s]);t.indexOf(i[s+1])<a&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...o.child(i[s+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}};var Fl=()=>({Paths:{PathItem(e,{report:t,key:r}){r.toString().includes("?")&&t({message:"Don't put query string items in the path, they belong in parameters with `in: query`.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/path-not-include-query"})}}});var hQ=/\{([a-zA-Z0-9_.-]+)\}+/g,yQ=2,ls=()=>{let e={current:null};return{PathItem:{enter(r,{key:n}){nA(e,n)},leave(){gQ(e)},Parameter(r,{report:n,location:o,rawLocation:i}){oA({parameter:r,pathContext:e,report:n,location:o,rawLocation:i})},Operation:iA(e,new Set)}}},nA=(e,t)=>{e.current={path:t,templateParams:bQ(t),definedParams:new Set}},gQ=e=>{e.current=null},oA=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),sA({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},iA=(e,t,r=0)=>{let n=(i,s,a)=>{i({message:`Maximum callback nesting depth (${a}) reached. Path parameter validation is limited beyond this depth to prevent infinite recursion.`,location:s,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};if(r>=yQ)return{enter:()=>{},leave:(i,{report:s,location:a})=>{n(s,a,r)},Parameter:()=>{},Callback:void 0};let o=()=>{let i=null;return{enter(s,{key:a}){i=e.current,nA(e,a)},leave(){e.current=i},Parameter(s,{report:a,location:c,rawLocation:p}){oA({parameter:s,pathContext:e,report:a,location:c,rawLocation:p})},get Operation(){return iA(e,t,r+1)}}};return{enter(){t=new Set},leave(i,{report:s,location:a}){!e.current||!t||xQ({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:s,location:a})},Parameter(i,{report:s,location:a,rawLocation:c}){vQ(i,t),i.in==="path"&&i.name&&e.current&&(t.add(i.name),sA({paramName:i.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return o()}}}},bQ=e=>new Set(Array.from(e.matchAll(hQ)).map(t=>t[1])),vQ=(e,t)=>{$(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},sA=({paramName:e,templateParams:t,path:r,report:n,location:o,rawLocation:i})=>{if(!t.has(e)){let s=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,a=i===o?void 0:i;n({message:s,location:o.child(["name"]),from:a,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},xQ=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:o,location:i})=>{let s=new Set([...t,...r]);for(let a of e)s.has(a)||o({message:`The operation does not define the path parameter \`{${a}}\` expected by path \`${n}\`.`,location:i.child(["parameters"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};var aA=qr(fd(),1);var zl=e=>{let{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:o,key:i,location:s}){let a=i.toString();if(a.startsWith("/")){let c=a.split("/");c.shift(),t&&c.length>0&&c.pop();for(let p of c)r&&r.includes(p)||!_l(p)&&aA.default.isSingular(p)&&o({message:`path segment \`${p}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}};var Vl=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(o=>o!=="").every(o=>/^{.+}$/.test(o)||/^[a-z0-9-.]+$/.test(o))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/paths-kebab-case"})}});var Bl=()=>{let e,t;return{Schema:{enter(r){if(!r?.required){e=!0;return}t=new Set(r.required),e=!1},SchemaProperties:{skip(){return e},Schema:{enter(r,{key:n,location:o,report:i}){t.has(n)&&r.type==="string"&&(r?.minLength||i({message:"Property minLength is required.",location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/required-string-property-missing-min-length"}))}}}}}};function wn(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var Hl=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:i})=>{let s=t[i]||t[wn(i)]||t[wn(i).toLowerCase()]||[];for(let a of s)(!r?.headers||!Object.keys(r?.headers).some(c=>c.toLowerCase()===a.toLowerCase()))&&n({message:`Response object must contain a "${a}" header.`,location:o.child("headers").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-header"})}}}}};var cA=["string","integer","number","boolean","null"],Kl=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(let i of Object.keys(e)){let s=o(Ue(e,i)).node;!s||!SQ(s)||s.example===void 0&&s.examples===void 0&&t({message:`Scalar property should have "example"${n==="oas3_1"||n==="oas3_2"?' or "examples"':""} defined.`,location:r.child(i).key(),reference:"https://redocly.com/docs/cli/rules/oas/scalar-property-missing-example"})}}});function SQ(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>cA.includes(t)):cA.includes(e.type)}var Gl=e=>{let t=new Map,r=[],n=!0,o;return{Root:{leave(i,{report:s}){for(let[a,c]of t.entries())if(!c.defined)for(let p of c.from)s({message:`There is no \`${a}\` security scheme defined.`,location:p.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(i.security||n))for(let a of r)s({message:"Every operation should have security defined on it or on the root level.",location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"})}},SecurityScheme(i,{key:s}){t.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=t.get(a),p=s.child([a]);c?c.from.push(p):t.set(a,{from:[p]})}},PathItem:{enter(i,{key:s}){o=s},Operation(i,{location:s,key:a}){let c=e.exceptions?.some(p=>p.path===o&&(!p.methods||p.methods?.some(l=>l.toLowerCase()===a)));!i?.security&&!c&&(n=!1,r.push(s))}}}};var Wl=()=>{let e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:o,type:i}){!e.includes(i.name)&&M(n)&&r({message:"Field $ref is not expected here.",location:o.child("$ref").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-strict-refs"})}}};var pA=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(i=>`\`${i}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(i,{report:s,location:a}){i.type==="boolean"&&!r.test(i.name)&&s({message:`Boolean parameter \`${i.name}\` should have ${o} prefix.`,location:a.child("name"),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}};function us({type:e,value:t,ctx:r,allowedValues:n,reference:o}){let{report:i,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t[e])for(let c of t[e])n.includes(c)||i({message:`Mime type "${c}" is not allowed`,location:s.child(t[e].indexOf(c)).key(),reference:o})}function eo({type:e,value:t,ctx:r,allowedValues:n,reference:o}){let{report:i,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t.content)for(let c of Object.keys(t.content))n.includes(c)||i({message:`Mime type "${c}" is not allowed`,location:s.child("content").child(c).key(),reference:o})}var lA=({allowedValues:e})=>({Root(t,r){us({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){us({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}});var uA=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},Schema(n,{report:o,location:i}){if(n.type!=="object")return;let s=t[r]||t[wn(r)]||t[wn(r).toLowerCase()]||[];for(let a of s)n.properties?.[a]||o({message:`Response object must contain a top-level "${a}" property.`,location:i.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}};var dA=({allowedValues:e})=>({Root(t,r){us({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){us({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}});var fA={struct:lt,"no-invalid-schema-examples":Al,"no-invalid-parameter-examples":$l,"info-contact":dr,"info-license":ps,"info-license-strict":Wn,"tag-description":Xn,"tags-alphabetical":Zn,"paths-kebab-case":Vl,"no-enum-type-mismatch":Xr,"boolean-parameter-prefixes":pA,"no-path-trailing-slash":Tl,"operation-2xx-response":Rl,"operation-4xx-response":Ol,assertions:Rt,"operation-operationId-unique":Il,"operation-parameters-unique":ql,"path-parameters-defined":ls,"operation-tag-defined":jl,"path-declaration-must-exist":Ll,"operation-operationId-url-safe":Cl,"operation-operationId":Qn,"operation-summary":Ml,"operation-description":kl,"path-not-include-query":Fl,"path-params-defined":ls,"parameter-description":Dl,"operation-singular-tag":Nl,"security-defined":Gl,"security-scopes-defined":as,"no-unresolved-refs":pt,"no-identical-paths":El,"no-ambiguous-paths":wl,"path-http-verbs-order":Ul,"no-http-verbs-in-paths":Pl,"request-mime-type":lA,"response-mime-type":dA,"path-segment-plural":zl,"response-contains-header":Hl,"response-contains-property":uA,"scalar-property-missing-example":Kl,"required-string-property-missing-min-length":Bl,"spec-strict-refs":Wl,"spec-ref-siblings":Jn,"no-required-schema-properties-undefined":Zr,"no-schema-type-mismatch":en,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn},mA={};var hA=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=M(t.schema)?r.resolve(t.schema).node:t.schema;n&&wQ(t,n,e)&&r.report({message:`Parameter \`${t.name}\` should have \`style\` and \`explode \` fields`,location:r.location,reference:"https://redocly.com/docs/cli/rules/oas/array-parameter-serialization"})}}});function wQ(e,t,r){return(t.type==="array"||t.items||t.prefixItems)&&(e.style===void 0||e.explode===void 0)&&(!r.in||e.in&&r.in?.includes(e.in))}var yA=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(i=>`\`${i}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(i,{report:s,parentLocations:a},c){i.type==="boolean"&&!r.test(c.Parameter.name)&&s({message:`Boolean parameter \`${c.Parameter.name}\` should have ${o} prefix.`,location:a.Parameter.child(["name"]),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}}};function gA(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Yl(e){let t=$(e)&&Me(e.title)?e.title.trim():"",r=gA(t).replace(new RegExp(`[^${Nc}]`,"g"),"-");return{title:t,name:r}}function Ho(e){return e.chain?.[0]??{node:e.node,location:e.location}}var ds="Schema",gg="Parameter",bg="Response",vg="RequestBody",_Q={[ds]:"schemas",[gg]:"parameters",[bg]:"responses",[vg]:"requestBodies"},bA=e=>{let t=new Map,r=new Map,n=e.strategy==="title",o,i=[];e.schemas!=="off"&&i.push(ds),e.parameters!=="off"&&i.push(gg),e.responses!=="off"&&i.push(bg),e.requestBodies!=="off"&&i.push(vg);let s={ref:{leave(u,{type:f,resolve:d,location:m}){let h=f.name;if(i.includes(h)){let y=d(u);if(!y.location)return;let g=Ho(y);if(l(h,g.location,m)){let{title:b,name:v}=Yl(g.node);if(b){c(h,v,g.location,g.location.child("title"));return}r.set(g.location.absolutePointer.toString(),g.location),p(h,g.location);return}p(h,y.location)}}},Root:{enter(u,{location:f}){o=f.source.absoluteRef},leave(u,f){t.forEach((d,m,h)=>{if(d.size>1){let y=$Q(m),g=PQ(y.typeName),b=g?e[g]:null;for(let[v,w]of d){let S=Array.from(d.keys()).filter(O=>O!==v).map(O=>`- ${O}`).join(`
|
|
113
113
|
`),P={message:`Component '${g}/${y.componentName}' is not unique. It is also defined at:
|
|
114
114
|
${S}`,location:w,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};b&&(P.forceSeverity=b),f.report(P)}}});for(let d of r.values()){let m={message:"Schema must define a `title` when using `strategy: title`. Bundling fails without it.",location:d,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};e.schemas&&(m.forceSeverity=e.schemas),f.report(m)}}}};return e.schemas!="off"&&(s.NamedSchemas={Schema(u,{location:f,key:d,parentLocations:m}){if(l(ds,f)){c(ds,String(d),m.NamedSchemas.child(d));return}p(ds,f)}}),e.responses!="off"&&(s.NamedResponses={Response(u,{location:f}){p(bg,f)}}),e.parameters!="off"&&(s.NamedParameters={Parameter(u,{location:f}){p(gg,f)}}),e.requestBodies!="off"&&(s.NamedRequestBodies={RequestBody(u,{location:f}){p(vg,f)}}),s;function a(u){let f=u.split("/").slice(-1)[0];return xa(f)?f.slice(0,f.lastIndexOf(".")):f}function c(u,f,d,m=d){let h=EQ(u,f),y=t.get(h)??new Map,g=d.absolutePointer.toString();y.has(g)||y.set(g,m),t.set(h,y)}function p(u,f){let d=a(f.absolutePointer.toString());c(u,d,f)}function l(u,f,d=f){return n&&u===ds&&(f.source.absoluteRef!==o||d.source.absoluteRef!==o)}};function PQ(e){return _Q[e]??null}function EQ(e,t){return`${e}/${t}`}function $Q(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var vA=()=>({Root(e,{report:t,location:r}){if(!e.hasOwnProperty("servers")){t({message:"Servers must be present.",location:r.child(["openapi"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"});return}(!Array.isArray(e.servers)||e.servers.length===0)&&t({message:"Servers must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"})}});var xA=()=>({Example(e,{report:t,location:r}){e.value&&e.externalValue&&t({message:"Example object can have either `value` or `externalValue` fields.",location:r.child(["value"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-example-value-and-externalValue"})}});var AQ=new Set(["type","format","enum","const","nullable","properties","required","additionalProperties","discriminator","$ref","$id","$schema","$anchor","$comment","title","description","default","example","examples","deprecated","readOnly","writeOnly","externalDocs","xml"]),EA=()=>({AllOf(e,t){let r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!TQ(e[0],t.resolve))&&xg(e,"allOf",t),Sg(e,"allOf",t),wg(e,"allOf",t))},AnyOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let n=$(r.discriminator);e.length<2&&!n&&xg(e,"anyOf",t),Sg(e,"anyOf",t),wg(e,"anyOf",t),n&&SA(e,"anyOf",t)},OneOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let{discriminator:n}=r,o=$(n);e.length<2&&!o&&xg(e,"oneOf",t),Sg(e,"oneOf",t),wg(e,"oneOf",t),o&&SA(e,"oneOf",t),Jl(r)&&RQ(e,t),OQ(e,o?n:void 0,t)}});function xg(e,t,r){let n=e.length===1?" Use the schema directly instead.":"";r.report({message:`\`${t}\` should have at least two schemas.${n}`,location:r.location.key()})}function TQ(e,t){return $(Za(e,t)?.schema.discriminator)}function Sg(e,t,r){for(let[n,o]of e.entries())$(o)&&Object.keys(o).length===0&&r.report({message:`Schema in \`${t}\` is empty, so it matches any value.`,location:r.location.child([n])})}function SA(e,t,r){for(let[n,o]of e.entries())M(o)||$(o)&&"$id"in o||r.report({message:`Schema in \`${t}\` is inline, so the \`discriminator\` cannot select it. Use a \`$ref\` to a named schema.`,location:r.location.child([n])})}function wg(e,t,r){for(let n=1;n<e.length;n++){let o=e.findIndex(i=>Ht(i,e[n]));o<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${o+1}.`,location:r.location.child([n])})}}function RQ(e,t){e.some(n=>{let o=Za(n,t.resolve);return o?Jl(o.schema):!1})&&t.report({message:"The schema and a schema in `oneOf` both accept `null`, so nothing decides which one applies to a null value.",location:t.location.key()})}function OQ(e,t,r){let{resolve:n,report:o,location:i}=r,s=r.specVersion!=="oas3_2",a=e.map(c=>Za(c,n));for(let c=0;c<a.length-1;c++){let p=a[c];if(p)for(let l=c+1;l<a.length;l++){let u=a[l];if(!u||Ht(e[c],e[l]))continue;let f=kQ(p,u,n,t,s);f&&o({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${wA(e[c],c)} and ${wA(e[l],l)}. ${f}`,location:i.key()})}}}function wA(e,t){return M(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function kQ(e,t,r,n,o){let i=e.schema,s=t.schema;if(Ql(i)||Ql(s)||$A(i,s))return null;if(Jl(i)&&Jl(s))return"Both schemas accept `null`.";let a=tc(i),c=tc(s);if(a&&c){let l=a.filter(u=>c.some(f=>Ht(u,f)));return`Both schemas allow the values ${JSON.stringify(l)}.`}if(n)return o?IQ(i,s,n):null;let p=CQ(e,t,r);if(p)return p;if(!i.properties&&!s.properties){let l=TA(i,s);if(l?.length)return`Both schemas accept ${l.map(u=>`\`${u}\``).join(", ")}.`}return null}function IQ(e,t,r){let{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:rt(Ue(e.properties??{},n))&&rt(Ue(t.properties??{},n))?`Add \`${n}\` to \`required\` in every schema; the \`discriminator\` cannot read a property a value may omit.`:`Declare \`${n}\` in every schema and add it to \`required\`; the \`discriminator\` cannot read a property a value may omit.`}function CQ(e,t,r){let n=qQ(e,t);if(!n||_A(e.schema,n.leftProperties,n.rightRequired)||_A(t.schema,n.rightProperties,n.leftRequired)||NQ(n)||n.sharedNames.length===0)return null;let o=MQ(n,r);if(!o)return null;let{optionalDistinguishingNames:i,ambiguousNames:s}=o;if(i.length>0){let a=s.length>0?` Other shared properties: ${_g(s)}.`:"";return`Add ${_g(i)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${a}`}return s.length>0?`Both schemas define ${_g(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function qQ(e,t){let r=e.schema.properties,n=t.schema.properties;return!r||!n?null:{leftSource:e.source,rightSource:t.source,leftProperties:r,rightProperties:n,leftRequired:new Set(e.schema.required??[]),rightRequired:new Set(t.schema.required??[]),sharedNames:Object.keys(r).filter(o=>Ue(n,o))}}function NQ({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){let o=[...r].some(s=>!Ue(t,s)&&!n.has(s)),i=[...n].some(s=>!Ue(e,s)&&!r.has(s));return o&&i}function MQ({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:o,rightRequired:i,sharedNames:s},a){let c=[],p=[];for(let l of s){let u=o.has(l)&&i.has(l),f=Za(Ue(r,l),a,e),d=Za(Ue(n,l),a,t);if(!(!f||!d)&&!(Ql(f.schema)||Ql(d.schema))){if($A(f.schema,d.schema)){if(u)return null;c.push(l);continue}p.push(l)}}return{optionalDistinguishingNames:c,ambiguousNames:p}}function _A(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!Ue(t,n))}function $A(e,t){let r=tc(e),n=tc(t);return r&&n?!r.some(o=>n.some(i=>Ht(o,i))):TA(e,t)?.length===0}function Za(e,t,r){if(M(e)){let{node:n,location:o}=t(e,r);return $(n)?{schema:n,source:o?.source.absoluteRef}:void 0}return $(e)?{schema:e,source:r}:void 0}function Ql(e){return Object.keys(e).some(t=>!AQ.has(t)&&!t.startsWith("x-"))}function AA(e){return"nullable"in e&&e.nullable===!0}function ec(e){let t=e.type;if(t===void 0)return;let r=new Set(Array.isArray(t)?t:[t]);return AA(e)&&r.add("null"),r}function TA(e,t){let r=ec(e),n=ec(t);if(!r||!n)return;let o=[...r].filter(i=>n.has(i));return o.length===0&&jQ(e,t)?["integer"]:o}function jQ(e,t){let r=ec(e),n=ec(t);return r?.has("integer")&&n?.has("number")?PA(t):r?.has("number")&&n?.has("integer")?PA(e):!1}function PA(e){let t=tc(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function Jl(e){return AA(e)||ec(e)?.has("null")===!0}function tc(e){if(e.enum)return e.enum;let t="const"in e?e.const:void 0;return rt(t)?[t]:void 0}function _g(e){return e.map(t=>`\`${t}\``).join(", ")}var RA=e=>{let t=new Yr,r=o=>o.schema===void 0,n=o=>(i,s)=>{let{location:a,resolve:c}=s;if(rt(i.example))p(i.example,a.child("example"));else if($(i.examples))for(let l of Object.keys(i.examples))p(i.examples[l],a.child(["examples",l]),!0);function p(l,u,f){if(M(l)){let m=c(l);if(!m.location)return;u=m.location,l=m.node}let d=l;if(f){let m=Sl(l);if(!m)return;d=m.value,u=u.child(m.field)}Kn({example:d,schema:i.schema,options:{location:u,ctx:s,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:o},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-media-type-examples"})}};return{Parameter:{MediaType:{skip:r,leave:n({apiContext:"request"})}},RequestBody:{MediaType:{skip:r,leave:n({apiContext:"request"})}},Response:{MediaType:{skip:r,leave:n({apiContext:"response"})}}}};var OA=()=>({Server(e,{report:t,location:r}){let n=/^(.*[\/.])?(example\.com|localhost)([\/:?].*|$)/;e.url&&n.test(e.url)&&t({message:"Server `url` should not point to example.com or localhost.",location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-example-com"})}});var kA=()=>({Server(e,{report:t,location:r}){e.url&&e.url.endsWith("/")&&e.url!=="/"&&t({message:"Server `url` should not have a trailing slash.",location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-trailing-slash"})}});var CA=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;let n=[];if(Array.isArray(e.servers))for(let o of e.servers){let i=IA(o);i&&n.push(...i)}else{let o=IA(e.servers);if(!o)return;n.push(...o)}for(let o of n)o==="empty"&&t({message:"Server variable with `enum` must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"}),o==="invalidDefaultValue"&&t({message:"Server variable define `enum` and `default`. `enum` must include default value",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"})}});function IA(e){if(e.variables&&Object.keys(e.variables).length===0)return;let t=[];for(let r in e.variables){let n=e.variables[r];if(!n.enum||(Array.isArray(n.enum)&&n.enum?.length===0&&t.push("empty"),!n.default))continue;let o=e.variables[r].default;n.enum&&!n.enum.includes(o)&&t.push("invalidDefaultValue")}if(t.length)return t}var qA=()=>({Server(e,{report:t,location:r}){if(!e?.url)return;let n=e.url.match(/{[^}]+}/g)?.map(i=>i.slice(1,i.length-1))||[],o=e?.variables&&Object.keys(e.variables)||[];for(let i of n)o.includes(i)||t({message:`The \`${i}\` variable is not defined in the \`variables\` objects.`,location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"});for(let i of o)n.includes(i)||t({message:`The \`${i}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",i]).key(),from:r.child("url"),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"})}});var NA=()=>{let e=new Map,t=new Map,r=new Set;function n(o,i,s=!1){e.set(o.absolutePointer,{used:e.get(o.absolutePointer)?.used||!1,referencesDiscriminator:s,location:o,name:i})}return{ref(o,{type:i,resolve:s,key:a,location:c}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(i.name)){let p=s(o);if(!p.location)return;e.set(p.location.absolutePointer,{used:!0,name:a.toString(),location:c})}},Root:{leave(o,{report:i}){e.forEach(s=>{!s.used&&!s.referencesDiscriminator&&i({message:`Component: "${s.name}" is never used.`,location:s.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})}),t.forEach((s,a)=>{r.has(a)||i({message:`Security scheme: "${a}" is never used.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(o,{location:i,key:s,resolve:a}){let c=o.allOf?.some(p=>M(p)&&a(p)?.node?.discriminator);n(i,s.toString(),c)}},NamedParameters:{Parameter(o,{location:i,key:s}){n(i,s.toString())}},NamedResponses:{Response(o,{location:i,key:s}){n(i,s.toString())}},NamedExamples:{Example(o,{location:i,key:s}){n(i,s.toString())}},NamedRequestBodies:{RequestBody(o,{location:i,key:s}){n(i,s.toString())}},NamedHeaders:{Header(o,{location:i,key:s}){n(i,s.toString())}},NamedMediaTypes:{MediaTypesMap(o,{location:i,key:s}){n(i,s.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{rawLocation:i,key:s}){t.set(s.toString(),i)}},SecurityRequirement(o){for(let i of Object.keys(o))r.add(i)}}};var MA=()=>({Schema:{leave(e,t){"nullable"in e&&!("type"in e)&&t.report({message:"The `type` field must be defined when the `nullable` field is used.",location:t.location.child(["nullable"]),reference:"https://redocly.com/docs/cli/rules/oas/nullable-type-sibling"})}}});var Pg="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",jA=()=>({Response:{skip(e,t){return!/4[Xx0-9]{2}/.test(`${t}`)},enter(e,{report:t,location:r}){(!e.content||!e.content["application/problem+json"])&&t({message:"Response `4xx` must have content-type `application/problem+json`.",location:r.key(),reference:Pg})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(ur({fieldName:"schema",value:e,ctx:t,reference:Pg}),!e.schema)return;let{schema:r,location:n}=Fo(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(let o of["type","title"])xn(e.schema,o,t)||t.report({message:zo("SchemaProperties",o),location:r.properties?n.child(["properties",o]).key():n.key(),reference:Pg})}}}});var DA=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){eo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}},Callback:{RequestBody(){},Response:{leave(t,r){eo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){eo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}});var LA=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},MediaType:{Schema(n,{report:o,location:i}){if(n.type!=="object")return;let s=t[r]||t[wn(r)]||t[wn(r).toLowerCase()]||[];for(let a of s)n.properties?.[a]||o({message:`Response object must contain a top-level "${a}" property.`,location:i.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}}};var UA=({allowedValues:e})=>({Paths:{Response:{leave(t,r){eo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}},Callback:{Response(){},RequestBody:{leave(t,r){eo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){eo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}});var FA=()=>{let e=`^[${Nc}]+$`;function t(r,n,o,i){new RegExp(e).test(r)||n({message:`The map key in ${i} "${r}" does not match the regular expression "${e}"`,location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-components-invalid-map-name"})}return{NamedSchemas:{Schema(r,{key:n,report:o,location:i}){t(n,o,i,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:o,location:i}){t(n,o,i,"parameters")}},NamedResponses:{Response(r,{key:n,report:o,location:i}){t(n,o,i,"responses")}},NamedExamples:{Example(r,{key:n,report:o,location:i}){t(n,o,i,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:o,location:i}){t(n,o,i,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:o,location:i}){t(n,o,i,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:o,location:i}){t(n,o,i,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:o,location:i}){t(n,o,i,"links")}},NamedCallbacks:{Callback(r,{key:n,report:o,location:i}){t(n,o,i,"callbacks")}}}};var zA=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},Schema:{leave(t,r){let n=t.discriminator?.propertyName;if(!n)return;let o=t.discriminator?.defaultMapping;if(o===void 0){let i=new Set,s=(a,c)=>{let p=Fo(a,r,c);return!!(!p.schema||i.has(p.schema)||(i.add(p.schema),p.schema.required?.includes(n)||p.schema.allOf?.some(l=>s(l,p.location))||p.schema.oneOf?.every(l=>s(l,p.location))||p.schema.anyOf?.every(l=>s(l,p.location))))};s(t)||r.report({message:`Discriminator with optional property '${n}' must include a defaultMapping field.`,location:r.location.child("discriminator"),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}else r.resolve({$ref:o}).node===void 0&&!e.includes(o)&&r.report({message:`defaultMapping value '${o}' does not point to an existing schema component.`,location:r.location.child(["discriminator","defaultMapping"]),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}}}};var VA=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:o,location:i}){e!==void 0&&t!==void 0&&o({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:i,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),n!==void 0&&t!==void 0&&o({message:"The 'serializedValue' and 'externalValue' fields of an example object are mutually exclusive.",location:i,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&r!==void 0&&o({message:"The 'value' filed must be absent if 'dataValue' is present in an example object.",location:i.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&n!==void 0&&o({message:"The 'value' filed must be absent if 'serializedValue' is present in an example object.",location:i.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"})}});var BA=()=>({MediaType:{leave(e,t){("prefixEncoding"in e&&"encoding"in e||"itemEncoding"in e&&"encoding"in e)&&t.report({message:"The 'encoding' field cannot be used together with 'prefixEncoding' or 'itemEncoding'.",location:t.location.child("encoding").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-encoding-combinations"})}}});var HA=()=>{let e;return{Root:{enter(t){e=t.tags??[]}},Tag:{leave(t,{report:r,location:n}){if(t?.parent===void 0)return;if(!e.find(s=>s.name===t.parent)){r({message:`Tag parent '${t.parent}' is not defined in the API description.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}let o=new Set(t.name),i=t.parent;for(;i!==void 0;){if(o.has(i)){r({message:`Circular reference detected in tag parent hierarchy for tag '${t.name}'.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}o.add(i),i=e.find(s=>s.name===i)?.parent}}}}};function KA(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function GA(e,t){let r=t.location.child("parameters");e>1&&t.report({message:"Parameters with `in: querystring` should be defined only once per path/operation parameter set.",location:r,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"})}function WA(e,t,r,n){if(e.in==="query"){r.querystringLocation&&n.report({message:"Parameters with `in: query` cannot be used together with `in: querystring` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.queryLocation??=t;return}e.in==="querystring"&&(r.queryLocation&&n.report({message:"Parameters with `in: querystring` cannot be used together with `in: query` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.querystringLocation??=t)}var YA=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,GA(KA(n.parameters||[]),o)},Parameter(n,o){WA(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};let i=r+KA(n.parameters||[]);GA(i,o)},Parameter(n,o){WA(n,o.location,t,o)}}}}};var QA=()=>({ref:{leave(e,{report:t,location:r,type:n,specVersion:o}){let i=o!=="oas3_0";if(!(i&&n.name==="Schema"||n.name==="PathItem"))for(let s of Object.keys(e))s!=="$ref"&&(i&&(s==="summary"||s==="description")||t({message:`Property \`${s}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(s).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"}))}}});var JA={struct:lt,"info-contact":dr,"info-license":ps,"info-license-strict":Wn,"operation-2xx-response":Rl,"operation-4xx-response":Ol,"operation-4xx-problem-details-rfc7807":jA,assertions:Rt,"operation-operationId-unique":Il,"operation-parameters-unique":ql,"operation-tag-defined":jl,"no-example-value-and-externalValue":xA,"no-mixed-number-range-constraints":Gn,"no-enum-type-mismatch":Xr,"no-path-trailing-slash":Tl,"no-empty-servers":vA,"path-declaration-must-exist":Ll,"operation-operationId-url-safe":Cl,"operation-operationId":Qn,"operation-summary":Ml,"tags-alphabetical":Zn,"no-server-example.com":OA,"no-server-trailing-slash":kA,"tag-description":Xn,"operation-description":kl,"no-unused-components":NA,"path-not-include-query":Fl,"path-parameters-defined":ls,"path-params-defined":ls,"parameter-description":Dl,"operation-singular-tag":Nl,"security-defined":Gl,"security-scopes-defined":as,"no-unresolved-refs":pt,"paths-kebab-case":Vl,"boolean-parameter-prefixes":yA,"path-http-verbs-order":Ul,"no-illogical-composition-keywords":EA,"no-invalid-media-type-examples":RA,"no-identical-paths":El,"no-ambiguous-paths":wl,"no-undefined-server-variable":qA,"no-server-variables-empty-enum":CA,"no-http-verbs-in-paths":Pl,"request-mime-type":DA,"response-mime-type":UA,"path-segment-plural":zl,"no-invalid-schema-examples":Al,"no-invalid-parameter-examples":$l,"response-contains-header":Hl,"response-contains-property":LA,"scalar-property-missing-example":Kl,"spec-components-invalid-map-name":FA,"required-string-property-missing-min-length":Bl,"spec-strict-refs":Wl,"component-name-unique":bA,"array-parameter-serialization":hA,"no-required-schema-properties-undefined":Zr,"no-schema-type-mismatch":en,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn,"nullable-type-sibling":MA,"spec-no-invalid-tag-parents":HA,"spec-no-invalid-encoding-combinations":BA,"spec-discriminator-defaultMapping":zA,"spec-example-values":VA,"spec-querystring-parameters":YA,"spec-ref-siblings":QA},XA={};var ZA=()=>{let e=new Map;function t(r,n){e.set(r.absolutePointer,{used:e.get(r.absolutePointer)?.used||!1,location:r,name:n})}return{ref(r,{type:n,resolve:o,key:i,location:s}){if(["Schema","ContentDescriptor","Example","Link","ErrorObject","ExamplePairing","Tag"].includes(n.name)){let a=o(r);if(!a.location)return;e.set(a.location.absolutePointer,{used:!0,name:i.toString(),location:s})}},Root:{leave(r,{report:n}){e.forEach(o=>{o.used||n({message:`Component: "${o.name}" is never used.`,location:o.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(r,{location:n,key:o}){t(n,o.toString())}},NamedContentDescriptors:{ContentDescriptor(r,{location:n,key:o}){t(n,o.toString())}},NamedExamples:{Example(r,{location:n,key:o}){t(n,o.toString())}},NamedLinks:{Link(r,{location:n,key:o}){t(n,o.toString())}},NamedErrors:{ErrorObject(r,{location:n,key:o}){t(n,o.toString())}},NamedExamplePairingObjects:{ExamplePairing(r,{location:n,key:o}){t(n,o.toString())}},NamedTags:{Tag(r,{location:n,key:o}){t(n,o.toString())}}}};var eT=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let o=new Set;e.params.forEach((i,s)=>{let a=r(i);if(!a.node)return;let c=a.node,p=c.name;p&&(o.has(p)&&t({message:`Parameter names must be unique. Duplicate parameter name '${c.name}' found.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),o.add(p))})}}});var tT=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let o=!1;e.params.forEach((i,s)=>{let a=r(i);if(!a.node)return;let c=a.node;if(!c.name)return;c.required===!0?o&&t({message:`Required parameter '${c.name}' must be positioned before optional parameters.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-required-params-after-optional"}):o=!0})}}});var rT={struct:lt,"no-unresolved-refs":pt,assertions:Rt,"info-license":ps,"no-unused-components":ZA,"info-contact":dr,"spec-no-duplicated-method-params":eT,"spec-no-required-params-after-optional":tT,"spec-ref-siblings":Jn},nT={};var oT={"info-contact":dr,struct:lt,"no-unresolved-refs":pt,assertions:Rt},iT={};var DQ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error"},oas3_0Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","nullable-type-sibling":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_1Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_2Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-querystring-parameters":"error"},async2Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"error"},openrpc1Rules:{"info-contact":"error","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},sT=DQ;var LQ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-2xx-response":"warn","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","nullable-type-sibling":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-discriminator-defaultMapping":"off","spec-example-values":"off","spec-no-invalid-encoding-combinations":"warn","spec-no-invalid-tag-parents":"warn","spec-querystring-parameters":"error","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"off"},arazzo1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},graphqlRules:{"no-unused-types":"off","type-description":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"off"}},aT=LQ;var UQ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":{severity:"error",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","nullable-type-sibling":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},cT=UQ;var FQ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"warn","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","nullable-type-sibling":"error","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"warn","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},arazzo1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-license":"warn","no-unused-components":"warn","info-contact":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"warn"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},pT=FQ;var zQ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":{severity:"off",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","nullable-type-sibling":"error","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},lT=zQ;var VQ={recommended:pT,"recommended-strict":cT,minimal:aT,all:sT,spec:lT},Eg={id:"",rules:{oas3:JA,oas2:fA,async2:j$,async3:B$,arazzo1:O$,overlay1:oT,openrpc1:rT,graphql:tA},preprocessors:{oas3:XA,oas2:mA,async2:D$,async3:H$,arazzo1:k$,overlay1:iT,openrpc1:nT},decorators:{oas3:QE,oas2:HE,async2:zE,async3:VE,arazzo1:FE,overlay1:XE,openrpc1:JE},configs:VQ};import*as rc from"node:fs";import*as TT from"node:path";import*as qg from"node:fs";import JQ from"node:module";import*as Ot from"node:path";import*as $T from"node:url";var BQ={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Wt(e,t){let r={};r.any={enter:[],leave:[]};for(let s of Object.keys(t))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(let{ruleId:s,severity:a,message:c,visitor:p}of e)i({ruleId:s,severity:a,message:c},p,null);for(let s of Object.keys(r))r[s].enter.sort((a,c)=>c.depth-a.depth),r[s].leave.sort((a,c)=>a.depth-c.depth);return r;function n(s,a,c,p,l=[]){if(l.includes(a))return;l=[...l,a];let u=new Set;for(let d of Object.values(a.properties)){if(d===c){f(s,l);continue}$(d)&&d.name!==void 0&&u.add(d)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?f(s,l):a.additionalProperties.name!==void 0&&u.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?f(s,l):a.items.name!==void 0&&u.add(a.items)),a.extensionsPrefix&&u.add(yr);for(let d of Array.from(u.values()))n(s,d,c,p,l);function f(d,m){for(let h of m.slice(1))r[h.name]=r[h.name]||{enter:[],leave:[]},r[h.name].enter.push({...d,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:p}})}}function o(s,a){if(Array.isArray(a)){let c=a.find(p=>s[p])||void 0;return c&&s[c]}return s[a]}function i(s,a,c,p=0){let l=Object.keys(t);if(p===0)l.push("any"),l.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(let u of l){let f=a[u]||o(a,BQ[u]),d=r[u];if(!f)continue;let m,h,y,g=$(f);if(u==="ref"&&g&&f.skip)throw new Error("ref() visitor does not support skip");typeof f=="function"?m=f:g&&(m=f.enter,h=f.leave,y=f.skip);let b=(m?1:0)+(h?1:0)+(y?1:0),v=g&&Object.keys(f).length>b,w={activatedOn:null,type:t[u],parent:c,isSkippedLevel:!1};if(v&&i(s,f,w,p+1),c&&n(s,c.type,t[u],c),m||g){if(m&&typeof m!="function")throw new Error("DEV: should be function");d.enter.push({...s,visit:m||(()=>{}),skip:y,depth:p,context:w})}if(h){if(typeof h!="function")throw new Error("DEV: should be function");d.leave.push({...s,visit:h,depth:p,context:w})}}}}import HQ from"node:path";var de=(e,t)=>{if(t)for(let r of Object.keys(t))$(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Pe(e,t){if(t)for(let r of Object.keys(t))e.hasOwnProperty(r)&&($(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function uT(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function je(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function Xl(e){let t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},arazzo1_1Rules:{},overlay1Rules:{},openrpc1Rules:{},graphqlRules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},arazzo1_1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},arazzo1_1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(let r of e){if($(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|