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

Function makeResolveSubtree

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

Source from the content-addressed store, hash-verified

56437 const stripNonAlpha = (s) => (s ? s.replace(/\W/g, '') : null)
56438 const isNonEmptyServerList = (s) => Array.isArray(s) && s.length > 0
56439 const makeResolveSubtree =
56440 (s) =>
56441 async (o, i, a = {}) =>
56442 (async (s, o, i = {}) => {
56443 const {
56444 returnEntireTree: a,
56445 baseDoc: u,
56446 requestInterceptor: _,
56447 responseInterceptor: w,
56448 parameterMacro: x,
56449 modelPropertyMacro: C,
56450 useCircularStructures: j,
56451 strategies: L,
56452 } = i,
56453 B = {
56454 spec: s,
56455 pathDiscriminator: o,
56456 baseDoc: u,
56457 requestInterceptor: _,
56458 responseInterceptor: w,
56459 parameterMacro: x,
56460 modelPropertyMacro: C,
56461 useCircularStructures: j,
56462 strategies: L,
56463 },
56464 $ = L.find((o) => o.match(s)).normalize(s),
56465 U = await Nx({
56466 spec: $,
56467 ...B,
56468 allowMetaPatches: !0,
56469 skipNormalization: !isOpenAPI31(s),
56470 })
56471 return (
56472 !a &&
56473 Array.isArray(o) &&
56474 o.length &&
56475 (U.spec = o.reduce((s, o) => (null == s ? void 0 : s[o]), U.spec) || null),
56476 U
56477 )
56478 })(o, i, { ...s, ...a }),
56479 Qx =
56480 (makeResolveSubtree({ strategies: [_u, vu, gu] }),

Callers 2

swagger_clientFunction · 0.85

Calls 5

isOpenAPI31Function · 0.85
NxFunction · 0.50
findMethod · 0.45
isArrayMethod · 0.45
reduceMethod · 0.45

Tested by

no test coverage detected