MCPcopy Index your code
hub / github.com/dataease/SQLBot / resolveOpenAPI31Strategy

Function resolveOpenAPI31Strategy

frontend/public/swagger-ui-bundle.js:54335–54418  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

54333 i = s.meta.get('referencingElement')
54334 return new Su.Sh({ $ref: o }, cloneDeep(i.meta), cloneDeep(i.attributes))
54335 },
54336 resolveOpenAPI31Strategy = async (s) => {
54337 const {
54338 spec: o,
54339 timeout: i,
54340 redirects: a,
54341 requestInterceptor: u,
54342 responseInterceptor: _,
54343 pathDiscriminator: w = [],
54344 allowMetaPatches: x = !1,
54345 useCircularStructures: C = !1,
54346 skipNormalization: j = !1,
54347 parameterMacro: L = null,
54348 modelPropertyMacro: B = null,
54349 mode: $ = 'non-strict',
54350 strategies: U,
54351 } = s
54352 try {
54353 const { cache: V } = resolveOpenAPI31Strategy,
54354 z = U.find((s) => s.match(o)),
54355 Y = isHttpUrl(url_cwd()) ? url_cwd() : Ll,
54356 Z = options_retrievalURI(s),
54357 ee = resolve(Y, Z)
54358 let ie
54359 V.has(o)
54360 ? (ie = V.get(o))
54361 : ((ie = Ab.refract(o)), ie.classes.push('result'), V.set(o, ie))
54362 const ae = new Au([ie]),
54363 ce = es_compile(w),
54364 le = '' === ce ? '' : `#${ce}`,
54365 pe = apidom_evaluate(ie, ce),
54366 de = new mw({ uri: ee, value: ae }),
54367 fe = new gw({ refs: [de] })
54368 '' !== ce && (fe.rootRef = void 0)
54369 const ye = [new Set([pe])],
54370 be = [],
54371 _e = await (async (s, o = {}) => {
54372 const i = util_merge(vw, o)
54373 return dereferenceApiDOM(s, i)
54374 })(pe, {
54375 resolve: {
54376 baseURI: `${ee}${le}`,
54377 resolvers: [new $w({ timeout: i || 1e4, redirects: a || 10 })],
54378 resolverOpts: {
54379 swaggerHTTPClientConfig: { requestInterceptor: u, responseInterceptor: _ },
54380 },
54381 strategies: [new Nw()],
54382 },
54383 parse: {
54384 mediaType: fw.latest(),
54385 parsers: [
54386 new Vw({ allowEmpty: !1, sourceMap: !1 }),
54387 new zw({ allowEmpty: !1, sourceMap: !1 }),
54388 new qw({ allowEmpty: !1, sourceMap: !1 }),
54389 new Uw({ allowEmpty: !1, sourceMap: !1 }),
54390 new Iw({ allowEmpty: !1, sourceMap: !1 }),
54391 ],
54392 },

Callers

nothing calls this directly

Calls 15

isHttpUrlFunction · 0.85
url_cwdFunction · 0.85
options_retrievalURIFunction · 0.85
resolveFunction · 0.85
es_compileFunction · 0.85
apidom_evaluateFunction · 0.85
util_mergeFunction · 0.85
dereferenceApiDOMFunction · 0.85
serializers_valueFunction · 0.85
transcludeMethod · 0.80
getMethod · 0.65
findMethod · 0.45

Tested by

no test coverage detected