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

Function parameterValues

frontend/public/swagger-ui-bundle.js:37768–37784  ·  view source on GitHub ↗
(s, o, i)

Source from the content-addressed store, hash-verified

37766 const o = s.get('host')
37767 return 'string' == typeof o && o.length > 0 && '/' !== o[0]
37768 })
37769 function parameterValues(s, o, i) {
37770 return (
37771 (o = o || []),
37772 operationWithMeta(s, ...o)
37773 .get('parameters', (0, ze.List)())
37774 .reduce(
37775 (s, o) => {
37776 let a = i && 'body' === o.get('in') ? o.get('value_xml') : o.get('value')
37777 return (
37778 ze.List.isList(a) && (a = a.filter((s) => '' !== s)),
37779 s.set(paramToIdentifier(o, { allowHashes: !1 }), a)
37780 )
37781 },
37782 (0, ze.fromJS)({})
37783 )
37784 )
37785 }
37786 function parametersIncludeIn(s, o = '') {
37787 if (ze.List.isList(s)) return s.some((s) => ze.Map.isMap(s) && s.get('in') === o)

Callers 1

Calls 6

operationWithMetaFunction · 0.85
paramToIdentifierFunction · 0.85
getMethod · 0.65
reduceMethod · 0.45
filterMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected