@redocly/openapi-docs 3.11.0-next.7 → 3.11.0-next.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "3.11.0-next.
|
|
5
|
+
* Version: "3.11.0-next.8"
|
|
6
6
|
*/(function($d,au){typeof exports=="object"&&typeof module=="object"?module.exports=au(require("null")):typeof define=="function"&&define.amd?define(["null"],au):typeof exports=="object"?exports.RedoclyOpenAPIDocs=au(require("null")):$d.RedoclyOpenAPIDocs=au($d.null)})(this,u1=>(()=>{var $d={61203:(b,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const o=e(85968),f=e(96735),p=e(44723),C=e(48226),u="https://json-schema.org/draft/2020-12/schema";class g extends o.default{constructor(P={}){super({...P,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),f.default.forEach(P=>this.addVocabulary(P)),this.opts.discriminator&&this.addKeyword(p.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:P,meta:O}=this.opts;O&&(C.default.call(this,P),this.refs["http://json-schema.org/schema"]=u)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(u)?u:void 0)}}b.exports=t=g,Object.defineProperty(t,"__esModule",{value:!0}),t.default=g;var d=e(9804);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var v=e(57287);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return v._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return v.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return v.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return v.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return v.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return v.CodeGen}})},76202:(b,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0,t._=p,t.str=u,t.addCodeArg=g,t.strConcat=y,t.stringify=O,t.safeStringify=A,t.getProperty=E,t.getEsmExportName=x,t.regexpCode=n;class e{}t._CodeOrName=e,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class o extends e{constructor(c){if(super(),!t.IDENTIFIER.test(c))throw new Error("CodeGen: name must be a valid identifier");this.str=c}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=o;class f extends e{constructor(c){super(),this._items=typeof c=="string"?[c]:c}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const c=this._items[0];return c===""||c==='""'}get str(){var c;return(c=this._str)!==null&&c!==void 0?c:this._str=this._items.reduce((T,I)=>`${T}${I}`,"")}get names(){var c;return(c=this._names)!==null&&c!==void 0?c:this._names=this._items.reduce((T,I)=>(I instanceof o&&(T[I.str]=(T[I.str]||0)+1),T),{})}}t._Code=f,t.nil=new f("");function p(a,...c){const T=[a[0]];let I=0;for(;I<c.length;)g(T,c[I]),T.push(a[++I]);return new f(T)}const C=new f("+");function u(a,...c){const T=[A(a[0])];let I=0;for(;I<c.length;)T.push(C),g(T,c[I]),T.push(C,A(a[++I]));return d(T),new f(T)}function g(a,c){c instanceof f?a.push(...c._items):c instanceof o?a.push(c):a.push(P(c))}function d(a){let c=1;for(;c<a.length-1;){if(a[c]===C){const T=v(a[c-1],a[c+1]);if(T!==void 0){a.splice(c-1,3,T);continue}a[c++]="+"}c++}}function v(a,c){if(c==='""')return a;if(a==='""')return c;if(typeof a=="string")return c instanceof o||a[a.length-1]!=='"'?void 0:typeof c!="string"?`${a.slice(0,-1)}${c}"`:c[0]==='"'?a.slice(0,-1)+c.slice(1):void 0;if(typeof c=="string"&&c[0]==='"'&&!(a instanceof o))return`"${a}${c.slice(1)}`}function y(a,c){return c.emptyStr()?a:a.emptyStr()?c:u`${a}${c}`}function P(a){return typeof a=="number"||typeof a=="boolean"||a===null?a:A(Array.isArray(a)?a.join(","):a)}function O(a){return new f(A(a))}function A(a){return JSON.stringify(a).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function E(a){return typeof a=="string"&&t.IDENTIFIER.test(a)?new f(`.${a}`):p`[${a}]`}function x(a){if(typeof a=="string"&&t.IDENTIFIER.test(a))return new f(`${a}`);throw new Error(`CodeGen: invalid export name: ${a}, use explicit $id name mapping`)}function n(a){return new f(a.toString())}},57287:(b,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0,t.not=pe,t.and=je,t.or=re;const o=e(76202),f=e(34863);var p=e(76202);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return p.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return p.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return p.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}});var C=e(34863);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return C.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return C.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return C.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return C.varKinds}}),t.operators={GT:new o._Code(">"),GTE:new o._Code(">="),LT:new o._Code("<"),LTE:new o._Code("<="),EQ:new o._Code("==="),NEQ:new o._Code("!=="),NOT:new o._Code("!"),OR:new o._Code("||"),AND:new o._Code("&&"),ADD:new o._Code("+")};class u{optimizeNodes(){return this}optimizeNames(_,fe){return this}}class g extends u{constructor(_,fe,Pe){super(),this.varKind=_,this.name=fe,this.rhs=Pe}render({es5:_,_n:fe}){const Pe=_?f.varKinds.var:this.varKind,Ue=this.rhs===void 0?"":` = ${this.rhs}`;return`${Pe} ${this.name}${Ue};`+fe}optimizeNames(_,fe){if(_[this.name.str])return this.rhs&&(this.rhs=$(this.rhs,_,fe)),this}get names(){return this.rhs instanceof o._CodeOrName?this.rhs.names:{}}}class d extends u{constructor(_,fe,Pe){super(),this.lhs=_,this.rhs=fe,this.sideEffects=Pe}render({_n:_}){return`${this.lhs} = ${this.rhs};`+_}optimizeNames(_,fe){if(!(this.lhs instanceof o.Name&&!_[this.lhs.str]&&!this.sideEffects))return this.rhs=$(this.rhs,_,fe),this}get names(){const _=this.lhs instanceof o.Name?{}:{...this.lhs.names};return U(_,this.rhs)}}class v extends d{constructor(_,fe,Pe,Ue){super(_,Pe,Ue),this.op=fe}render({_n:_}){return`${this.lhs} ${this.op}= ${this.rhs};`+_}}class y extends u{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`${this.label}:`+_}}class P extends u{constructor(_){super(),this.label=_,this.names={}}render({_n:_}){return`break${this.label?` ${this.label}`:""};`+_}}class O extends u{constructor(_){super(),this.error=_}render({_n:_}){return`throw ${this.error};`+_}get names(){return this.error.names}}class A extends u{constructor(_){super(),this.code=_}render({_n:_}){return`${this.code};`+_}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(_,fe){return this.code=$(this.code,_,fe),this}get names(){return this.code instanceof o._CodeOrName?this.code.names:{}}}class E extends u{constructor(_=[]){super(),this.nodes=_}render(_){return this.nodes.reduce((fe,Pe)=>fe+Pe.render(_),"")}optimizeNodes(){const{nodes:_}=this;let fe=_.length;for(;fe--;){const Pe=_[fe].optimizeNodes();Array.isArray(Pe)?_.splice(fe,1,...Pe):Pe?_[fe]=Pe:_.splice(fe,1)}return _.length>0?this:void 0}optimizeNames(_,fe){const{nodes:Pe}=this;let Ue=Pe.length;for(;Ue--;){const Ke=Pe[Ue];Ke.optimizeNames(_,fe)||(G(_,Ke.names),Pe.splice(Ue,1))}return Pe.length>0?this:void 0}get names(){return this.nodes.reduce((_,fe)=>k(_,fe.names),{})}}class x extends E{render(_){return"{"+_._n+super.render(_)+"}"+_._n}}class n extends E{}class a extends x{}a.kind="else";class c extends x{constructor(_,fe){super(fe),this.condition=_}render(_){let fe=`if(${this.condition})`+super.render(_);return this.else&&(fe+="else "+this.else.render(_)),fe}optimizeNodes(){super.optimizeNodes();const _=this.condition;if(_===!0)return this.nodes;let fe=this.else;if(fe){const Pe=fe.optimizeNodes();fe=this.else=Array.isArray(Pe)?new a(Pe):Pe}if(fe)return _===!1?fe instanceof c?fe:fe.nodes:this.nodes.length?this:new c(pe(_),fe instanceof c?[fe]:fe.nodes);if(!(_===!1||!this.nodes.length))return this}optimizeNames(_,fe){var Pe;if(this.else=(Pe=this.else)===null||Pe===void 0?void 0:Pe.optimizeNames(_,fe),!!(super.optimizeNames(_,fe)||this.else))return this.condition=$(this.condition,_,fe),this}get names(){const _=super.names;return U(_,this.condition),this.else&&k(_,this.else.names),_}}c.kind="if";class T extends x{}T.kind="for";class I extends T{constructor(_){super(),this.iteration=_}render(_){return`for(${this.iteration})`+super.render(_)}optimizeNames(_,fe){if(super.optimizeNames(_,fe))return this.iteration=$(this.iteration,_,fe),this}get names(){return k(super.names,this.iteration.names)}}class L extends T{constructor(_,fe,Pe,Ue){super(),this.varKind=_,this.name=fe,this.from=Pe,this.to=Ue}render(_){const fe=_.es5?f.varKinds.var:this.varKind,{name:Pe,from:Ue,to:Ke}=this;return`for(${fe} ${Pe}=${Ue}; ${Pe}<${Ke}; ${Pe}++)`+super.render(_)}get names(){const _=U(super.names,this.from);return U(_,this.to)}}class M extends T{constructor(_,fe,Pe,Ue){super(),this.loop=_,this.varKind=fe,this.name=Pe,this.iterable=Ue}render(_){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(_)}optimizeNames(_,fe){if(super.optimizeNames(_,fe))return this.iterable=$(this.iterable,_,fe),this}get names(){return k(super.names,this.iterable.names)}}class N extends x{constructor(_,fe,Pe){super(),this.name=_,this.args=fe,this.async=Pe}render(_){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(_)}}N.kind="func";class j extends E{render(_){return"return "+super.render(_)}}j.kind="return";class z extends x{render(_){let fe="try"+super.render(_);return this.catch&&(fe+=this.catch.render(_)),this.finally&&(fe+=this.finally.render(_)),fe}optimizeNodes(){var _,fe;return super.optimizeNodes(),(_=this.catch)===null||_===void 0||_.optimizeNodes(),(fe=this.finally)===null||fe===void 0||fe.optimizeNodes(),this}optimizeNames(_,fe){var Pe,Ue;return super.optimizeNames(_,fe),(Pe=this.catch)===null||Pe===void 0||Pe.optimizeNames(_,fe),(Ue=this.finally)===null||Ue===void 0||Ue.optimizeNames(_,fe),this}get names(){const _=super.names;return this.catch&&k(_,this.catch.names),this.finally&&k(_,this.finally.names),_}}class B extends x{constructor(_){super(),this.error=_}render(_){return`catch(${this.error})`+super.render(_)}}B.kind="catch";class Y extends x{render(_){return"finally"+super.render(_)}}Y.kind="finally";class K{constructor(_,fe={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...fe,_n:fe.lines?`
|
|
7
7
|
`:""},this._extScope=_,this._scope=new f.Scope({parent:_}),this._nodes=[new n]}toString(){return this._root.render(this.opts)}name(_){return this._scope.name(_)}scopeName(_){return this._extScope.name(_)}scopeValue(_,fe){const Pe=this._extScope.value(_,fe);return(this._values[Pe.prefix]||(this._values[Pe.prefix]=new Set)).add(Pe),Pe}getScopeValue(_,fe){return this._extScope.getValue(_,fe)}scopeRefs(_){return this._extScope.scopeRefs(_,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(_,fe,Pe,Ue){const Ke=this._scope.toName(fe);return Pe!==void 0&&Ue&&(this._constants[Ke.str]=Pe),this._leafNode(new g(_,Ke,Pe)),Ke}const(_,fe,Pe){return this._def(f.varKinds.const,_,fe,Pe)}let(_,fe,Pe){return this._def(f.varKinds.let,_,fe,Pe)}var(_,fe,Pe){return this._def(f.varKinds.var,_,fe,Pe)}assign(_,fe,Pe){return this._leafNode(new d(_,fe,Pe))}add(_,fe){return this._leafNode(new v(_,t.operators.ADD,fe))}code(_){return typeof _=="function"?_():_!==o.nil&&this._leafNode(new A(_)),this}object(..._){const fe=["{"];for(const[Pe,Ue]of _)fe.length>1&&fe.push(","),fe.push(Pe),(Pe!==Ue||this.opts.es5)&&(fe.push(":"),(0,o.addCodeArg)(fe,Ue));return fe.push("}"),new o._Code(fe)}if(_,fe,Pe){if(this._blockNode(new c(_)),fe&&Pe)this.code(fe).else().code(Pe).endIf();else if(fe)this.code(fe).endIf();else if(Pe)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(_){return this._elseNode(new c(_))}else(){return this._elseNode(new a)}endIf(){return this._endBlockNode(c,a)}_for(_,fe){return this._blockNode(_),fe&&this.code(fe).endFor(),this}for(_,fe){return this._for(new I(_),fe)}forRange(_,fe,Pe,Ue,Ke=this.opts.es5?f.varKinds.var:f.varKinds.let){const ut=this._scope.toName(_);return this._for(new L(Ke,ut,fe,Pe),()=>Ue(ut))}forOf(_,fe,Pe,Ue=f.varKinds.const){const Ke=this._scope.toName(_);if(this.opts.es5){const ut=fe instanceof o.Name?fe:this.var("_arr",fe);return this.forRange("_i",0,(0,o._)`${ut}.length`,yt=>{this.var(Ke,(0,o._)`${ut}[${yt}]`),Pe(Ke)})}return this._for(new M("of",Ue,Ke,fe),()=>Pe(Ke))}forIn(_,fe,Pe,Ue=this.opts.es5?f.varKinds.var:f.varKinds.const){if(this.opts.ownProperties)return this.forOf(_,(0,o._)`Object.keys(${fe})`,Pe);const Ke=this._scope.toName(_);return this._for(new M("in",Ue,Ke,fe),()=>Pe(Ke))}endFor(){return this._endBlockNode(T)}label(_){return this._leafNode(new y(_))}break(_){return this._leafNode(new P(_))}return(_){const fe=new j;if(this._blockNode(fe),this.code(_),fe.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(_,fe,Pe){if(!fe&&!Pe)throw new Error('CodeGen: "try" without "catch" and "finally"');const Ue=new z;if(this._blockNode(Ue),this.code(_),fe){const Ke=this.name("e");this._currNode=Ue.catch=new B(Ke),fe(Ke)}return Pe&&(this._currNode=Ue.finally=new Y,this.code(Pe)),this._endBlockNode(B,Y)}throw(_){return this._leafNode(new O(_))}block(_,fe){return this._blockStarts.push(this._nodes.length),_&&this.code(_).endBlock(fe),this}endBlock(_){const fe=this._blockStarts.pop();if(fe===void 0)throw new Error("CodeGen: not in self-balancing block");const Pe=this._nodes.length-fe;if(Pe<0||_!==void 0&&Pe!==_)throw new Error(`CodeGen: wrong number of nodes: ${Pe} vs ${_} expected`);return this._nodes.length=fe,this}func(_,fe=o.nil,Pe,Ue){return this._blockNode(new N(_,fe,Pe)),Ue&&this.code(Ue).endFunc(),this}endFunc(){return this._endBlockNode(N)}optimize(_=1){for(;_-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(_){return this._currNode.nodes.push(_),this}_blockNode(_){this._currNode.nodes.push(_),this._nodes.push(_)}_endBlockNode(_,fe){const Pe=this._currNode;if(Pe instanceof _||fe&&Pe instanceof fe)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${fe?`${_.kind}/${fe.kind}`:_.kind}"`)}_elseNode(_){const fe=this._currNode;if(!(fe instanceof c))throw new Error('CodeGen: "else" without "if"');return this._currNode=fe.else=_,this}get _root(){return this._nodes[0]}get _currNode(){const _=this._nodes;return _[_.length-1]}set _currNode(_){const fe=this._nodes;fe[fe.length-1]=_}}t.CodeGen=K;function k(le,_){for(const fe in _)le[fe]=(le[fe]||0)+(_[fe]||0);return le}function U(le,_){return _ instanceof o._CodeOrName?k(le,_.names):le}function $(le,_,fe){if(le instanceof o.Name)return Pe(le);if(!Ue(le))return le;return new o._Code(le._items.reduce((Ke,ut)=>(ut instanceof o.Name&&(ut=Pe(ut)),ut instanceof o._Code?Ke.push(...ut._items):Ke.push(ut),Ke),[]));function Pe(Ke){const ut=fe[Ke.str];return ut===void 0||_[Ke.str]!==1?Ke:(delete _[Ke.str],ut)}function Ue(Ke){return Ke instanceof o._Code&&Ke._items.some(ut=>ut instanceof o.Name&&_[ut.str]===1&&fe[ut.str]!==void 0)}}function G(le,_){for(const fe in _)le[fe]=(le[fe]||0)-(_[fe]||0)}function pe(le){return typeof le=="boolean"||typeof le=="number"||le===null?!le:(0,o._)`!${Q(le)}`}const ne=te(t.operators.AND);function je(...le){return le.reduce(ne)}const Se=te(t.operators.OR);function re(...le){return le.reduce(Se)}function te(le){return(_,fe)=>_===o.nil?fe:fe===o.nil?_:(0,o._)`${Q(_)} ${le} ${Q(fe)}`}function Q(le){return le instanceof o.Name?le:(0,o._)`(${le})`}},34863:(b,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const o=e(76202);class f extends Error{constructor(y){super(`CodeGen: "code" for ${y} not defined`),this.value=y.value}}var p;(function(v){v[v.Started=0]="Started",v[v.Completed=1]="Completed"})(p||(t.UsedValueState=p={})),t.varKinds={const:new o.Name("const"),let:new o.Name("let"),var:new o.Name("var")};class C{constructor({prefixes:y,parent:P}={}){this._names={},this._prefixes=y,this._parent=P}toName(y){return y instanceof o.Name?y:this.name(y)}name(y){return new o.Name(this._newName(y))}_newName(y){const P=this._names[y]||this._nameGroup(y);return`${y}${P.index++}`}_nameGroup(y){var P,O;if(!((O=(P=this._parent)===null||P===void 0?void 0:P._prefixes)===null||O===void 0)&&O.has(y)||this._prefixes&&!this._prefixes.has(y))throw new Error(`CodeGen: prefix "${y}" is not allowed in this scope`);return this._names[y]={prefix:y,index:0}}}t.Scope=C;class u extends o.Name{constructor(y,P){super(P),this.prefix=y}setValue(y,{property:P,itemIndex:O}){this.value=y,this.scopePath=(0,o._)`.${new o.Name(P)}[${O}]`}}t.ValueScopeName=u;const g=(0,o._)`\n`;class d extends C{constructor(y){super(y),this._values={},this._scope=y.scope,this.opts={...y,_n:y.lines?g:o.nil}}get(){return this._scope}name(y){return new u(y,this._newName(y))}value(y,P){var O;if(P.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const A=this.toName(y),{prefix:E}=A,x=(O=P.key)!==null&&O!==void 0?O:P.ref;let n=this._values[E];if(n){const T=n.get(x);if(T)return T}else n=this._values[E]=new Map;n.set(x,A);const a=this._scope[E]||(this._scope[E]=[]),c=a.length;return a[c]=P.ref,A.setValue(P,{property:E,itemIndex:c}),A}getValue(y,P){const O=this._values[y];if(O)return O.get(P)}scopeRefs(y,P=this._values){return this._reduceValues(P,O=>{if(O.scopePath===void 0)throw new Error(`CodeGen: name "${O}" has no value`);return(0,o._)`${y}${O.scopePath}`})}scopeCode(y=this._values,P,O){return this._reduceValues(y,A=>{if(A.value===void 0)throw new Error(`CodeGen: name "${A}" has no value`);return A.value.code},P,O)}_reduceValues(y,P,O={},A){let E=o.nil;for(const x in y){const n=y[x];if(!n)continue;const a=O[x]=O[x]||new Map;n.forEach(c=>{if(a.has(c))return;a.set(c,p.Started);let T=P(c);if(T){const I=this.opts.es5?t.varKinds.var:t.varKinds.const;E=(0,o._)`${E}${I} ${c} = ${T};${this.opts._n}`}else if(T=A?.(c))E=(0,o._)`${E}${T}${this.opts._n}`;else throw new f(c);a.set(c,p.Completed)})}return E}}t.ValueScope=d},39054:(b,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keyword$DataError=t.keywordError=void 0,t.reportError=C,t.reportExtraError=u,t.resetErrorsCount=g,t.extendErrors=d;const o=e(57287),f=e(977),p=e(5057);t.keywordError={message:({keyword:a})=>(0,o.str)`must pass "${a}" keyword validation`},t.keyword$DataError={message:({keyword:a,schemaType:c})=>c?(0,o.str)`"${a}" keyword must be ${c} ($data)`:(0,o.str)`"${a}" keyword is invalid ($data)`};function C(a,c=t.keywordError,T,I){const{it:L}=a,{gen:M,compositeRule:N,allErrors:j}=L,z=O(a,c,T);I??(N||j)?v(M,z):y(L,(0,o._)`[${z}]`)}function u(a,c=t.keywordError,T){const{it:I}=a,{gen:L,compositeRule:M,allErrors:N}=I,j=O(a,c,T);v(L,j),M||N||y(I,p.default.vErrors)}function g(a,c){a.assign(p.default.errors,c),a.if((0,o._)`${p.default.vErrors} !== null`,()=>a.if(c,()=>a.assign((0,o._)`${p.default.vErrors}.length`,c),()=>a.assign(p.default.vErrors,null)))}function d({gen:a,keyword:c,schemaValue:T,data:I,errsCount:L,it:M}){if(L===void 0)throw new Error("ajv implementation error");const N=a.name("err");a.forRange("i",L,p.default.errors,j=>{a.const(N,(0,o._)`${p.default.vErrors}[${j}]`),a.if((0,o._)`${N}.instancePath === undefined`,()=>a.assign((0,o._)`${N}.instancePath`,(0,o.strConcat)(p.default.instancePath,M.errorPath))),a.assign((0,o._)`${N}.schemaPath`,(0,o.str)`${M.errSchemaPath}/${c}`),M.opts.verbose&&(a.assign((0,o._)`${N}.schema`,T),a.assign((0,o._)`${N}.data`,I))})}function v(a,c){const T=a.const("err",c);a.if((0,o._)`${p.default.vErrors} === null`,()=>a.assign(p.default.vErrors,(0,o._)`[${T}]`),(0,o._)`${p.default.vErrors}.push(${T})`),a.code((0,o._)`${p.default.errors}++`)}function y(a,c){const{gen:T,validateName:I,schemaEnv:L}=a;L.$async?T.throw((0,o._)`new ${a.ValidationError}(${c})`):(T.assign((0,o._)`${I}.errors`,c),T.return(!1))}const P={keyword:new o.Name("keyword"),schemaPath:new o.Name("schemaPath"),params:new o.Name("params"),propertyName:new o.Name("propertyName"),message:new o.Name("message"),schema:new o.Name("schema"),parentSchema:new o.Name("parentSchema")};function O(a,c,T){const{createErrors:I}=a.it;return I===!1?(0,o._)`{}`:A(a,c,T)}function A(a,c,T={}){const{gen:I,it:L}=a,M=[E(L,T),x(a,T)];return n(a,c,M),I.object(...M)}function E({errorPath:a},{instancePath:c}){const T=c?(0,o.str)`${a}${(0,f.getErrorPath)(c,f.Type.Str)}`:a;return[p.default.instancePath,(0,o.strConcat)(p.default.instancePath,T)]}function x({keyword:a,it:{errSchemaPath:c}},{schemaPath:T,parentSchema:I}){let L=I?c:(0,o.str)`${c}/${a}`;return T&&(L=(0,o.str)`${L}${(0,f.getErrorPath)(T,f.Type.Str)}`),[P.schemaPath,L]}function n(a,{params:c,message:T},I){const{keyword:L,data:M,schemaValue:N,it:j}=a,{opts:z,propertyName:B,topSchemaRef:Y,schemaPath:K}=j;I.push([P.keyword,L],[P.params,typeof c=="function"?c(a):c||(0,o._)`{}`]),z.messages&&I.push([P.message,typeof T=="function"?T(a):T]),z.verbose&&I.push([P.schema,N],[P.parentSchema,(0,o._)`${Y}${K}`],[p.default.data,M]),B&&I.push([P.propertyName,B])}},65545:(b,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaEnv=void 0,t.compileSchema=v,t.resolveRef=y,t.getCompilingSchema=O,t.resolveSchema=x;const o=e(57287),f=e(84012),p=e(5057),C=e(95421),u=e(977),g=e(9804);class d{constructor(T){var I;this.refs={},this.dynamicAnchors={};let L;typeof T.schema=="object"&&(L=T.schema),this.schema=T.schema,this.schemaId=T.schemaId,this.root=T.root||this,this.baseId=(I=T.baseId)!==null&&I!==void 0?I:(0,C.normalizeId)(L?.[T.schemaId||"$id"]),this.schemaPath=T.schemaPath,this.localRefs=T.localRefs,this.meta=T.meta,this.$async=L?.$async,this.refs={}}}t.SchemaEnv=d;function v(c){const T=O.call(this,c);if(T)return T;const I=(0,C.getFullPath)(this.opts.uriResolver,c.root.baseId),{es5:L,lines:M}=this.opts.code,{ownProperties:N}=this.opts,j=new o.CodeGen(this.scope,{es5:L,lines:M,ownProperties:N});let z;c.$async&&(z=j.scopeValue("Error",{ref:f.default,code:(0,o._)`require("ajv/dist/runtime/validation_error").default`}));const B=j.scopeName("validate");c.validateName=B;const Y={gen:j,allErrors:this.opts.allErrors,data:p.default.data,parentData:p.default.parentData,parentDataProperty:p.default.parentDataProperty,dataNames:[p.default.data],dataPathArr:[o.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:j.scopeValue("schema",this.opts.code.source===!0?{ref:c.schema,code:(0,o.stringify)(c.schema)}:{ref:c.schema}),validateName:B,ValidationError:z,schema:c.schema,schemaEnv:c,rootId:I,baseId:c.baseId||I,schemaPath:o.nil,errSchemaPath:c.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,o._)`""`,opts:this.opts,self:this};let K;try{this._compilations.add(c),(0,g.validateFunctionCode)(Y),j.optimize(this.opts.code.optimize);const k=j.toString();K=`const visitedNodesForRef = new WeakMap(); ${j.scopeRefs(p.default.scope)}return ${k}`,this.opts.code.process&&(K=this.opts.code.process(K,c));const $=new Function(`${p.default.self}`,`${p.default.scope}`,K)(this,this.scope.get());if(this.scope.value(B,{ref:$}),$.errors=null,$.schema=c.schema,$.schemaEnv=c,c.$async&&($.$async=!0),this.opts.code.source===!0&&($.source={validateName:B,validateCode:k,scopeValues:j._values}),this.opts.unevaluated){const{props:G,items:pe}=Y;$.evaluated={props:G instanceof o.Name?void 0:G,items:pe instanceof o.Name?void 0:pe,dynamicProps:G instanceof o.Name,dynamicItems:pe instanceof o.Name},$.source&&($.source.evaluated=(0,o.stringify)($.evaluated))}return c.validate=$,c}catch(k){throw delete c.validate,delete c.validateName,K&&this.logger.error("Error compiling schema, function code:",K),k}finally{this._compilations.delete(c)}}function y(c,T,I){var L;const M=(0,C.resolveUrl)(this.opts.uriResolver,T,I),N=c.refs[M];if(N)return N;let j=E.call(this,c,M);if(j===void 0){const z=(L=c.localRefs)===null||L===void 0?void 0:L[M],{schemaId:B}=this.opts;z&&(j=new d({schema:z,schemaId:B,root:c,baseId:T}))}if(j===void 0&&this.opts.loadSchemaSync){const z=this.opts.loadSchemaSync(T,I,M);z&&!(this.refs[M]||this.schemas[M])&&(this.addSchema(z,M,void 0),j=E.call(this,c,M))}if(j!==void 0)return c.refs[M]=P.call(this,j)}function P(c){return(0,C.inlineRef)(c.schema,this.opts.inlineRefs)?c.schema:c.validate?c:v.call(this,c)}function O(c){for(const T of this._compilations)if(A(T,c))return T}function A(c,T){return c.schema===T.schema&&c.root===T.root&&c.baseId===T.baseId}function E(c,T){let I;for(;typeof(I=this.refs[T])=="string";)T=I;return I||this.schemas[T]||x.call(this,c,T)}function x(c,T){const I=this.opts.uriResolver.parse(T),L=(0,C._getFullPath)(this.opts.uriResolver,I);let M=(0,C.getFullPath)(this.opts.uriResolver,c.baseId,void 0);if(Object.keys(c.schema).length>0&&L===M)return a.call(this,I,c);const N=(0,C.normalizeId)(L),j=this.refs[N]||this.schemas[N];if(typeof j=="string"){const z=x.call(this,c,j);return typeof z?.schema!="object"?void 0:a.call(this,I,z)}if(typeof j?.schema=="object"){if(j.validate||v.call(this,j),N===(0,C.normalizeId)(T)){const{schema:z}=j,{schemaId:B}=this.opts,Y=z[B];return Y&&(M=(0,C.resolveUrl)(this.opts.uriResolver,M,Y)),new d({schema:z,schemaId:B,root:c,baseId:M})}return a.call(this,I,j)}}const n=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function a(c,{baseId:T,schema:I,root:L}){var M;if(((M=c.fragment)===null||M===void 0?void 0:M[0])!=="/")return;for(const z of c.fragment.slice(1).split("/")){if(typeof I=="boolean")return;const B=I[(0,u.unescapeFragment)(z)];if(B===void 0)return;I=B;const Y=typeof I=="object"&&I[this.opts.schemaId];!n.has(z)&&Y&&(T=(0,C.resolveUrl)(this.opts.uriResolver,T,Y))}let N;if(typeof I!="boolean"&&I.$ref&&!(0,u.schemaHasRulesButRef)(I,this.RULES)){const z=(0,C.resolveUrl)(this.opts.uriResolver,T,I.$ref);N=x.call(this,L,z)}const{schemaId:j}=this.opts;if(N=N||new d({schema:I,schemaId:j,root:L,baseId:T}),N.schema!==N.root.schema)return N}},5057:(b,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=e(57287),f={data:new o.Name("data"),valCxt:new o.Name("valCxt"),instancePath:new o.Name("instancePath"),parentData:new o.Name("parentData"),parentDataProperty:new o.Name("parentDataProperty"),rootData:new o.Name("rootData"),dynamicAnchors:new o.Name("dynamicAnchors"),isAllOfVariant:new o.Name("isAllOfVariant"),vErrors:new o.Name("vErrors"),errors:new o.Name("errors"),this:new o.Name("this"),self:new o.Name("self"),scope:new o.Name("scope"),json:new o.Name("json"),jsonPos:new o.Name("jsonPos"),jsonLen:new o.Name("jsonLen"),jsonPart:new o.Name("jsonPart")};t.default=f},78805:(b,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=e(95421);class f extends Error{constructor(C,u,g,d){super(d||`can't resolve reference ${g} from id ${u}`),this.missingRef=(0,o.resolveUrl)(C,u,g),this.missingSchema=(0,o.normalizeId)((0,o.getFullPath)(C,this.missingRef))}}t.default=f},95421:(b,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inlineRef=u,t.getFullPath=y,t._getFullPath=P,t.normalizeId=A,t.resolveUrl=E,t.getSchemaRefs=n;const o=e(977),f=e(67371),p=e(50205),C=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function u(a,c=!0){return typeof a=="boolean"?!0:c===!0?!d(a):c?v(a)<=c:!1}const g=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function d(a){for(const c in a){if(g.has(c))return!0;const T=a[c];if(Array.isArray(T)&&T.some(d)||typeof T=="object"&&d(T))return!0}return!1}function v(a){let c=0;for(const T in a){if(T==="$ref")return 1/0;if(c++,!C.has(T)&&(typeof a[T]=="object"&&(0,o.eachItem)(a[T],I=>c+=v(I)),c===1/0))return 1/0}return c}function y(a,c="",T){T!==!1&&(c=A(c));const I=a.parse(c);return P(a,I)}function P(a,c){return a.serialize(c).split("#")[0]+"#"}const O=/#\/?$/;function A(a){return a?a.replace(O,""):""}function E(a,c,T){return T=A(T),a.resolve(c,T)}const x=/^[a-z_][-a-z0-9._]*$/i;function n(a,c){if(typeof a=="boolean")return{};const{schemaId:T,uriResolver:I}=this.opts,L=A(a[T]||c),M={"":L},N=y(I,L,!1),j={},z=new Set;return p(a,{allKeys:!0},(K,k,U,$)=>{if($===void 0)return;const G=N+k;let pe=M[$];typeof K[T]=="string"&&(pe=ne.call(this,K[T])),je.call(this,K.$anchor),je.call(this,K.$dynamicAnchor),M[k]=pe;function ne(Se){const re=this.opts.uriResolver.resolve;if(Se=A(pe?re(pe,Se):Se),z.has(Se))throw Y(Se);z.add(Se);let te=this.refs[Se];return typeof te=="string"&&(te=this.refs[te]),typeof te=="object"?B(K,te.schema,Se):Se!==A(G)&&(Se[0]==="#"?(B(K,j[Se],Se),j[Se]=K):this.refs[Se]=G),Se}function je(Se){if(typeof Se=="string"){if(!x.test(Se))throw new Error(`invalid anchor "${Se}"`);ne.call(this,`#${Se}`)}}}),j;function B(K,k,U){if(k!==void 0&&!f(K,k))throw Y(U)}function Y(K){return new Error(`reference "${K}" resolves to more than one schema`)}}},90942:(b,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJSONType=f,t.getRules=p;const e=["string","number","integer","boolean","null","object","array"],o=new Set(e);function f(C){return typeof C=="string"&&o.has(C)}function p(){const C={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...C,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},C.number,C.string,C.array,C.object],post:{rules:[]},all:{},keywords:{}}}},977:(b,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.mergeEvaluated=void 0,t.toHash=p,t.alwaysValidSchema=C,t.checkUnknownRules=u,t.schemaHasRules=g,t.schemaHasRulesButRef=d,t.schemaRefOrVal=v,t.unescapeFragment=y,t.escapeFragment=P,t.escapeJsonPointer=O,t.unescapeJsonPointer=A,t.eachItem=E,t.evaluatedPropsToName=n,t.setEvaluated=a,t.useFunc=T,t.getErrorPath=L,t.checkStrictMode=M;const o=e(57287),f=e(76202);function p(N){const j={};for(const z of N)j[z]=!0;return j}function C(N,j){return typeof j=="boolean"?j:Object.keys(j).length===0?!0:(u(N,j),!g(j,N.self.RULES.all))}function u(N,j=N.schema){const{opts:z,self:B}=N;if(!z.strictSchema||typeof j=="boolean")return;const Y=B.RULES.keywords;for(const K in j)Y[K]||M(N,`unknown keyword: "${K}"`)}function g(N,j){if(typeof N=="boolean")return!N;for(const z in N)if(j[z])return!0;return!1}function d(N,j){if(typeof N=="boolean")return!N;for(const z in N)if(z!=="$ref"&&j.all[z])return!0;return!1}function v({topSchemaRef:N,schemaPath:j},z,B,Y){if(!Y){if(typeof z=="number"||typeof z=="boolean")return z;if(typeof z=="string")return(0,o._)`${z}`}return(0,o._)`${N}${j}${(0,o.getProperty)(B)}`}function y(N){return A(decodeURIComponent(N))}function P(N){return encodeURIComponent(O(N))}function O(N){return typeof N=="number"?`${N}`:N.replace(/~/g,"~0").replace(/\//g,"~1")}function A(N){return N.replace(/~1/g,"/").replace(/~0/g,"~")}function E(N,j){if(Array.isArray(N))for(const z of N)j(z);else j(N)}function x({mergeNames:N,mergeToName:j,mergeValues:z,resultToName:B}){return(Y,K,k,U)=>{const $=k===void 0?K:k instanceof o.Name?(K instanceof o.Name?N(Y,K,k):j(Y,K,k),k):K instanceof o.Name?(j(Y,k,K),K):z(K,k);return U===o.Name&&!($ instanceof o.Name)?B(Y,$):$}}t.mergeEvaluated={props:x({mergeNames:(N,j,z)=>N.if((0,o._)`${z} !== true && ${j} !== undefined`,()=>{N.if((0,o._)`${j} === true`,()=>N.assign(z,!0),()=>N.assign(z,(0,o._)`${z} || {}`).code((0,o._)`Object.assign(${z}, ${j})`))}),mergeToName:(N,j,z)=>N.if((0,o._)`${z} !== true`,()=>{j===!0?N.assign(z,!0):(N.assign(z,(0,o._)`${z} || {}`),a(N,z,j))}),mergeValues:(N,j)=>N===!0?!0:{...N,...j},resultToName:n}),items:x({mergeNames:(N,j,z)=>N.if((0,o._)`${z} !== true && ${j} !== undefined`,()=>N.assign(z,(0,o._)`${j} === true ? true : ${z} > ${j} ? ${z} : ${j}`)),mergeToName:(N,j,z)=>N.if((0,o._)`${z} !== true`,()=>N.assign(z,j===!0?!0:(0,o._)`${z} > ${j} ? ${z} : ${j}`)),mergeValues:(N,j)=>N===!0?!0:Math.max(N,j),resultToName:(N,j)=>N.var("items",j)})};function n(N,j){if(j===!0)return N.var("props",!0);const z=N.var("props",(0,o._)`{}`);return j!==void 0&&a(N,z,j),z}function a(N,j,z){Object.keys(z).forEach(B=>N.assign((0,o._)`${j}${(0,o.getProperty)(B)}`,!0))}const c={};function T(N,j){return N.scopeValue("func",{ref:j,code:c[j.code]||(c[j.code]=new f._Code(j.code))})}var I;(function(N){N[N.Num=0]="Num",N[N.Str=1]="Str"})(I||(t.Type=I={}));function L(N,j,z){if(N instanceof o.Name){const B=j===I.Num;return z?B?(0,o._)`"[" + ${N} + "]"`:(0,o._)`"['" + ${N} + "']"`:B?(0,o._)`"/" + ${N}`:(0,o._)`"/" + ${N}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return z?(0,o.getProperty)(N).toString():"/"+O(N)}function M(N,j,z=N.opts.strictSchema){if(z){if(j=`strict mode: ${j}`,z===!0)throw new Error(j);N.self.logger.warn(j)}}},5413:(b,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schemaHasRulesForType=e,t.shouldUseGroup=o,t.shouldUseRule=f;function e({schema:p,self:C},u){const g=C.RULES.types[u];return g&&g!==!0&&o(p,g)}function o(p,C){return C.rules.some(u=>f(p,u))}function f(p,C){var u;return p[C.keyword]!==void 0||((u=C.definition.implements)===null||u===void 0?void 0:u.some(g=>p[g]!==void 0))}},98213:(b,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.topBoolOrEmptySchema=u,t.boolOrEmptySchema=g;const o=e(39054),f=e(57287),p=e(5057),C={message:"boolean schema is false"};function u(v){const{gen:y,schema:P,validateName:O}=v;P===!1?d(v,!1):typeof P=="object"&&P.$async===!0?y.return(p.default.data):(y.assign((0,f._)`${O}.errors`,null),y.return(!0))}function g(v,y){const{gen:P,schema:O}=v;O===!1?(P.var(y,!1),d(v)):P.var(y,!0)}function d(v,y){const{gen:P,data:O}=v,A={gen:P,keyword:"false schema",data:O,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:v};(0,o.reportError)(A,C,void 0,y)}},41434:(b,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataType=void 0,t.getSchemaTypes=d,t.getJSONTypes=v,t.coerceAndCheckDataType=y,t.checkDataType=x,t.checkDataTypes=n,t.reportTypeError=c;const o=e(90942),f=e(5413),p=e(39054),C=e(57287),u=e(977);var g;(function(I){I[I.Correct=0]="Correct",I[I.Wrong=1]="Wrong"})(g||(t.DataType=g={}));function d(I){const L=v(I.type);if(L.includes("null")){if(I.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!L.length&&I.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');I.nullable===!0&&L.push("null")}return L}function v(I){const L=Array.isArray(I)?I:I?[I]:[];if(L.every(o.isJSONType))return L;throw new Error("type must be JSONType or JSONType[]: "+L.join(","))}function y(I,L){const{gen:M,data:N,opts:j}=I,z=O(L,j.coerceTypes),B=L.length>0&&!(z.length===0&&L.length===1&&(0,f.schemaHasRulesForType)(I,L[0]));if(B){const Y=n(L,N,j.strictNumbers,g.Wrong);M.if(Y,()=>{z.length?A(I,L,z):c(I)})}return B}const P=new Set(["string","number","integer","boolean","null"]);function O(I,L){return L?I.filter(M=>P.has(M)||L==="array"&&M==="array"):[]}function A(I,L,M){const{gen:N,data:j,opts:z}=I,B=N.let("dataType",(0,C._)`typeof ${j}`),Y=N.let("coerced",(0,C._)`undefined`);z.coerceTypes==="array"&&N.if((0,C._)`${B} == 'object' && Array.isArray(${j}) && ${j}.length == 1`,()=>N.assign(j,(0,C._)`${j}[0]`).assign(B,(0,C._)`typeof ${j}`).if(n(L,j,z.strictNumbers),()=>N.assign(Y,j))),N.if((0,C._)`${Y} !== undefined`);for(const k of M)(P.has(k)||k==="array"&&z.coerceTypes==="array")&&K(k);N.else(),c(I),N.endIf(),N.if((0,C._)`${Y} !== undefined`,()=>{N.assign(j,Y),E(I,Y)});function K(k){switch(k){case"string":N.elseIf((0,C._)`${B} == "number" || ${B} == "boolean"`).assign(Y,(0,C._)`"" + ${j}`).elseIf((0,C._)`${j} === null`).assign(Y,(0,C._)`""`);return;case"number":N.elseIf((0,C._)`${B} == "boolean" || ${j} === null
|
|
8
8
|
|| (${B} == "string" && ${j} && ${j} == +${j})`).assign(Y,(0,C._)`+${j}`);return;case"integer":N.elseIf((0,C._)`${B} === "boolean" || ${j} === null
|
|
@@ -12743,4 +12743,4 @@ Error generating stack: `+S.message+`
|
|
|
12743
12743
|
`,E2=({pointer:D,schema:w,disableDeepLinks:F,slug:ie,onOneOfChange:be})=>{const{options:Be,parser:ke}=useAtomValue(globalStoreAtom),rt=w||{$ref:D},Ze=getSchema({parser:ke,schemaOrRef:rt,pointer:D||"",options:Be,deps:{operation:{pointer:"RedocSchema"}}});return jsx(Row,{children:jsx(FullWidthPanel,{children:jsx(Schema,{schema:Ze,level:1,disableDeepLinks:F,slug:ie,onOneOfChange:be})})})},S2=({pointer:D,mimeType:w,encoding:F})=>{const ie=useAtomValue(globalParserAtom),be=useAtomValue(layoutAtom),Be=getExamples({parser:ie,infoOrRef:{$ref:D},mime:w,encoding:F});return jsx(Row,{layout:be,children:jsx(ExamplesWrap,{children:jsx(Example,{example:Be,mimeType:w})})})},qy=Pt.Ay.div`
|
|
12744
12744
|
padding: 20px;
|
|
12745
12745
|
color: red;
|
|
12746
|
-
`;class I2 extends n.Component{constructor(w){super(w),this.state={error:void 0}}componentDidCatch(w){return this.setState({error:w}),!1}render(){return this.state.error?(0,b.jsxs)(qy,{children:[(0,b.jsx)("h1",{children:"Something went wrong..."}),(0,b.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,b.jsx)("p",{children:(0,b.jsxs)("details",{children:[(0,b.jsx)("summary",{children:"Stack trace"}),(0,b.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,b.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,b.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,b.jsx)(b.Fragment,{children:n.Children.only(this.props.children)})}}var _y=Object.defineProperty,s0=Object.getOwnPropertySymbols,e2=Object.prototype.hasOwnProperty,t2=Object.prototype.propertyIsEnumerable,l0=(D,w,F)=>w in D?_y(D,w,{enumerable:!0,configurable:!0,writable:!0,value:F}):D[w]=F,c0=(D,w)=>{for(var F in w||(w={}))e2.call(w,F)&&l0(D,F,w[F]);if(s0)for(var F of s0(w))t2.call(w,F)&&l0(D,F,w[F]);return D};const u0=(0,T.JA)(),n2=u0?(0,x.dirname)(u0)+"/":"";function r2(D){const w={},F=D.attributes;for(let ie=0;ie<F.length;ie++){const be=F[ie];w[be.name]=be.value}return w}function o2(D){const w=r2(D),F={};for(const ie in w){const be=ie.replace(/-(.)/g,(Be,ke)=>ke.toUpperCase());F[be]=w[ie]}return F}function i2(D,w=document.querySelector("redoc")){(0,a.hydrateRoot)(w,(0,b.jsx)(a0,{store:D}))}function d0(D,w={},F=(0,T.iT)("redoc")){if(F===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let ie,be;typeof D=="string"?ie=D:typeof D=="object"&&(be=D),(0,a.createRoot)(F).render((0,n.createElement)(Qy,{definition:be,definitionUrl:ie,options:c0(c0({},w),o2(F))},["Loading..."]))}function f0(D){Vr.p=D}const a2="3.11.0-next.
|
|
12746
|
+
`;class I2 extends n.Component{constructor(w){super(w),this.state={error:void 0}}componentDidCatch(w){return this.setState({error:w}),!1}render(){return this.state.error?(0,b.jsxs)(qy,{children:[(0,b.jsx)("h1",{children:"Something went wrong..."}),(0,b.jsxs)("small",{children:[" ",this.state.error.message," "]}),(0,b.jsx)("p",{children:(0,b.jsxs)("details",{children:[(0,b.jsx)("summary",{children:"Stack trace"}),(0,b.jsx)("pre",{children:this.state.error.stack})]})}),typeof __REDOC_VERSION__<"u"?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("small",{children:[" References docs version: ",__REDOC_VERSION__]})," ",(0,b.jsx)("br",{})]}):null,typeof __REDOC_REVISION__<"u"?(0,b.jsxs)("small",{children:[" Commit: ",__REDOC_REVISION__]}):null]}):(0,b.jsx)(b.Fragment,{children:n.Children.only(this.props.children)})}}var _y=Object.defineProperty,s0=Object.getOwnPropertySymbols,e2=Object.prototype.hasOwnProperty,t2=Object.prototype.propertyIsEnumerable,l0=(D,w,F)=>w in D?_y(D,w,{enumerable:!0,configurable:!0,writable:!0,value:F}):D[w]=F,c0=(D,w)=>{for(var F in w||(w={}))e2.call(w,F)&&l0(D,F,w[F]);if(s0)for(var F of s0(w))t2.call(w,F)&&l0(D,F,w[F]);return D};const u0=(0,T.JA)(),n2=u0?(0,x.dirname)(u0)+"/":"";function r2(D){const w={},F=D.attributes;for(let ie=0;ie<F.length;ie++){const be=F[ie];w[be.name]=be.value}return w}function o2(D){const w=r2(D),F={};for(const ie in w){const be=ie.replace(/-(.)/g,(Be,ke)=>ke.toUpperCase());F[be]=w[ie]}return F}function i2(D,w=document.querySelector("redoc")){(0,a.hydrateRoot)(w,(0,b.jsx)(a0,{store:D}))}function d0(D,w={},F=(0,T.iT)("redoc")){if(F===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');let ie,be;typeof D=="string"?ie=D:typeof D=="object"&&(be=D),(0,a.createRoot)(F).render((0,n.createElement)(Qy,{definition:be,definitionUrl:ie,options:c0(c0({},w),o2(F))},["Loading..."]))}function f0(D){Vr.p=D}const a2="3.11.0-next.8",s2="23576e37";function l2(){const D=(0,T.iT)("redoc");if(!D)return;const w=D.getAttribute("spec-url");w&&d0(w,{},D)}c.IS_BROWSER&&f0(n2),l2()})(),qh})());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/openapi-docs",
|
|
3
|
-
"version": "3.11.0-next.
|
|
3
|
+
"version": "3.11.0-next.8",
|
|
4
4
|
"description": "Redocly OpenAPI Docs",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"util": "~0.12.5",
|
|
47
47
|
"web-vitals": "3.3.1",
|
|
48
48
|
"@redocly/config": "0.26.2",
|
|
49
|
-
"@redocly/replay": "0.14.0-next.
|
|
49
|
+
"@redocly/replay": "0.14.0-next.8"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@shikijs/transformers": "1.24.0",
|